refactor: perform clean up

This commit is contained in:
Patryk Hegenberg 2025-06-28 14:13:14 +02:00
parent c15cdea57d
commit a7e427ca14
13 changed files with 133 additions and 85 deletions

View file

@ -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()
}