Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultExchangeValue = "none" USDExchangeValue = "USD (Bittrex)" )
View Source
const ( TxDropdownGroup = iota StakingDropdownGroup ProposalDropdownGroup ConsensusDropdownGroup )
View Source
const ( StrAppName = "appName" StrSend = "send" StrReceive = "receive" StrUnlock = "unlock" StrWalletStatus = "walletStatus" StrFetchingBlockHeaders = "fetchingBlockHeaders" StrDiscoveringWalletAddress = "discoveringWalletAddress" StrRescanningHeaders = "rescanningHeaders" StrSyncingState = "syncingState" StrResumeAccountDiscoveryTitle = "resumeAccountDiscoveryTitle" StrHideDetails = "hideDetails" StrSyncSteps = "syncSteps" StrBlockHeaderFetchedCount = "blockHeaderFetchedCount" StrConnectedTo = "connectedTo" StrSynced = "synced" StrNoWalletLoaded = "noWalletLoaded" StrReconnect = "reconnect" StrWalletNotSynced = "walletNotSynced" StrDisconnect = "disconnect" StrSyncingProgress = "syncingProgress" StrBlockHeaderFetched = "blockHeaderFetched" StrNoTransactions = "noTransactions" StrCancel = "cancel" StrAppTitle = "appTitle" StrSeeAll = "seeAll" StrOnline = "online" StrConnectedPeersCount = "connectedPeersCount" StrNoConnectedPeer = "noConnectedPeer" StrCurrentTotalBalance = "currentTotalBalance" StrRecentTransactions = "recentTransactions" StrOffline = "offline" StrShowDetails = "showDetails" StrLastBlockHeight = "lastBlockHeight" StrAgo = "ago" StrNewest = "newest" StrOldest = "oldest" StrAll = "all" StrTransferred = "transferred" StrSent = "sent" StrReceived = "received" StrYourself = "yourself" StrStaking = "staking" StrNConfirmations = "nConfirmations" StrFrom = "from" StrTo = "to" StrFee = "fee" StrIncludedInBlock = "includedInBlock" StrType = "type" StrTransactionID = "transactionId" StrXInputsConsumed = "xInputsConsumed" StrXOutputCreated = "xOutputCreated" StrViewOnDcrdata = "viewOnDcrdata" StrViewProperty = "viewProperty" StrAddNewAccount = "addNewAccount" StrBackupSeedPhrase = "backupSeedPhrase" StrCreateNewAccount = "createNewAccount" StrInvalidPassphrase = "invalidPassphrase" StrCreate = "create" StrNotBackedUp = "notBackedUp" StrLabelSpendable = "labelSpendable" StrSignMessage = "signMessage" StrStakeShuffle = "stakeShuffle" StrRenameWalletSheetTitle = "renameWalletSheetTitle" StrSettings = "settings" StrImportWatchingOnlyWallet = "importWatchingOnlyWallet" StrVerifySeedInfo = "verifySeedInfo" StrVerifyMessage = "verifyMessage" StrRename = "rename" StrCreateANewWallet = "createANewWallet" StrImportExistingWallet = "importExistingWallet" StrWatchOnlyWallets = "watchOnlyWallets" StrWatchOnlyWalletImported = "watchOnlyWalletImported" StrImport = "Import" StrRescanProgressNotification = "rescanProgressNotification" StrRemove = "remove" StrConfirm = "confirm" StrSpendingPassword = "spendingPassword" StrDangerZone = "dangerZone" StrNotConnected = "notConnected" StrConfirmToRemove = "confirmToRemove" StrChangeSpendingPass = "changeSpendingPass" StrDebug = "debug" StrBeepForNewBlocks = "beepForNewBlocks" StrRemoveWallet = "removeWallet" StrChange = "change" StrRescan = "rescan" StrNotifications = "notifications" StrRescanBlockchain = "rescanBlockchain" StrStartupPassword = "startupPassword" StrChangeSpecificPeer = "changeSpecificPeer" StrLanguage = "language" StrConnection = "connection" StrCustomUserAgent = "CustomUserAgent" StrConfirmRemoveStartupPass = "confirmRemoveStartupPass" StrUserAgentDialogTitle = "userAgentDialogTitle" StrSecurity = "security" StrUnconfirmedFunds = "unconfirmedFunds" StrChangeStartupPassword = "changeStartupPassword" StrConnectToSpecificPeer = "connectToSpecificPeer" StrUserAgentSummary = "userAgentSummary" StrGeneral = "general" StrChangeUserAgent = "changeUserAgent" StrCreateStartupPassword = "createStartupPassword" StrCurrencyConversion = "currencyConversion" StrTransactions = "transactions" StrWallets = "wallets" // StrTickets = "tickets" StrMore = "more" StrOverview = "overview" StrEnglish = "english" StrFrench = "french" StrSpanish = "spanish" StrUsdBittrex = "usdBittrex" StrNone = "none" StrProposal = "proposals" StrDex = "dex" )
View Source
const (
DefaultLangauge = localizable.ENGLISH
)
Variables ¶
View Source
var ( ArrLanguages map[string]string ArrExchangeCurrencies map[string]string )
View Source
var ( Size0_5 = unit.Dp(0.5) Size28 = unit.Dp(28) Size180 = unit.Dp(180) MarginPadding0 = unit.Dp(0) MarginPadding1 = unit.Dp(1) MarginPadding2 = unit.Dp(2) MarginPaddingMinus2 = unit.Dp(-2) MarginPadding3 = unit.Dp(3) MarginPadding4 = unit.Dp(4) MarginPadding5 = unit.Dp(5) MarginPaddingMinus5 = unit.Dp(-5) MarginPadding6 = unit.Dp(6) MarginPadding7 = unit.Dp(7) MarginPadding8 = unit.Dp(8) MarginPaddingMinus8 = unit.Dp(-8) MarginPadding9 = unit.Dp(9) MarginPadding10 = unit.Dp(10) MarginPaddingMinus10 = unit.Dp(-10) MarginPadding11 = unit.Dp(11) MarginPadding12 = unit.Dp(12) MarginPadding14 = unit.Dp(14) MarginPadding13 = unit.Dp(13) MarginPadding15 = unit.Dp(15) MarginPaddingMinus15 = unit.Dp(-15) MarginPadding16 = unit.Dp(16) MarginPadding18 = unit.Dp(18) MarginPadding18p5 = unit.Sp(18.5) MarginPadding20 = unit.Dp(20) MarginPadding22 = unit.Dp(22) MarginPaddingMinus22 = unit.Dp(-22) MarginPadding24 = unit.Dp(24) MarginPaddingMinus24 = unit.Dp(-24) MarginPadding25 = unit.Dp(25) MarginPadding26 = unit.Dp(26) MarginPadding30 = unit.Dp(30) MarginPadding35 = unit.Dp(35) MarginPadding36 = unit.Dp(36) MarginPadding38 = unit.Dp(38) MarginPadding40 = unit.Dp(40) MarginPadding44 = unit.Dp(44) MarginPadding48 = unit.Dp(48) MarginPadding50 = unit.Dp(50) MarginPadding56 = unit.Dp(56) MarginPadding60 = unit.Dp(60) MarginPadding62 = unit.Dp(62) MarginPadding64 = unit.Dp(64) MarginPadding65 = unit.Dp(65) MarginPadding70 = unit.Dp(70) MarginPadding75 = unit.Dp(75) MarginPadding80 = unit.Dp(80) MarginPadding96 = unit.Dp(96) MarginPaddingMinus75 = unit.Dp(-75) MarginPaddingMinus90 = unit.Dp(-90) MarginPaddingMinus100 = unit.Dp(-100) MarginPadding100 = unit.Dp(100) MarginPadding110 = unit.Dp(110) MarginPadding120 = unit.Dp(120) MarginPadding130 = unit.Dp(130) MarginPadding140 = unit.Dp(140) MarginPadding150 = unit.Dp(150) MarginPadding168 = unit.Dp(168) MarginPadding180 = unit.Dp(180) MarginPadding195 = unit.Dp(195) MarginPaddingMinus195 = unit.Dp(-195) MarginPadding200 = unit.Dp(200) MarginPadding250 = unit.Dp(250) MarginPaddingMinus230 = unit.Dp(-230) MarginPadding280 = unit.Dp(280) MarginPadding350 = unit.Dp(350) MarginPadding390 = unit.Dp(390) MarginPadding450 = unit.Dp(450) MarginPadding550 = unit.Dp(550) TextSize10 = unit.Sp(10) TextSize12 = unit.Sp(12) TextSize13_6 = unit.Sp(13.6) TextSize14 = unit.Sp(14) TextSize16 = unit.Sp(16) TextSize18 = unit.Sp(18) TextSize20 = unit.Sp(20) TextSize22 = unit.Sp(22) TextSize24 = unit.Sp(24) TextSize28 = unit.Sp(28) TextSize34 = unit.Sp(34) TextSize32 = unit.Sp(32) AppWidth = unit.Sp(800) AppHeight = unit.Sp(600) )
View Source
var Languages = []string{localizable.ENGLISH, localizable.CHINESE, localizable.FRENCH, localizable.SPANISH}
View Source
var UserLanguages = []string{DefaultLangauge} // order of preference
Functions ¶
func SetUserLanguage ¶
func SetUserLanguage(lang string)
Types ¶
type ClickableStyle ¶ added in v1.7.0
ClickableStyle defines display properties that may be used to style a Clickable widget.
type Color ¶ added in v1.7.0
type Color struct { Primary color.NRGBA Primary50 color.NRGBA PrimaryHighlight color.NRGBA // text colors Text color.NRGBA // default color #091440 InvText color.NRGBA // inverted default color #ffffff GrayText1 color.NRGBA // darker shade #3D5873 GrayText2 color.NRGBA // lighter shade of GrayText1 #596D81 GrayText3 color.NRGBA // lighter shade of GrayText2 #8997A5 (hint) GrayText4 color.NRGBA // lighter shade of GrayText3 ##C4CBD2 GreenText color.NRGBA // green text #41BE53 // background colors Background color.NRGBA Black color.NRGBA BlueProgressTint color.NRGBA Danger color.NRGBA DeepBlue color.NRGBA LightBlue color.NRGBA LightBlue2 color.NRGBA LightBlue3 color.NRGBA LightBlue4 color.NRGBA LightBlue5 color.NRGBA LightBlue6 color.NRGBA Gray1 color.NRGBA Gray2 color.NRGBA Gray3 color.NRGBA Gray4 color.NRGBA Gray5 color.NRGBA Green50 color.NRGBA Green500 color.NRGBA Orange color.NRGBA Orange2 color.NRGBA Orange3 color.NRGBA OrangeRipple color.NRGBA Success color.NRGBA Success2 color.NRGBA Surface color.NRGBA SurfaceHighlight color.NRGBA Turquoise100 color.NRGBA Turquoise300 color.NRGBA Turquoise700 color.NRGBA Turquoise800 color.NRGBA Yellow color.NRGBA White color.NRGBA }
func (*Color) DarkThemeColors ¶ added in v1.7.0
func (c *Color) DarkThemeColors()
func (*Color) DefualtThemeColors ¶ added in v1.7.0
type ColorStyle ¶ added in v1.7.0
ColorStyle defines backgorund and foreground colors that may be used to style a widget that requires either or both colors.
type SwitchStyle ¶ added in v1.7.0
type SwitchStyle struct { ActiveColor color.NRGBA InactiveColor color.NRGBA ThumbColor color.NRGBA ActiveTextColor color.NRGBA InactiveTextColor color.NRGBA }
SwitchStyle defines display properties that may be used to style a Switch widget.
type WidgetStyles ¶ added in v1.7.0
type WidgetStyles struct { SwitchStyle *SwitchStyle IconButtonColorStyle *ColorStyle CollapsibleStyle *ColorStyle ClickableStyle *ClickableStyle DropdownClickableStyle *ClickableStyle }
WidgetStyles is a collection of various widget styles.
func DefaultWidgetStyles ¶ added in v1.7.0
func DefaultWidgetStyles() *WidgetStyles
DefaultWidgetStyles returns a new collection of widget styles with default values.
Click to show internal directories.
Click to hide internal directories.