Workspace: show occupied workspaces with a different color
This commit is contained in:
parent
e8af442b34
commit
320870df0b
3 changed files with 12 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue