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