From ac424543d8f8f31b6ad44cf9452fa08907c44a3c Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Wed, 17 Dec 2025 14:34:13 -0500 Subject: [PATCH] Make entire status strip clickable --- main.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index dade5fc..82cb630 100644 --- a/main.go +++ b/main.go @@ -110,8 +110,9 @@ func moduleColor(id string) color.Color { func statusStrip(bar *ui.ConversionStatsBar) fyne.CanvasObject { bg := canvas.NewRectangle(color.NRGBA{R: 34, G: 34, B: 34, A: 255}) bg.SetMinSize(fyne.NewSize(0, 32)) - content := container.NewPadded(container.NewHBox(bar, layout.NewSpacer())) - return container.NewMax(bg, container.NewBorder(nil, nil, nil, nil, content)) + // Make the entire bar area clickable by letting the bar fill the strip + content := container.NewPadded(container.NewMax(bar)) + return container.NewMax(bg, content) } // moduleFooter stacks a dark status strip above a tinted action/footer band. @@ -593,13 +594,13 @@ func saveBenchmarkConfig(cfg benchmarkConfig) error { } type appState struct { - window fyne.Window - active string - lastModule string - navigationHistory []string // Track module navigation history for back/forward buttons - navigationHistoryPosition int // Current position in navigation history - navigationHistorySuppress bool // Temporarily suppress history tracking during navigation - source *videoSource + window fyne.Window + active string + lastModule string + navigationHistory []string // Track module navigation history for back/forward buttons + navigationHistoryPosition int // Current position in navigation history + navigationHistorySuppress bool // Temporarily suppress history tracking during navigation + source *videoSource loadedVideos []*videoSource // Multiple loaded videos for navigation currentIndex int // Current video index in loadedVideos anim *previewAnimator