refactor: perform clean up
This commit is contained in:
parent
c15cdea57d
commit
a7e427ca14
13 changed files with 133 additions and 85 deletions
|
|
@ -11,7 +11,6 @@ import (
|
|||
"fyne.io/fyne/v2/widget"
|
||||
)
|
||||
|
||||
// NavButton ist unser benutzerdefinierter Navigationsbutton
|
||||
type NavButton struct {
|
||||
widget.BaseWidget
|
||||
icon *canvas.Image
|
||||
|
|
@ -52,11 +51,9 @@ func (b *NavButton) Tapped(*fyne.PointEvent) {
|
|||
func (b *NavButton) SetActive(active bool) {
|
||||
b.isActive = active
|
||||
if b.isActive {
|
||||
// b.icon.Resource.Color = theme.ColorSky400
|
||||
b.label.Color = theme.ColorSky400
|
||||
b.label.Color = theme.OneDarkGreen
|
||||
} else {
|
||||
// b.icon.Resource.Color = theme.ColorSlate400
|
||||
b.label.Color = theme.ColorSlate400
|
||||
b.label.Color = theme.OneDarkText
|
||||
}
|
||||
b.Refresh()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue