fix(keybinds): use an existing font weight for unselected tabs (#3790)

Theme has no fontWeightNormal, so every unselected category tab in the
keybinds cheat sheet assigned undefined to font.weight. QML rejects
that and keeps the last value, so a tab stayed Medium after it was
deselected, and unselected tabs ignored the font weight setting.
Use Theme.fontWeight, the shell's regular weight.
This commit is contained in:
Marlon Kranz authored and GitHub committed 2026-10-15 09:14:19 -04:00
1 parent 879533440e
commit eb837255e0
1 file changed
+2 -2
+2 -2
View File
@@ -622,7 +622,7 @@ FocusScope {
StyledText {
text: I18n.tr("All")
color: allTab.contentColor
font.weight: allTab.isSelected ? Theme.fontWeightMedium : Theme.fontWeightNormal
font.weight: allTab.isSelected ? Theme.fontWeightMedium : Theme.fontWeight
Layout.fillWidth: true
elide: Text.ElideRight
}
@@ -675,7 +675,7 @@ FocusScope {
StyledText {
text: I18n.tr(catTab.catName)
color: catTab.contentColor
font.weight: catTab.isSelected ? Theme.fontWeightMedium : Theme.fontWeightNormal
font.weight: catTab.isSelected ? Theme.fontWeightMedium : Theme.fontWeight
Layout.fillWidth: true
elide: Text.ElideRight
}