Skip to content

Commit

Permalink
improve dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed May 13, 2024
1 parent e507ac0 commit b1fee7f
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 5 deletions.
Binary file added ui/assets/decredicons/dm_matrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/assets/decredicons/dm_www_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/assets/decredicons/telegram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/assets/decredicons/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions ui/cryptomaterial/icon_gallery.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,7 @@ func (i *Icons) DarkModeIcons() *Icons {
i.ChevronLeft = NewImage(decredIcons["chevron_left"])
i.Notification = NewImage(decredIcons["dm_notification"])
i.TradeExchangeIcon = NewImage(decredIcons["dm_trade_exchange_icon"])
i.WebsiteIcon = NewImage(decredIcons["dm_www_icon"])
i.MatrixIcon = NewImage(decredIcons["dm_matrix"])
return i
}
2 changes: 1 addition & 1 deletion ui/page/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ func DisablePageWithOverlay(l *load.Load, currentPage app.Page, gtx C, title, su

func WalletHighlightLabel(theme *cryptomaterial.Theme, gtx C, textSize unit.Sp, content string) D {
indexLabel := theme.Label(textSize, content)
indexLabel.Color = theme.Color.PageNavText
indexLabel.Color = theme.Color.DeepBlueOrigin
indexLabel.Font.Weight = font.Medium
return cryptomaterial.LinearLayout{
Width: cryptomaterial.WrapContent,
Expand Down
2 changes: 1 addition & 1 deletion ui/page/components/sub_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (sp *SubPage) Layout(window app.WindowNavigator, gtx C) D {
return sp.Header(window, gtx)
})
}),
layout.Rigid(sp.Body),
layout.Flexed(1, sp.Body),
)
}

Expand Down
2 changes: 1 addition & 1 deletion ui/page/components/wallet_setup_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func NewCreateWallet(l *load.Load, walletCreationSuccessCallback func(), assetTy
pg.seedTypeDropdown.FontWeight = font.SemiBold
pg.seedTypeDropdown.ExpandedLayoutInset = layout.Inset{Top: values.MarginPadding35}
pg.seedTypeDropdown.MakeCollapsedLayoutVisibleWhenExpanded = true
pg.seedTypeDropdown.Background = &pg.Theme.Color.White
pg.seedTypeDropdown.Background = &pg.Theme.Color.Surface

pg.backButton = GetBackButton(l)

Expand Down
1 change: 1 addition & 0 deletions ui/preference/list_preference.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func (lp *ListPreferenceModal) Layout(gtx C) D {
return layout.E.Layout(gtx, func(gtx C) D {
return layout.Flex{Axis: layout.Horizontal}.Layout(gtx,
layout.Rigid(lp.btnCancel.Layout),
layout.Rigid(layout.Spacer{Width: values.MarginPadding5}.Layout),
layout.Rigid(lp.btnSave.Layout),
)
})
Expand Down
4 changes: 2 additions & 2 deletions ui/values/colors.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const (

type Color struct {
Primary color.NRGBA
Primary50 color.NRGBA
PrimaryHighlight color.NRGBA

// text colors
Expand All @@ -34,6 +33,7 @@ type Color struct {
BlueProgressTint color.NRGBA
Danger color.NRGBA
DeepBlue color.NRGBA
DeepBlueOrigin color.NRGBA
NavyBlue color.NRGBA
LightBlue color.NRGBA
LightBlue2 color.NRGBA
Expand Down Expand Up @@ -98,7 +98,6 @@ func (c *Color) DarkThemeColors() {
func (c *Color) DefaultThemeColors() *Color {
cl := Color{
Primary: rgb(0x2970ff),
Primary50: rgb(0xE3F2FF),
PrimaryHighlight: rgb(0x1B41B3),

// text colors
Expand All @@ -117,6 +116,7 @@ func (c *Color) DefaultThemeColors() *Color {
BlueProgressTint: rgb(0x73d7ff),
Danger: rgb(0xed6d47),
DeepBlue: rgb(0x091440),
DeepBlueOrigin: rgb(0x091440),
NavyBlue: rgb(0x1F45B0),
LightBlue: rgb(0xe4f6ff),
LightBlue2: rgb(0x75D8FF),
Expand Down

0 comments on commit b1fee7f

Please sign in to comment.