mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-31 09:45:24 +00:00
chore: adjust to maintain visual proportion
This commit is contained in:
@@ -63,18 +63,14 @@ Item {
|
||||
|
||||
function getWorkspaceWidth(ws) {
|
||||
const d = Style.capsuleHeight * root.baseDimensionRatio
|
||||
if (ws.isFocused)
|
||||
return d * 2.5
|
||||
else
|
||||
return d
|
||||
const factor = ws.isFocused ? 2.2 : 1
|
||||
return d * factor
|
||||
}
|
||||
|
||||
function getWorkspaceHeight(ws) {
|
||||
const d = Style.capsuleHeight * root.baseDimensionRatio
|
||||
if (ws.isFocused)
|
||||
return d * 3
|
||||
else
|
||||
return d
|
||||
const factor = ws.isFocused ? 2.2 : 1
|
||||
return d * factor
|
||||
}
|
||||
|
||||
function computeWidth() {
|
||||
|
||||
Reference in New Issue
Block a user