mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Workspace: show occupied workspaces with a different color
This commit is contained in:
@@ -168,11 +168,16 @@ Item {
|
||||
color: {
|
||||
if (model.isFocused)
|
||||
return Theme.accentPrimary;
|
||||
if (model.isActive)
|
||||
return Theme.accentPrimary.lighter(130);
|
||||
if (model.isUrgent)
|
||||
return Theme.error;
|
||||
return Qt.lighter(Theme.surfaceVariant, 1.6);
|
||||
if (model.isActive)
|
||||
return Theme.accentSecondary;
|
||||
if (model.isOccupied)
|
||||
return Theme.accentSecondary;
|
||||
if (model.isUrgent)
|
||||
return Theme.error;
|
||||
|
||||
return Theme.surfaceVariant.lighter(1.5);
|
||||
}
|
||||
scale: model.isFocused ? 1.0 : 0.9
|
||||
z: 0
|
||||
|
||||
+2
-2
@@ -49,10 +49,10 @@ Singleton {
|
||||
isFocused: ws.is_focused === true,
|
||||
isActive: ws.is_active === true,
|
||||
isUrgent: ws.is_urgent === true,
|
||||
activeWindowId: ws.active_window_id
|
||||
isOccupied: ws.active_window_id ? true : false
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
workspacesList.sort((a, b) => {
|
||||
if (a.output !== b.output) {
|
||||
return a.output.localeCompare(b.output);
|
||||
|
||||
@@ -124,7 +124,8 @@ Singleton {
|
||||
output: ws.output || "",
|
||||
isFocused: ws.isFocused === true,
|
||||
isActive: ws.isActive === true,
|
||||
isUrgent: ws.isUrgent === true
|
||||
isUrgent: ws.isUrgent === true,
|
||||
isOccupied: ws.isOccupied === true,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user