Add unified window focus opacity and dimming effects

This commit is contained in:
Samuel Onoja committed 2026-10-07 07:00:30 +01:00
1 parent 02ec7e5199
commit bbc5b27c25
21 files changed
+553 -342

No files matched your search

+37 -11
View File
@@ -1016,19 +1016,45 @@ pub fn fields(page: Page) -> Vec<Field> {
},
),
toggle(
"appearance.inactive_dim.enabled",
"Dim inactive windows",
"Keep attention on the window you are using.",
false,
"appearance.focus_effect.enabled",
"Window focus effects",
"Apply window opacity and inactive dimming. Turning this off keeps your settings.",
true,
),
range(
"appearance.inactive_dim.amount",
"Dimming amount",
"How much inactive windows recede.",
"appearance.focus_effect.active_opacity",
"Active window opacity",
"Opacity of the active application, including fullscreen windows.",
RangeSpec {
default: 0.15,
default: 1.0,
min: 0.0,
max: 0.5,
max: 1.0,
step: 0.01,
suffix: "",
integer: false,
},
),
range(
"appearance.focus_effect.inactive_opacity",
"Inactive window opacity",
"Opacity of other application windows.",
RangeSpec {
default: 1.0,
min: 0.0,
max: 1.0,
step: 0.01,
suffix: "",
integer: false,
},
),
range(
"appearance.focus_effect.inactive_dim",
"Inactive window dimming",
"Darken inactive windows. Zero disables dimming.",
RangeSpec {
default: 0.0,
min: 0.0,
max: 1.0,
step: 0.01,
suffix: "",
integer: false,
@@ -1056,9 +1082,9 @@ pub fn fields(page: Page) -> Vec<Field> {
},
),
range(
"appearance.inactive_dim.duration_ms",
"appearance.focus_effect.duration_ms",
"Focus transition",
"Time taken to dim an inactive window.",
"Duration of opacity and dimming changes when the active window changes.",
RangeSpec {
default: 150.0,
min: 0.0,