Skip to content

Commit

Permalink
Wallet settings page enhancement (crypto-power#601)
Browse files Browse the repository at this point in the history
* Changed "Check wallet logs" text in wallet settings to "View Log" and  "Check Statistics" to "View Info"

* update wallet settings section margin bottom

* lint
  • Loading branch information
ademuanthony authored Jul 29, 2024
1 parent 7511832 commit 7e89a5f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions ui/page/wallet/wallet_settings_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ func (pg *SettingsPage) debug() layout.Widget {
}
return D{}
}),
layout.Rigid(pg.sectionContent(pg.checklog, values.String(values.StrCheckWalletLog))),
layout.Rigid(pg.sectionContent(pg.checkStats, values.String(values.StrCheckStatistics))),
layout.Rigid(pg.sectionContent(pg.checklog, values.String(values.StrViewLog))),
layout.Rigid(pg.sectionContent(pg.checkStats, values.String(values.StrViewStats))),
)
}
return func(gtx C) D {
Expand Down Expand Up @@ -345,7 +345,7 @@ func (pg *SettingsPage) sectionDimension(gtx C, clickable *cryptomaterial.Clicka
}

func (pg *SettingsPage) subSection(gtx C, title string, body layout.Widget) D {
return layout.Inset{Top: values.MarginPadding5, Bottom: values.MarginPadding15}.Layout(gtx, func(gtx C) D {
return layout.Inset{Bottom: values.MarginPadding30}.Layout(gtx, func(gtx C) D {
return layout.Flex{}.Layout(gtx,
layout.Rigid(pg.Theme.Label(values.TextSizeTransform(pg.Load.IsMobileView(), values.TextSize16), title).Layout),
layout.Flexed(1, func(gtx C) D {
Expand Down
4 changes: 2 additions & 2 deletions ui/values/localizable/en.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ const EN = `
"changeWalletName" = "Change wallet name"
"checkGovernace" = "Check Governance page"
"checkMixerStatus" = "Check mixer status"
"checkStatistics" = "Check statistics"
"checkWalletLog" = "Check wallet logs"
"viewStats" = "View Stats"
"viewLog" = "View Log"
"chooseSetupType" = "Choose a setup type"
"clear" = "Clear"
"clearAll" = "Clear all"
Expand Down
4 changes: 2 additions & 2 deletions ui/values/localizable/es.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ const ES = `
"buildDate" = "La fecha de construcción"
"network" = "Red"
"license" = "Licencia"
"checkWalletLog" = "Comprobar los registros de la billetera"
"checkStatistics" = "Consultar estadísticas"
"viewLog" = "Comprobar los registros de la billetera"
"viewStats" = "Consultar estadísticas"
"statistics" = "Estadísticas"
"dexStartupErr" = "No se puede iniciar el cliente DEX:% v"
"confirmDexReset" = "Confirmar restablecimiento del cliente DEX"
Expand Down
4 changes: 2 additions & 2 deletions ui/values/localizable/fr.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ const FR = `
"buildDate" = "Date de construction"
"network" = "Réseau"
"license" = "Licence"
"checkWalletLog" = "Vérifier les journaux du portefeuille"
"checkStatistics" = "Vérifier les statistiques"
"viewLog" = "Vérifier les journaux du portefeuille"
"viewStats" = "Vérifier les statistiques"
"statistics" = "Statistiques"
"dexStartupErr" = "Impossible de démarrer le client DEX: %v"
"confirmDexReset" = "Confirmer la réinitialisation du client DEX"
Expand Down
4 changes: 2 additions & 2 deletions ui/values/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ const (
StrChangeWalletName = "changeWalletName"
StrCheckGovernace = "checkGovernace"
StrCheckMixerStatus = "checkMixerStatus"
StrCheckStatistics = "checkStatistics"
StrCheckWalletLog = "checkWalletLog"
StrViewStats = "viewStats"
StrViewLog = "viewLog"
StrChooseSetupType = "chooseSetupType"
StrClear = "clear"
StrClearAll = "clearAll"
Expand Down

0 comments on commit 7e89a5f

Please sign in to comment.