mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-28 05:55:21 -04:00
feat(bar): separate workspace appearance for unfocused displays (#2687)
* feat(bar): separate workspace appearance for unfocused displays Add a toggle in the Workspace Appearance card to style workspace indicators independently on displays that aren't currently focused. The card is split into Focused Display and Unfocused Display(s) tabs. When the new master toggle is off (default), unfocused displays inherit the focused settings, preserving existing behavior. When on, unfocused displays use their own colors (focused/occupied/unfocused/urgent) and focused border (enable, color, thickness). WorkspaceSwitcher resolves the focused monitor per compositor and routes color/border resolution through isFocusedMonitor/useUnfocusedAppearance. * refactor(bar): address review feedback for unfocused workspace appearance - Consolidate focused-monitor lookup into BarWidgetService.getFocusedScreenName(), adding Mango support, and drop the duplicate compositor switches in WorkspaceSwitcher (effectiveScreenName + isFocusedMonitor now use the helper). - Extract the shared color and border options into reusable WorkspaceAppearanceColorOptions and WorkspaceAppearanceBorderFields components so the focused and unfocused tabs no longer duplicate the layout. - Gate the unfocused-display options on BarWidgetService.focusedScreenDetectionSupported and show an explanatory note on compositors without focus detection (e.g. labwc), instead of silently no-opping.
This commit is contained in:
@@ -1899,6 +1899,33 @@
|
||||
],
|
||||
"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",
|
||||
"label": "Font Scale",
|
||||
@@ -1979,6 +2006,44 @@
|
||||
"icon": "opacity",
|
||||
"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",
|
||||
"label": "Shadow Override",
|
||||
|
||||
Reference in New Issue
Block a user