Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/controlcenter/appearance/AppearancePane.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Item {
property real paddingScale: Config.appearance.padding.scale ?? 1
property real roundingScale: Config.appearance.rounding.scale ?? 1
property real spacingScale: Config.appearance.spacing.scale ?? 1
property real deformScale: Config.appearance.deformScale ?? 1
property bool transparencyEnabled: GlobalConfig.appearance.transparency.enabled ?? false
property real transparencyBase: GlobalConfig.appearance.transparency.base ?? 0.85
property real transparencyLayers: GlobalConfig.appearance.transparency.layers ?? 0.4
Expand Down Expand Up @@ -65,6 +66,7 @@ Item {
GlobalConfig.appearance.padding.scale = root.paddingScale;
GlobalConfig.appearance.rounding.scale = root.roundingScale;
GlobalConfig.appearance.spacing.scale = root.spacingScale;
GlobalConfig.appearance.deformScale = root.deformScale;

GlobalConfig.appearance.transparency.enabled = root.transparencyEnabled;
GlobalConfig.appearance.transparency.base = root.transparencyBase;
Expand Down
24 changes: 24 additions & 0 deletions modules/controlcenter/appearance/sections/ScalesSection.qml
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,28 @@ CollapsibleSection {
}
}
}

SectionContainer {
contentSpacing: Tokens.spacing.normal

SliderInput {
Layout.fillWidth: true

label: qsTr("deform scale")
value: rootPane.deformScale
from: 0
to: 10.0
decimals: 1
suffix: "×"
validator: DoubleValidator {
bottom: 0
top: 10.0
}

onValueModified: newValue => {
rootPane.deformScale = newValue;
rootPane.saveConfig();
}
}
}
}