Compare commits

...

3 Commits

Author SHA1 Message Date
a486961c4a fix(ui): Use hover color as default for buttons and inputs
Changed button and input backgrounds to use the brighter hover
color as their default appearance instead of dull grey. This makes
dropdowns and buttons more visually appealing by default.
2025-12-31 14:16:40 -05:00
d0a35cdcb2 fix(ui): Enable text wrapping in metadata panel
Enabled word wrapping for all value labels in the metadata panel
to prevent text cutoff. Long filenames and metadata values will
now wrap to multiple lines instead of being truncated.
2025-12-31 14:09:29 -05:00
cac747f5c2 fix(settings): Enable text wrapping for all labels in dependencies tab
Added text wrapping to description labels, install command labels,
and 'Required by' labels to prevent horizontal scrolling. All text
now wraps properly to fit the available width.
2025-12-31 14:01:08 -05:00
3 changed files with 12 additions and 3 deletions

View File

@ -37,7 +37,6 @@ func SetColors(grid, text color.Color) {
type MonoTheme struct{}
func (m *MonoTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color {
// Swap hover and selection colors
switch name {
case theme.ColorNameSelection:
// Use the default hover color for selection
@ -45,6 +44,12 @@ func (m *MonoTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) c
case theme.ColorNameHover:
// Use the default selection color for hover
return theme.DefaultTheme().Color(theme.ColorNameSelection, variant)
case theme.ColorNameButton:
// Use hover color as default button background
return theme.DefaultTheme().Color(theme.ColorNameHover, variant)
case theme.ColorNameInputBackground:
// Use hover color as default input background (for dropdowns/entries)
return theme.DefaultTheme().Color(theme.ColorNameHover, variant)
}
return theme.DefaultTheme().Color(name, variant)
}

View File

@ -9197,7 +9197,7 @@ Metadata: %s`,
keyLabel := widget.NewLabel(key + ":")
keyLabel.TextStyle = fyne.TextStyle{Bold: true}
valueLabel := widget.NewLabel(value)
// Don't wrap - let text flow naturally
valueLabel.Wrapping = fyne.TextWrapWord
return container.NewHBox(keyLabel, valueLabel)
}

View File

@ -200,6 +200,7 @@ func buildDependenciesTab(state *appState) fyne.CanvasObject {
descLabel := widget.NewLabel(dep.Description)
descLabel.TextStyle = fyne.TextStyle{Italic: true}
descLabel.Wrapping = fyne.TextWrapWord
installLabel := widget.NewLabel(dep.InstallCmd)
installLabel.Wrapping = fyne.TextWrapWord
@ -223,7 +224,9 @@ func buildDependenciesTab(state *appState) fyne.CanvasObject {
)
if !isInstalled {
infoBox.Add(widget.NewLabel("Install: " + installLabel.Text))
installCmdLabel := widget.NewLabel("Install: " + installLabel.Text)
installCmdLabel.Wrapping = fyne.TextWrapWord
infoBox.Add(installCmdLabel)
}
// Check which modules need this dependency
@ -246,6 +249,7 @@ func buildDependenciesTab(state *appState) fyne.CanvasObject {
if len(modulesNeeding) > 0 {
neededLabel := widget.NewLabel("Required by: " + strings.Join(modulesNeeding, ", "))
neededLabel.TextStyle = fyne.TextStyle{Italic: true}
neededLabel.Wrapping = fyne.TextWrapWord
infoBox.Add(neededLabel)
}