Tighten about logo size and align top-right

This commit is contained in:
Stu Leak 2026-01-04 02:41:20 -05:00
parent 0b1b337530
commit e090fe0dc1

40
main.go
View File

@ -519,8 +519,8 @@ func (s *appState) showAbout() {
if _, err := os.Stat(p); err == nil { if _, err := os.Stat(p); err == nil {
img := canvas.NewImageFromFile(p) img := canvas.NewImageFromFile(p)
img.FillMode = canvas.ImageFillContain img.FillMode = canvas.ImageFillContain
img.SetMinSize(fyne.NewSize(48, 48)) img.SetMinSize(fyne.NewSize(64, 64))
ltLogo = container.NewCenter(img) ltLogo = img
break break
} }
} }
@ -535,19 +535,21 @@ func (s *appState) showAbout() {
donateURL, _ := url.Parse("https://leaktechnologies.dev/support") donateURL, _ := url.Parse("https://leaktechnologies.dev/support")
donateLink := widget.NewHyperlink("Support development", donateURL) donateLink := widget.NewHyperlink("Support development", donateURL)
bodyItems := []fyne.CanvasObject{ mainContent := container.NewVBox(
versionText, versionText,
devText, devText,
}
if ltLogo != nil {
bodyItems = append(bodyItems, ltLogo)
}
bodyItems = append(bodyItems,
logsLink, logsLink,
donateLink, donateLink,
widget.NewLabel("Feedback: use the Logs button on the main menu to view logs; send issues with attached logs."), widget.NewLabel("Feedback: use the Logs button on the main menu to view logs; send issues with attached logs."),
) )
body := container.NewVBox(bodyItems...)
var body fyne.CanvasObject
if ltLogo != nil {
topRow := container.NewHBox(layout.NewSpacer(), ltLogo)
body = container.NewBorder(topRow, nil, nil, nil, mainContent)
} else {
body = mainContent
}
dialog.ShowCustom("About & Support", "Close", body, s.window) dialog.ShowCustom("About & Support", "Close", body, s.window)
} }
@ -6618,29 +6620,29 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
// Convert UI State Manager - eliminates sync boolean flags and widget duplication // Convert UI State Manager - eliminates sync boolean flags and widget duplication
type convertUIState struct { type convertUIState struct {
// Quality // Quality
quality string quality string
qualityWidgets []*ui.ColoredSelect qualityWidgets []*ui.ColoredSelect
onQualityChange []func(string) onQualityChange []func(string)
// Resolution // Resolution
resolution string resolution string
resolutionWidgets []*widget.Select resolutionWidgets []*widget.Select
onResolutionChange []func(string) onResolutionChange []func(string)
// Aspect Ratio // Aspect Ratio
aspect string aspect string
aspectWidgets []*widget.Select aspectWidgets []*widget.Select
onAspectChange []func(string) onAspectChange []func(string)
// Bitrate Preset // Bitrate Preset
bitratePreset string bitratePreset string
bitratePresetWidgets []*widget.Select bitratePresetWidgets []*widget.Select
onBitratePresetChange []func(string) onBitratePresetChange []func(string)
// Callbacks for state updates // Callbacks for state updates
updateEncodingControls func() updateEncodingControls func()
updateAspectBoxVisibility func() updateAspectBoxVisibility func()
buildCommandPreview func() buildCommandPreview func()
} }
uiState := &convertUIState{ uiState := &convertUIState{