mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-26 13:07:49 -04:00
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:
1 parent
879533440e
commit
eb837255e0
1 file changed
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user