perf/feat: gate cpu behaviors on _showPanel; add reducedMotion theme setting for ambient animations
This commit is contained in:
parent
937ae5af2e
commit
c96b023fbe
4 changed files with 11 additions and 2 deletions
|
|
@ -35,6 +35,7 @@ QtObject {
|
|||
property int groupSpacing: 6
|
||||
property int radius: 4
|
||||
property int screenRadius: 15
|
||||
property bool reducedMotion: false
|
||||
|
||||
property FileView _themeFile: FileView {
|
||||
path: (Quickshell.env("XDG_CONFIG_HOME") || (Quickshell.env("HOME") + "/.config")) + "/nova-shell/theme.json"
|
||||
|
|
@ -75,5 +76,7 @@ QtObject {
|
|||
root.radius = data.radius;
|
||||
if (data.screenRadius !== undefined)
|
||||
root.screenRadius = data.screenRadius;
|
||||
if (data.reducedMotion !== undefined)
|
||||
root.reducedMotion = data.reducedMotion;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue