From 67bcc43b5517da35e08f0454275637cbdb6d22ae Mon Sep 17 00:00:00 2001 From: Grimsace Date: Thu, 19 Feb 2026 15:00:31 -0600 Subject: [PATCH] fixed roll button dissappearing in windows build --- main.go | 2 +- ui.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index e438df4..c87f1bf 100644 --- a/main.go +++ b/main.go @@ -106,7 +106,7 @@ func main() { newCustomButton2("*", func() { diceInputEntry.SetText(diceInputEntry.Text + "*") }), - newCustomButton2("⌫", func() { + newCustomButton2("BKSP", func() { text := diceInputEntry.Text if len(text) > 0 { diceInputEntry.SetText(text[:len(text)-1]) diff --git a/ui.go b/ui.go index ccf86a4..1cefe5d 100644 --- a/ui.go +++ b/ui.go @@ -85,7 +85,7 @@ type customButton2 struct { func (b *customButton2) CreateRenderer() fyne.WidgetRenderer { text := canvas.NewText(b.Text, b.textColor()) text.Alignment = fyne.TextAlignCenter - background := canvas.NewRectangle(color.Transparent) + background := canvas.NewRectangle(b.backgroundColor()) return &customButton2Renderer{ text: text, background: background, @@ -162,7 +162,7 @@ func (b *customButton2) textColor() color.Color { variant := fyne.CurrentApp().Settings().ThemeVariant() switch b.Importance { case widget.HighImportance: - return fyne.CurrentApp().Settings().Theme().Color(theme.ColorNameBackground, variant) + return color.White default: return fyne.CurrentApp().Settings().Theme().Color(theme.ColorNameForeground, variant) }