Skip to content

Commit

Permalink
fix go lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhalang committed May 8, 2021
1 parent 6bc1e62 commit ba2b630
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/compontents.go
Expand Up @@ -330,7 +330,7 @@ func transactionRow(gtx layout.Context, common pageCommon, row TransactionRow) l
status := common.theme.Body1(s)
if row.transaction.Status != "confirmed" {
status.Color = common.theme.Color.Gray5
}else{
} else {
status.Color = common.theme.Color.Gray4
}
status.Alignment = text.Middle
Expand Down
3 changes: 2 additions & 1 deletion ui/decredmaterial/label.go
Expand Up @@ -3,9 +3,10 @@
package decredmaterial

import (
"image/color"

"gioui.org/unit"
"gioui.org/widget/material"
"image/color"
)

type Label struct {
Expand Down
6 changes: 3 additions & 3 deletions ui/decredmaterial/theme.go
Expand Up @@ -90,7 +90,7 @@ type Theme struct {
DarkMode bool
}

func (t *Theme) setColorMode(darkMode bool){
func (t *Theme) setColorMode(darkMode bool) {
if darkMode {
t.DarkMode = true
t.Color.Primary = rgb(0x57B6FF)
Expand Down Expand Up @@ -144,8 +144,8 @@ func (t *Theme) setColorMode(darkMode bool){

func NewTheme(fontCollection []text.FontFace, decredIcons map[string]image.Image, isDarkModeOn bool) *Theme {
t := &Theme{
Shaper: text.NewCache(fontCollection),
Base: material.NewTheme(fontCollection),
Shaper: text.NewCache(fontCollection),
Base: material.NewTheme(fontCollection),
DarkMode: false,
}

Expand Down

0 comments on commit ba2b630

Please sign in to comment.