🔧 Tweak glide defaults [generate-references]
This commit is contained in:
@@ -33,7 +33,7 @@ void main() {
|
||||
coords.y /= mix(1.0, (1.0 - uSquish), progress);
|
||||
|
||||
// 'Tilt' image texture around x-axis.
|
||||
coords.x /= mix(1.0, 1.0 - uTilt * coords.y, progress);
|
||||
coords.x /= mix(1.0, 1.0 - 0.1 * uTilt * coords.y, progress);
|
||||
|
||||
// Move texture coordinate center to corner again.
|
||||
coords = coords * 0.5 + 0.5;
|
||||
|
||||
@@ -29,8 +29,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
</object>
|
||||
|
||||
<object class="GtkAdjustment" id="glide-tilt">
|
||||
<property name="upper">0.5</property>
|
||||
<property name="lower">-0.5</property>
|
||||
<property name="upper">1</property>
|
||||
<property name="lower">-1</property>
|
||||
<property name="step-increment">0.01</property>
|
||||
<property name="page-increment">0.1</property>
|
||||
</object>
|
||||
|
||||
@@ -182,8 +182,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
<property name="width-request">300</property>
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment" id="glide-tilt">
|
||||
<property name="upper">0.5</property>
|
||||
<property name="lower">-0.5</property>
|
||||
<property name="upper">1</property>
|
||||
<property name="lower">-1</property>
|
||||
<property name="step-increment">0.01</property>
|
||||
<property name="page-increment">0.1</property>
|
||||
</object>
|
||||
|
||||
@@ -314,13 +314,13 @@ SPDX-License-Identifier: CC0-1.0
|
||||
</key>
|
||||
|
||||
<key name="glide-animation-time" type="i">
|
||||
<default>200</default>
|
||||
<default>300</default>
|
||||
<summary>Glide Animation Time</summary>
|
||||
<description>The time the glide effect takes.</description>
|
||||
</key>
|
||||
|
||||
<key name="glide-scale" type="d">
|
||||
<default>0.85</default>
|
||||
<default>0.9</default>
|
||||
<summary>Glide Scale</summary>
|
||||
<description>The scale of the window.</description>
|
||||
</key>
|
||||
@@ -332,7 +332,7 @@ SPDX-License-Identifier: CC0-1.0
|
||||
</key>
|
||||
|
||||
<key name="glide-tilt" type="d">
|
||||
<default>-0.1</default>
|
||||
<default>-0.4</default>
|
||||
<summary>Glide Tilt</summary>
|
||||
<description>The amount of tilting.</description>
|
||||
</key>
|
||||
|
||||
Reference in New Issue
Block a user