1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-07 22:18:30 -04:00

workspaces: fix hardcoded font weight to use configured value

fixes #2076
This commit is contained in:
bbedward
2026-07-03 12:10:45 -04:00
parent 61108b7668
commit 8e7126472e
5 changed files with 125 additions and 125 deletions
@@ -1629,7 +1629,7 @@ Item {
text: loadedIconData?.value ?? "" text: loadedIconData?.value ?? ""
color: (isActive || isUrgent) ? Theme.withAlpha(Theme.surfaceContainer, 0.95) : isPlaceholder ? Theme.surfaceTextAlpha : Theme.surfaceTextMedium color: (isActive || isUrgent) ? Theme.withAlpha(Theme.surfaceContainer, 0.95) : isPlaceholder ? Theme.surfaceTextAlpha : Theme.surfaceTextMedium
font.pixelSize: Theme.barTextSize(barThickness, barConfig?.fontScale, barConfig?.maximizeWidgetText) font.pixelSize: Theme.barTextSize(barThickness, barConfig?.fontScale, barConfig?.maximizeWidgetText)
font.weight: (isActive && !isPlaceholder) ? Font.DemiBold : Font.Normal font.weight: (isActive && !isPlaceholder) ? Math.max(Theme.fontWeight, Font.DemiBold) : Theme.fontWeight
} }
} }
@@ -1644,7 +1644,7 @@ Item {
text: loadedHasIcon ? (modelData?.name ?? "") : root.getWorkspaceIndex(modelData, index) text: loadedHasIcon ? (modelData?.name ?? "") : root.getWorkspaceIndex(modelData, index)
color: (isActive || isUrgent) ? Theme.withAlpha(Theme.surfaceContainer, 0.95) : isPlaceholder ? Theme.surfaceTextAlpha : Theme.surfaceTextMedium color: (isActive || isUrgent) ? Theme.withAlpha(Theme.surfaceContainer, 0.95) : isPlaceholder ? Theme.surfaceTextAlpha : Theme.surfaceTextMedium
font.pixelSize: Theme.barTextSize(barThickness, barConfig?.fontScale, barConfig?.maximizeWidgetText) font.pixelSize: Theme.barTextSize(barThickness, barConfig?.fontScale, barConfig?.maximizeWidgetText)
font.weight: (isActive && !isPlaceholder) ? Font.DemiBold : Font.Normal font.weight: (isActive && !isPlaceholder) ? Math.max(Theme.fontWeight, Font.DemiBold) : Theme.fontWeight
} }
} }
@@ -1805,7 +1805,7 @@ Item {
text: loadedIconData?.value ?? "" text: loadedIconData?.value ?? ""
color: (isActive || isUrgent) ? Theme.withAlpha(Theme.surfaceContainer, 0.95) : isPlaceholder ? Theme.surfaceTextAlpha : Theme.surfaceTextMedium color: (isActive || isUrgent) ? Theme.withAlpha(Theme.surfaceContainer, 0.95) : isPlaceholder ? Theme.surfaceTextAlpha : Theme.surfaceTextMedium
font.pixelSize: Theme.barTextSize(barThickness, barConfig?.fontScale, barConfig?.maximizeWidgetText) font.pixelSize: Theme.barTextSize(barThickness, barConfig?.fontScale, barConfig?.maximizeWidgetText)
font.weight: (isActive && !isPlaceholder) ? Font.DemiBold : Font.Normal font.weight: (isActive && !isPlaceholder) ? Math.max(Theme.fontWeight, Font.DemiBold) : Theme.fontWeight
} }
StyledText { StyledText {
@@ -1814,7 +1814,7 @@ Item {
text: loadedHasIcon ? (root.isVertical ? (modelData?.name ?? "").charAt(0) : (modelData?.name ?? "")) : root.getWorkspaceIndex(modelData, index) text: loadedHasIcon ? (root.isVertical ? (modelData?.name ?? "").charAt(0) : (modelData?.name ?? "")) : root.getWorkspaceIndex(modelData, index)
color: (isActive || isUrgent) ? Theme.withAlpha(Theme.surfaceContainer, 0.95) : isPlaceholder ? Theme.surfaceTextAlpha : Theme.surfaceTextMedium color: (isActive || isUrgent) ? Theme.withAlpha(Theme.surfaceContainer, 0.95) : isPlaceholder ? Theme.surfaceTextAlpha : Theme.surfaceTextMedium
font.pixelSize: Theme.barTextSize(barThickness, barConfig?.fontScale, barConfig?.maximizeWidgetText) font.pixelSize: Theme.barTextSize(barThickness, barConfig?.fontScale, barConfig?.maximizeWidgetText)
font.weight: (isActive && !isPlaceholder) ? Font.DemiBold : Font.Normal font.weight: (isActive && !isPlaceholder) ? Math.max(Theme.fontWeight, Font.DemiBold) : Theme.fontWeight
} }
Repeater { Repeater {
@@ -1133,10 +1133,6 @@ Item {
} }
} }
WorkspaceAppearanceCard {
visible: dankBarTab.appearanceOnly
}
SettingsCard { SettingsCard {
tab: "appearance" tab: "appearance"
iconName: "rounded_corner" iconName: "rounded_corner"
@@ -198,6 +198,10 @@ Item {
} }
} }
WorkspaceAppearanceCard {
width: parent.width
}
SettingsCard { SettingsCard {
width: parent.width width: parent.width
iconName: "label" iconName: "label"
@@ -101,7 +101,7 @@ TAB_INDEX_MAP = {
"WindowRulesTab.qml": 38, "WindowRulesTab.qml": 38,
"DockTab.qml": 5, "DockTab.qml": 5,
"DankBarAppearanceTab.qml": 6, "DankBarAppearanceTab.qml": 6,
"WorkspaceAppearanceCard.qml": 6, "WorkspaceAppearanceCard.qml": 4,
"NetworkStatusTab.qml": 7, "NetworkStatusTab.qml": 7,
"NetworkEthernetTab.qml": 39, "NetworkEthernetTab.qml": 39,
"NetworkWifiTab.qml": 40, "NetworkWifiTab.qml": 40,
+116 -116
View File
@@ -872,6 +872,57 @@
"description": "Drag workspace indicators to reorder them", "description": "Drag workspace indicators to reorder them",
"conditionKey": "isNiri" "conditionKey": "isNiri"
}, },
{
"section": "workspaceFocusedBorderEnabled",
"label": "Focused Border",
"tabIndex": 4,
"category": "Dank Bar",
"keywords": [
"around",
"bar",
"border",
"dank",
"desktop",
"focused",
"indicator",
"outline",
"panel",
"ring",
"show",
"statusbar",
"topbar",
"virtual",
"workspace"
],
"description": "Show an outline ring around the focused workspace indicator"
},
{
"section": "workspaceUnfocusedMonitorBorderEnabled",
"label": "Focused Border",
"tabIndex": 4,
"category": "Dank Bar",
"keywords": [
"around",
"bar",
"border",
"dank",
"desktop",
"display",
"focused",
"indicator",
"monitor",
"outline",
"panel",
"ring",
"show",
"statusbar",
"topbar",
"unfocused",
"virtual",
"workspace"
],
"description": "Show an outline ring around the focused workspace indicator"
},
{ {
"section": "workspaceFollowFocus", "section": "workspaceFollowFocus",
"label": "Follow Monitor Focus", "label": "Follow Monitor Focus",
@@ -1026,6 +1077,44 @@
"description": "Reverse workspace switch direction when scrolling over the bar", "description": "Reverse workspace switch direction when scrolling over the bar",
"conditionKey": "isNiri" "conditionKey": "isNiri"
}, },
{
"section": "workspaceUnfocusedMonitorSeparateAppearance",
"label": "Separate Appearance for Unfocused Display(s)",
"tabIndex": 4,
"category": "Dank Bar",
"keywords": [
"appearance",
"bar",
"color",
"colors",
"colour",
"colours",
"dank",
"desktop",
"different",
"display",
"display(s)",
"displays",
"focused",
"hue",
"monitor",
"monitors",
"output",
"outputs",
"palette",
"panel",
"screen",
"screens",
"separate",
"statusbar",
"tint",
"topbar",
"unfocused",
"virtual",
"workspace"
],
"description": "Use different workspace colors on displays that are not focused"
},
{ {
"section": "dwlShowAllTags", "section": "dwlShowAllTags",
"label": "Show All Tags", "label": "Show All Tags",
@@ -1106,6 +1195,33 @@
"description": "Display application icons in workspace indicators", "description": "Display application icons in workspace indicators",
"conditionKey": "isNiri" "conditionKey": "isNiri"
}, },
{
"section": "workspaceAppearance",
"label": "Workspace Appearance",
"tabIndex": 4,
"category": "Dank Bar",
"keywords": [
"appearance",
"around",
"bar",
"color",
"custom",
"dank",
"desktop",
"focused",
"indicator",
"outline",
"panel",
"ring",
"show",
"statusbar",
"topbar",
"virtual",
"workspace"
],
"icon": "palette",
"description": "Show an outline ring around the focused workspace indicator"
},
{ {
"section": "showWorkspaceIndex", "section": "showWorkspaceIndex",
"label": "Workspace Index Numbers", "label": "Workspace Index Numbers",
@@ -1875,57 +1991,6 @@
], ],
"description": "Choose how this bar resolves shadow direction" "description": "Choose how this bar resolves shadow direction"
}, },
{
"section": "workspaceFocusedBorderEnabled",
"label": "Focused Border",
"tabIndex": 6,
"category": "Dank Bar",
"keywords": [
"around",
"bar",
"border",
"dank",
"desktop",
"focused",
"indicator",
"outline",
"panel",
"ring",
"show",
"statusbar",
"topbar",
"virtual",
"workspace"
],
"description": "Show an outline ring around the focused workspace indicator"
},
{
"section": "workspaceUnfocusedMonitorBorderEnabled",
"label": "Focused Border",
"tabIndex": 6,
"category": "Dank Bar",
"keywords": [
"around",
"bar",
"border",
"dank",
"desktop",
"display",
"focused",
"indicator",
"monitor",
"outline",
"panel",
"ring",
"show",
"statusbar",
"topbar",
"unfocused",
"virtual",
"workspace"
],
"description": "Show an outline ring around the focused workspace indicator"
},
{ {
"section": "barFontScale", "section": "barFontScale",
"label": "Font Scale", "label": "Font Scale",
@@ -2006,44 +2071,6 @@
"icon": "opacity", "icon": "opacity",
"description": "Controls opacity of the bar background" "description": "Controls opacity of the bar background"
}, },
{
"section": "workspaceUnfocusedMonitorSeparateAppearance",
"label": "Separate Appearance for Unfocused Display(s)",
"tabIndex": 6,
"category": "Dank Bar",
"keywords": [
"appearance",
"bar",
"color",
"colors",
"colour",
"colours",
"dank",
"desktop",
"different",
"display",
"display(s)",
"displays",
"focused",
"hue",
"monitor",
"monitors",
"output",
"outputs",
"palette",
"panel",
"screen",
"screens",
"separate",
"statusbar",
"tint",
"topbar",
"unfocused",
"virtual",
"workspace"
],
"description": "Use different workspace colors on displays that are not focused"
},
{ {
"section": "barShadow", "section": "barShadow",
"label": "Shadow Override", "label": "Shadow Override",
@@ -2148,33 +2175,6 @@
"icon": "highlight", "icon": "highlight",
"description": "Theme color used for the widget outline" "description": "Theme color used for the widget outline"
}, },
{
"section": "workspaceAppearance",
"label": "Workspace Appearance",
"tabIndex": 6,
"category": "Dank Bar",
"keywords": [
"appearance",
"around",
"bar",
"color",
"custom",
"dank",
"desktop",
"focused",
"indicator",
"outline",
"panel",
"ring",
"show",
"statusbar",
"topbar",
"virtual",
"workspace"
],
"icon": "palette",
"description": "Show an outline ring around the focused workspace indicator"
},
{ {
"section": "_tab_7", "section": "_tab_7",
"label": "Network", "label": "Network",