Add animate-appicon-hover settings

Each animation type has its own duration, rotation, travel and zoom settings.
Each multi-icon animation has its own convexity and extent settings.
It is achieved by using "{ type: value, ... }" dictionaries.
This commit is contained in:
abakkk
2020-12-20 06:11:40 +01:00
parent e4a71fa014
commit 8796899526
3 changed files with 521 additions and 7 deletions

View File

@@ -57,6 +57,11 @@
<value value='1' nick='NUM_KEYPAD'/>
<value value='2' nick='BOTH'/>
</enum>
<enum id='org.gnome.shell.extensions.dash-to-panel.appIconHoverAnimationType'>
<value value='0' nick='SIMPLE'/>
<value value='1' nick='RIPPLE'/>
<value value='2' nick='PLANK'/>
</enum>
<schema path="/org/gnome/shell/extensions/dash-to-panel/" id="org.gnome.shell.extensions.dash-to-panel">
<key type="b" name="check-update">
<default>false</default>
@@ -747,6 +752,38 @@
<default>true</default>
<summary>Animate when new window launched</summary>
</key>
<key type="b" name="animate-appicon-hover">
<default>false</default>
<summary>Animate app icon on hover</summary>
</key>
<key name="animate-appicon-hover-animation-type" enum="org.gnome.shell.extensions.dash-to-panel.appIconHoverAnimationType">
<default>'SIMPLE'</default>
<summary>App icon hover animation type</summary>
</key>
<key type="a{sd}" name="animate-appicon-hover-animation-convexity">
<default>{'RIPPLE':2,'PLANK':1}</default>
<summary>App icon hover animation curve convexity (1 is linear, more is convex, less is concave)</summary>
</key>
<key type="a{su}" name="animate-appicon-hover-animation-duration">
<default>{'SIMPLE':160,'RIPPLE':130,'PLANK':100}</default>
<summary>App icon hover animation duration in milliseconds</summary>
</key>
<key type="a{si}" name="animate-appicon-hover-animation-extent">
<default>{'RIPPLE':4,'PLANK':4}</default>
<summary>App icon hover animation extent (maximum number of animated icons)</summary>
</key>
<key type="a{si}" name="animate-appicon-hover-animation-rotation">
<default>{'SIMPLE':0,'RIPPLE':10,'PLANK':0}</default>
<summary>App icon hover animation rotation in degrees</summary>
</key>
<key type="a{sd}" name="animate-appicon-hover-animation-travel">
<default>{'SIMPLE':0.30,'RIPPLE':0.40,'PLANK':0}</default>
<summary>App icon hover animation travel translation in relation to the app icon size</summary>
</key>
<key type="a{sd}" name="animate-appicon-hover-animation-zoom">
<default>{'SIMPLE':1,'RIPPLE':1.25,'PLANK':2}</default>
<summary>App icon hover animation zoom scale in relation to the app icon size</summary>
</key>
<key type="b" name="secondarymenu-contains-appmenu">
<default>true</default>
<summary>Integrate items from the gnome appmenu into the right click menu</summary>