BlueGit

timfa kwin-marble

Marble look: black-glass zone mix (configurable BlackMixOuter/BlackMixCenter), sharper bent-square highlight

timfa Tim Falken · pushed by timfa

Authored 2026-11-02 · 2 weeks ago

Hash
632a007b3202d78cba8354797278c3d53e3d1cce
Parent
c3950352
12 files changed +90 −24
README.md +2 −0
@@ -39,6 +39,8 @@ it does not show up.
39 39 | `Duration` | 300 ms | Morph into the marble |
40 40 | `Pause` | 600 ms | Marble rests before falling |
41 41 | `Gravity` | 4000 px/s² | Fall acceleration; fall time = sqrt(2·distance / g) (close: 1.5 screen heights; minimize: distance to taskbar entry) |
42 | `BlackMixOuter` | 50 % | Black mix on the outer/lower part of the marble (dull "black glass") |
43 | `BlackMixCenter` | 5 % | Black mix on the upper-middle part, where the window shows through; soft gradient between both zones |
42 44
43 45 All durations are scaled by Plasma's global animation speed.
44 46
@@ -39,6 +39,8 @@ it does not show up.
39| `Duration` | 300 ms | Morph into the marble |
39| `Duration` | 300 ms | Morph into the marble |
40| `Pause` | 600 ms | Marble rests before falling |
40| `Pause` | 600 ms | Marble rests before falling |
41| `Gravity` | 4000 px/s² | Fall acceleration; fall time = sqrt(2·distance / g) (close: 1.5 screen heights; minimize: distance to taskbar entry) |
41| `Gravity` | 4000 px/s² | Fall acceleration; fall time = sqrt(2·distance / g) (close: 1.5 screen heights; minimize: distance to taskbar entry) |
42| `BlackMixOuter` | 50 % | Black mix on the outer/lower part of the marble (dull "black glass") |
43| `BlackMixCenter` | 5 % | Black mix on the upper-middle part, where the window shows through; soft gradient between both zones |
42
44
43All durations are scaled by Plasma's global animation speed.
45All durations are scaled by Plasma's global animation speed.
44
46
docs/marble-look.png added Binary file +0 −0

The contents of this binary file are not shown.

kwin6_effect_marble/contents/code/main.js +2 −0
@@ -87,6 +87,8 @@ class BurnMyWindowsMarbleEffect {
87 87 // free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor
88 88 this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));
89 89 effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);
90 effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 50)))) / 100);
91 effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);
90 92 effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));
91 93 }
92 94
@@ -87,6 +87,8 @@ class BurnMyWindowsMarbleEffect {
87 // free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor
87 // free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor
88 this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));
88 this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));
89 effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);
89 effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);
90 effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 50)))) / 100);
91 effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);
90 effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));
92 effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));
91 }
93 }
92
94
kwin6_effect_marble/contents/config/main.xml +2 −0
@@ -5,5 +5,7 @@
5 5 <entry name="Duration" type="UInt"><default>300</default></entry>
6 6 <entry name="Pause" type="UInt"><default>600</default></entry>
7 7 <entry name="Gravity" type="UInt"><default>4000</default></entry>
8 <entry name="BlackMixOuter" type="UInt"><default>50</default></entry>
9 <entry name="BlackMixCenter" type="UInt"><default>5</default></entry>
8 10 </group>
9 11 </kcfg>
@@ -5,5 +5,7 @@
5 <entry name="Duration" type="UInt"><default>300</default></entry>
5 <entry name="Duration" type="UInt"><default>300</default></entry>
6 <entry name="Pause" type="UInt"><default>600</default></entry>
6 <entry name="Pause" type="UInt"><default>600</default></entry>
7 <entry name="Gravity" type="UInt"><default>4000</default></entry>
7 <entry name="Gravity" type="UInt"><default>4000</default></entry>
8 <entry name="BlackMixOuter" type="UInt"><default>50</default></entry>
9 <entry name="BlackMixCenter" type="UInt"><default>5</default></entry>
8 </group>
10 </group>
9</kcfg>
11</kcfg>
kwin6_effect_marble/contents/shaders/marble.frag +18 −6
@@ -742,9 +742,11 @@ vec4 remap(vec4 value, vec4 oldMin, vec4 oldMax, vec4 newMin, vec4 newMax) {
742 742
743 743 // The content from common.glsl is automatically prepended to each shader effect.
744 744
745 // Marble [Burn-My-Windows variant] v7: window morphs into a glossy 2D marble.
745 // Marble [Burn-My-Windows variant] v8: window morphs into a glossy 2D marble (black-glass look).
746 746 // The fall happens in main.js (Translation, constant gravity) after the marble is done.
747 747 uniform float uCrumpleEnd;
748 uniform float uMixOuter; // 0..1 black mix, outer/bottom zone
749 uniform float uMixCenter; // 0..1 black mix, centre/top zone
748 750
749 751 void main() {
750 752 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
@@ -753,7 +755,7 @@ void main() {
753 755
754 756 vec2 hs = 0.5 * uSize;
755 757 vec2 p = iTexCoord * uSize - hs;
756 float R0 = 0.035 * min(uSize.x, uSize.y); // ~7% diameter
758 float R0 = 0.035 * min(uSize.x, uSize.y);
757 759 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
758 760 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
759 761 vec2 dq = max(abs(p) - (b - rad), 0.0);
@@ -776,14 +778,24 @@ void main() {
776 778 // glossy marble shading
777 779 vec3 n = vec3(q * e, z);
778 780 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
781 // "window seen through black glass": centre/top (blue zone) barely mixed with black,
782 // outer/bottom (red zone) strongly; soft elliptic gradient around a point above centre
783 vec2 bz = (q - vec2(0.05, -0.22)) * vec2(1.0, 1.45);
784 float outer = smoothstep(0.2, 0.85, length(bz));
785 col.rgb *= 1.0 - e * mix(uMixCenter, uMixOuter, outer);
786 // bent rounded-square shine top-left (superellipse in a rotated, curved frame), sharp edge
787 vec2 sv = q - vec2(-0.40, -0.47);
788 vec2 sr = vec2(0.766 * sv.x - 0.643 * sv.y, 0.643 * sv.x + 0.766 * sv.y); // rotate -40deg
789 sr.y -= 1.6 * sr.x * sr.x; // bend towards the centre
790 vec2 s4 = sr / vec2(0.19, 0.115); s4 *= s4; s4 *= s4;
791 float spot = 1.0 - smoothstep(0.75, 1.0, s4.x + s4.y);
779 792 vec2 hv = q - vec2(-0.38, -0.42);
780 float hd = dot(hv, hv);
781 float spot = (1.0 - smoothstep(0.004, 0.012, hd)); // small sharp highlight
782 float glow = 0.35 * (1.0 - smoothstep(0.0, 0.25, hd)); // softer glow
793 float glow = 0.1 * (1.0 - smoothstep(0.0, 0.3, dot(hv, hv)));
783 794 float fres = 1.0 - z; fres *= fres; // rim light
784 795 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
785 796 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
786 col.rgb = col.rgb * lit + e * (vec3(spot * 0.9 + glow) + fres * vec3(0.25, 0.28, 0.32));
797 col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
798 col.rgb = mix(col.rgb, vec3(1.0), e * spot); // opaque, strong shine
787 799 col.rgb = min(col.rgb, vec3(1.0));
788 800 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
789 801 setOutputColor(col);
@@ -742,9 +742,11 @@ vec4 remap(vec4 value, vec4 oldMin, vec4 oldMax, vec4 newMin, vec4 newMax) {
742
742
743// The content from common.glsl is automatically prepended to each shader effect.
743// The content from common.glsl is automatically prepended to each shader effect.
744
744
745// Marble [Burn-My-Windows variant] v7: window morphs into a glossy 2D marble.
745// Marble [Burn-My-Windows variant] v8: window morphs into a glossy 2D marble (black-glass look).
746// The fall happens in main.js (Translation, constant gravity) after the marble is done.
746// The fall happens in main.js (Translation, constant gravity) after the marble is done.
747uniform float uCrumpleEnd;
747uniform float uCrumpleEnd;
748uniform float uMixOuter; // 0..1 black mix, outer/bottom zone
749uniform float uMixCenter; // 0..1 black mix, centre/top zone
748
750
749void main() {
751void main() {
750 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
752 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
@@ -753,7 +755,7 @@ void main() {
753
755
754 vec2 hs = 0.5 * uSize;
756 vec2 hs = 0.5 * uSize;
755 vec2 p = iTexCoord * uSize - hs;
757 vec2 p = iTexCoord * uSize - hs;
756 float R0 = 0.035 * min(uSize.x, uSize.y); // ~7% diameter
758 float R0 = 0.035 * min(uSize.x, uSize.y);
757 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
759 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
758 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
760 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
759 vec2 dq = max(abs(p) - (b - rad), 0.0);
761 vec2 dq = max(abs(p) - (b - rad), 0.0);
@@ -776,14 +778,24 @@ void main() {
776 // glossy marble shading
778 // glossy marble shading
777 vec3 n = vec3(q * e, z);
779 vec3 n = vec3(q * e, z);
778 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
780 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
781 // "window seen through black glass": centre/top (blue zone) barely mixed with black,
782 // outer/bottom (red zone) strongly; soft elliptic gradient around a point above centre
783 vec2 bz = (q - vec2(0.05, -0.22)) * vec2(1.0, 1.45);
784 float outer = smoothstep(0.2, 0.85, length(bz));
785 col.rgb *= 1.0 - e * mix(uMixCenter, uMixOuter, outer);
786 // bent rounded-square shine top-left (superellipse in a rotated, curved frame), sharp edge
787 vec2 sv = q - vec2(-0.40, -0.47);
788 vec2 sr = vec2(0.766 * sv.x - 0.643 * sv.y, 0.643 * sv.x + 0.766 * sv.y); // rotate -40deg
789 sr.y -= 1.6 * sr.x * sr.x; // bend towards the centre
790 vec2 s4 = sr / vec2(0.19, 0.115); s4 *= s4; s4 *= s4;
791 float spot = 1.0 - smoothstep(0.75, 1.0, s4.x + s4.y);
779 vec2 hv = q - vec2(-0.38, -0.42);
792 vec2 hv = q - vec2(-0.38, -0.42);
780 float hd = dot(hv, hv);
793 float glow = 0.1 * (1.0 - smoothstep(0.0, 0.3, dot(hv, hv)));
781 float spot = (1.0 - smoothstep(0.004, 0.012, hd)); // small sharp highlight
782 float glow = 0.35 * (1.0 - smoothstep(0.0, 0.25, hd)); // softer glow
783 float fres = 1.0 - z; fres *= fres; // rim light
794 float fres = 1.0 - z; fres *= fres; // rim light
784 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
795 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
785 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
796 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
786 col.rgb = col.rgb * lit + e * (vec3(spot * 0.9 + glow) + fres * vec3(0.25, 0.28, 0.32));
797 col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
798 col.rgb = mix(col.rgb, vec3(1.0), e * spot); // opaque, strong shine
787 col.rgb = min(col.rgb, vec3(1.0));
799 col.rgb = min(col.rgb, vec3(1.0));
788 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
800 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
789 setOutputColor(col);
801 setOutputColor(col);
kwin6_effect_marble/contents/shaders/marble_core.frag +18 −6
@@ -743,9 +743,11 @@ vec4 remap(vec4 value, vec4 oldMin, vec4 oldMax, vec4 newMin, vec4 newMax) {
743 743
744 744 // The content from common.glsl is automatically prepended to each shader effect.
745 745
746 // Marble [Burn-My-Windows variant] v7: window morphs into a glossy 2D marble.
746 // Marble [Burn-My-Windows variant] v8: window morphs into a glossy 2D marble (black-glass look).
747 747 // The fall happens in main.js (Translation, constant gravity) after the marble is done.
748 748 uniform float uCrumpleEnd;
749 uniform float uMixOuter; // 0..1 black mix, outer/bottom zone
750 uniform float uMixCenter; // 0..1 black mix, centre/top zone
749 751
750 752 void main() {
751 753 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
@@ -754,7 +756,7 @@ void main() {
754 756
755 757 vec2 hs = 0.5 * uSize;
756 758 vec2 p = iTexCoord * uSize - hs;
757 float R0 = 0.035 * min(uSize.x, uSize.y); // ~7% diameter
759 float R0 = 0.035 * min(uSize.x, uSize.y);
758 760 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
759 761 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
760 762 vec2 dq = max(abs(p) - (b - rad), 0.0);
@@ -777,14 +779,24 @@ void main() {
777 779 // glossy marble shading
778 780 vec3 n = vec3(q * e, z);
779 781 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
782 // "window seen through black glass": centre/top (blue zone) barely mixed with black,
783 // outer/bottom (red zone) strongly; soft elliptic gradient around a point above centre
784 vec2 bz = (q - vec2(0.05, -0.22)) * vec2(1.0, 1.45);
785 float outer = smoothstep(0.2, 0.85, length(bz));
786 col.rgb *= 1.0 - e * mix(uMixCenter, uMixOuter, outer);
787 // bent rounded-square shine top-left (superellipse in a rotated, curved frame), sharp edge
788 vec2 sv = q - vec2(-0.40, -0.47);
789 vec2 sr = vec2(0.766 * sv.x - 0.643 * sv.y, 0.643 * sv.x + 0.766 * sv.y); // rotate -40deg
790 sr.y -= 1.6 * sr.x * sr.x; // bend towards the centre
791 vec2 s4 = sr / vec2(0.19, 0.115); s4 *= s4; s4 *= s4;
792 float spot = 1.0 - smoothstep(0.75, 1.0, s4.x + s4.y);
780 793 vec2 hv = q - vec2(-0.38, -0.42);
781 float hd = dot(hv, hv);
782 float spot = (1.0 - smoothstep(0.004, 0.012, hd)); // small sharp highlight
783 float glow = 0.35 * (1.0 - smoothstep(0.0, 0.25, hd)); // softer glow
794 float glow = 0.1 * (1.0 - smoothstep(0.0, 0.3, dot(hv, hv)));
784 795 float fres = 1.0 - z; fres *= fres; // rim light
785 796 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
786 797 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
787 col.rgb = col.rgb * lit + e * (vec3(spot * 0.9 + glow) + fres * vec3(0.25, 0.28, 0.32));
798 col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
799 col.rgb = mix(col.rgb, vec3(1.0), e * spot); // opaque, strong shine
788 800 col.rgb = min(col.rgb, vec3(1.0));
789 801 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
790 802 setOutputColor(col);
@@ -743,9 +743,11 @@ vec4 remap(vec4 value, vec4 oldMin, vec4 oldMax, vec4 newMin, vec4 newMax) {
743
743
744// The content from common.glsl is automatically prepended to each shader effect.
744// The content from common.glsl is automatically prepended to each shader effect.
745
745
746// Marble [Burn-My-Windows variant] v7: window morphs into a glossy 2D marble.
746// Marble [Burn-My-Windows variant] v8: window morphs into a glossy 2D marble (black-glass look).
747// The fall happens in main.js (Translation, constant gravity) after the marble is done.
747// The fall happens in main.js (Translation, constant gravity) after the marble is done.
748uniform float uCrumpleEnd;
748uniform float uCrumpleEnd;
749uniform float uMixOuter; // 0..1 black mix, outer/bottom zone
750uniform float uMixCenter; // 0..1 black mix, centre/top zone
749
751
750void main() {
752void main() {
751 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
753 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
@@ -754,7 +756,7 @@ void main() {
754
756
755 vec2 hs = 0.5 * uSize;
757 vec2 hs = 0.5 * uSize;
756 vec2 p = iTexCoord * uSize - hs;
758 vec2 p = iTexCoord * uSize - hs;
757 float R0 = 0.035 * min(uSize.x, uSize.y); // ~7% diameter
759 float R0 = 0.035 * min(uSize.x, uSize.y);
758 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
760 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
759 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
761 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
760 vec2 dq = max(abs(p) - (b - rad), 0.0);
762 vec2 dq = max(abs(p) - (b - rad), 0.0);
@@ -777,14 +779,24 @@ void main() {
777 // glossy marble shading
779 // glossy marble shading
778 vec3 n = vec3(q * e, z);
780 vec3 n = vec3(q * e, z);
779 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
781 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
782 // "window seen through black glass": centre/top (blue zone) barely mixed with black,
783 // outer/bottom (red zone) strongly; soft elliptic gradient around a point above centre
784 vec2 bz = (q - vec2(0.05, -0.22)) * vec2(1.0, 1.45);
785 float outer = smoothstep(0.2, 0.85, length(bz));
786 col.rgb *= 1.0 - e * mix(uMixCenter, uMixOuter, outer);
787 // bent rounded-square shine top-left (superellipse in a rotated, curved frame), sharp edge
788 vec2 sv = q - vec2(-0.40, -0.47);
789 vec2 sr = vec2(0.766 * sv.x - 0.643 * sv.y, 0.643 * sv.x + 0.766 * sv.y); // rotate -40deg
790 sr.y -= 1.6 * sr.x * sr.x; // bend towards the centre
791 vec2 s4 = sr / vec2(0.19, 0.115); s4 *= s4; s4 *= s4;
792 float spot = 1.0 - smoothstep(0.75, 1.0, s4.x + s4.y);
780 vec2 hv = q - vec2(-0.38, -0.42);
793 vec2 hv = q - vec2(-0.38, -0.42);
781 float hd = dot(hv, hv);
794 float glow = 0.1 * (1.0 - smoothstep(0.0, 0.3, dot(hv, hv)));
782 float spot = (1.0 - smoothstep(0.004, 0.012, hd)); // small sharp highlight
783 float glow = 0.35 * (1.0 - smoothstep(0.0, 0.25, hd)); // softer glow
784 float fres = 1.0 - z; fres *= fres; // rim light
795 float fres = 1.0 - z; fres *= fres; // rim light
785 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
796 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
786 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
797 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
787 col.rgb = col.rgb * lit + e * (vec3(spot * 0.9 + glow) + fres * vec3(0.25, 0.28, 0.32));
798 col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
799 col.rgb = mix(col.rgb, vec3(1.0), e * spot); // opaque, strong shine
788 col.rgb = min(col.rgb, vec3(1.0));
800 col.rgb = min(col.rgb, vec3(1.0));
789 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
801 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
790 setOutputColor(col);
802 setOutputColor(col);
kwin6_effect_marble/contents/ui/config.ui +4 −0
@@ -9,6 +9,10 @@
9 9 <item row="2" column="1"><widget class="QSpinBox" name="kcfg_Gravity"><property name="maximum"><number>50000</number></property></widget></item>
10 10 <item row="1" column="0"><widget class="QLabel" name="l3"><property name="text"><string>Pause before fall (ms)</string></property></widget></item>
11 11 <item row="1" column="1"><widget class="QSpinBox" name="kcfg_Pause"><property name="maximum"><number>5000</number></property></widget></item>
12 <item row="3" column="0"><widget class="QLabel" name="l4"><property name="text"><string>Black mix outer (%)</string></property></widget></item>
13 <item row="3" column="1"><widget class="QSpinBox" name="kcfg_BlackMixOuter"><property name="maximum"><number>100</number></property></widget></item>
14 <item row="4" column="0"><widget class="QLabel" name="l5"><property name="text"><string>Black mix center (%)</string></property></widget></item>
15 <item row="4" column="1"><widget class="QSpinBox" name="kcfg_BlackMixCenter"><property name="maximum"><number>100</number></property></widget></item>
12 16 </layout>
13 17 </widget>
14 18 </ui>
@@ -9,6 +9,10 @@
9 <item row="2" column="1"><widget class="QSpinBox" name="kcfg_Gravity"><property name="maximum"><number>50000</number></property></widget></item>
9 <item row="2" column="1"><widget class="QSpinBox" name="kcfg_Gravity"><property name="maximum"><number>50000</number></property></widget></item>
10 <item row="1" column="0"><widget class="QLabel" name="l3"><property name="text"><string>Pause before fall (ms)</string></property></widget></item>
10 <item row="1" column="0"><widget class="QLabel" name="l3"><property name="text"><string>Pause before fall (ms)</string></property></widget></item>
11 <item row="1" column="1"><widget class="QSpinBox" name="kcfg_Pause"><property name="maximum"><number>5000</number></property></widget></item>
11 <item row="1" column="1"><widget class="QSpinBox" name="kcfg_Pause"><property name="maximum"><number>5000</number></property></widget></item>
12 <item row="3" column="0"><widget class="QLabel" name="l4"><property name="text"><string>Black mix outer (%)</string></property></widget></item>
13 <item row="3" column="1"><widget class="QSpinBox" name="kcfg_BlackMixOuter"><property name="maximum"><number>100</number></property></widget></item>
14 <item row="4" column="0"><widget class="QLabel" name="l5"><property name="text"><string>Black mix center (%)</string></property></widget></item>
15 <item row="4" column="1"><widget class="QSpinBox" name="kcfg_BlackMixCenter"><property name="maximum"><number>100</number></property></widget></item>
12 </layout>
16 </layout>
13 </widget>
17 </widget>
14</ui>
18</ui>
kwin6_effect_marble_minimize/contents/code/main.js +2 −0
@@ -93,6 +93,8 @@ class BurnMyWindowsMarbleMinimizeEffect {
93 93 // free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor
94 94 this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));
95 95 effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);
96 effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 50)))) / 100);
97 effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);
96 98 effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));
97 99 }
98 100
@@ -93,6 +93,8 @@ class BurnMyWindowsMarbleMinimizeEffect {
93 // free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor
93 // free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor
94 this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));
94 this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));
95 effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);
95 effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);
96 effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 50)))) / 100);
97 effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);
96 effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));
98 effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));
97 }
99 }
98
100
kwin6_effect_marble_minimize/contents/config/main.xml +2 −0
@@ -5,5 +5,7 @@
5 5 <entry name="Duration" type="UInt"><default>300</default></entry>
6 6 <entry name="Pause" type="UInt"><default>600</default></entry>
7 7 <entry name="Gravity" type="UInt"><default>4000</default></entry>
8 <entry name="BlackMixOuter" type="UInt"><default>50</default></entry>
9 <entry name="BlackMixCenter" type="UInt"><default>5</default></entry>
8 10 </group>
9 11 </kcfg>
@@ -5,5 +5,7 @@
5 <entry name="Duration" type="UInt"><default>300</default></entry>
5 <entry name="Duration" type="UInt"><default>300</default></entry>
6 <entry name="Pause" type="UInt"><default>600</default></entry>
6 <entry name="Pause" type="UInt"><default>600</default></entry>
7 <entry name="Gravity" type="UInt"><default>4000</default></entry>
7 <entry name="Gravity" type="UInt"><default>4000</default></entry>
8 <entry name="BlackMixOuter" type="UInt"><default>50</default></entry>
9 <entry name="BlackMixCenter" type="UInt"><default>5</default></entry>
8 </group>
10 </group>
9</kcfg>
11</kcfg>
kwin6_effect_marble_minimize/contents/shaders/marble.frag +18 −6
@@ -742,9 +742,11 @@ vec4 remap(vec4 value, vec4 oldMin, vec4 oldMax, vec4 newMin, vec4 newMax) {
742 742
743 743 // The content from common.glsl is automatically prepended to each shader effect.
744 744
745 // Marble [Burn-My-Windows variant] v7: window morphs into a glossy 2D marble.
745 // Marble [Burn-My-Windows variant] v8: window morphs into a glossy 2D marble (black-glass look).
746 746 // The fall happens in main.js (Translation, constant gravity) after the marble is done.
747 747 uniform float uCrumpleEnd;
748 uniform float uMixOuter; // 0..1 black mix, outer/bottom zone
749 uniform float uMixCenter; // 0..1 black mix, centre/top zone
748 750
749 751 void main() {
750 752 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
@@ -753,7 +755,7 @@ void main() {
753 755
754 756 vec2 hs = 0.5 * uSize;
755 757 vec2 p = iTexCoord * uSize - hs;
756 float R0 = 0.035 * min(uSize.x, uSize.y); // ~7% diameter
758 float R0 = 0.035 * min(uSize.x, uSize.y);
757 759 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
758 760 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
759 761 vec2 dq = max(abs(p) - (b - rad), 0.0);
@@ -776,14 +778,24 @@ void main() {
776 778 // glossy marble shading
777 779 vec3 n = vec3(q * e, z);
778 780 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
781 // "window seen through black glass": centre/top (blue zone) barely mixed with black,
782 // outer/bottom (red zone) strongly; soft elliptic gradient around a point above centre
783 vec2 bz = (q - vec2(0.05, -0.22)) * vec2(1.0, 1.45);
784 float outer = smoothstep(0.2, 0.85, length(bz));
785 col.rgb *= 1.0 - e * mix(uMixCenter, uMixOuter, outer);
786 // bent rounded-square shine top-left (superellipse in a rotated, curved frame), sharp edge
787 vec2 sv = q - vec2(-0.40, -0.47);
788 vec2 sr = vec2(0.766 * sv.x - 0.643 * sv.y, 0.643 * sv.x + 0.766 * sv.y); // rotate -40deg
789 sr.y -= 1.6 * sr.x * sr.x; // bend towards the centre
790 vec2 s4 = sr / vec2(0.19, 0.115); s4 *= s4; s4 *= s4;
791 float spot = 1.0 - smoothstep(0.75, 1.0, s4.x + s4.y);
779 792 vec2 hv = q - vec2(-0.38, -0.42);
780 float hd = dot(hv, hv);
781 float spot = (1.0 - smoothstep(0.004, 0.012, hd)); // small sharp highlight
782 float glow = 0.35 * (1.0 - smoothstep(0.0, 0.25, hd)); // softer glow
793 float glow = 0.1 * (1.0 - smoothstep(0.0, 0.3, dot(hv, hv)));
783 794 float fres = 1.0 - z; fres *= fres; // rim light
784 795 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
785 796 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
786 col.rgb = col.rgb * lit + e * (vec3(spot * 0.9 + glow) + fres * vec3(0.25, 0.28, 0.32));
797 col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
798 col.rgb = mix(col.rgb, vec3(1.0), e * spot); // opaque, strong shine
787 799 col.rgb = min(col.rgb, vec3(1.0));
788 800 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
789 801 setOutputColor(col);
@@ -742,9 +742,11 @@ vec4 remap(vec4 value, vec4 oldMin, vec4 oldMax, vec4 newMin, vec4 newMax) {
742
742
743// The content from common.glsl is automatically prepended to each shader effect.
743// The content from common.glsl is automatically prepended to each shader effect.
744
744
745// Marble [Burn-My-Windows variant] v7: window morphs into a glossy 2D marble.
745// Marble [Burn-My-Windows variant] v8: window morphs into a glossy 2D marble (black-glass look).
746// The fall happens in main.js (Translation, constant gravity) after the marble is done.
746// The fall happens in main.js (Translation, constant gravity) after the marble is done.
747uniform float uCrumpleEnd;
747uniform float uCrumpleEnd;
748uniform float uMixOuter; // 0..1 black mix, outer/bottom zone
749uniform float uMixCenter; // 0..1 black mix, centre/top zone
748
750
749void main() {
751void main() {
750 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
752 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
@@ -753,7 +755,7 @@ void main() {
753
755
754 vec2 hs = 0.5 * uSize;
756 vec2 hs = 0.5 * uSize;
755 vec2 p = iTexCoord * uSize - hs;
757 vec2 p = iTexCoord * uSize - hs;
756 float R0 = 0.035 * min(uSize.x, uSize.y); // ~7% diameter
758 float R0 = 0.035 * min(uSize.x, uSize.y);
757 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
759 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
758 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
760 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
759 vec2 dq = max(abs(p) - (b - rad), 0.0);
761 vec2 dq = max(abs(p) - (b - rad), 0.0);
@@ -776,14 +778,24 @@ void main() {
776 // glossy marble shading
778 // glossy marble shading
777 vec3 n = vec3(q * e, z);
779 vec3 n = vec3(q * e, z);
778 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
780 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
781 // "window seen through black glass": centre/top (blue zone) barely mixed with black,
782 // outer/bottom (red zone) strongly; soft elliptic gradient around a point above centre
783 vec2 bz = (q - vec2(0.05, -0.22)) * vec2(1.0, 1.45);
784 float outer = smoothstep(0.2, 0.85, length(bz));
785 col.rgb *= 1.0 - e * mix(uMixCenter, uMixOuter, outer);
786 // bent rounded-square shine top-left (superellipse in a rotated, curved frame), sharp edge
787 vec2 sv = q - vec2(-0.40, -0.47);
788 vec2 sr = vec2(0.766 * sv.x - 0.643 * sv.y, 0.643 * sv.x + 0.766 * sv.y); // rotate -40deg
789 sr.y -= 1.6 * sr.x * sr.x; // bend towards the centre
790 vec2 s4 = sr / vec2(0.19, 0.115); s4 *= s4; s4 *= s4;
791 float spot = 1.0 - smoothstep(0.75, 1.0, s4.x + s4.y);
779 vec2 hv = q - vec2(-0.38, -0.42);
792 vec2 hv = q - vec2(-0.38, -0.42);
780 float hd = dot(hv, hv);
793 float glow = 0.1 * (1.0 - smoothstep(0.0, 0.3, dot(hv, hv)));
781 float spot = (1.0 - smoothstep(0.004, 0.012, hd)); // small sharp highlight
782 float glow = 0.35 * (1.0 - smoothstep(0.0, 0.25, hd)); // softer glow
783 float fres = 1.0 - z; fres *= fres; // rim light
794 float fres = 1.0 - z; fres *= fres; // rim light
784 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
795 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
785 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
796 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
786 col.rgb = col.rgb * lit + e * (vec3(spot * 0.9 + glow) + fres * vec3(0.25, 0.28, 0.32));
797 col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
798 col.rgb = mix(col.rgb, vec3(1.0), e * spot); // opaque, strong shine
787 col.rgb = min(col.rgb, vec3(1.0));
799 col.rgb = min(col.rgb, vec3(1.0));
788 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
800 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
789 setOutputColor(col);
801 setOutputColor(col);
kwin6_effect_marble_minimize/contents/shaders/marble_core.frag +18 −6
@@ -743,9 +743,11 @@ vec4 remap(vec4 value, vec4 oldMin, vec4 oldMax, vec4 newMin, vec4 newMax) {
743 743
744 744 // The content from common.glsl is automatically prepended to each shader effect.
745 745
746 // Marble [Burn-My-Windows variant] v7: window morphs into a glossy 2D marble.
746 // Marble [Burn-My-Windows variant] v8: window morphs into a glossy 2D marble (black-glass look).
747 747 // The fall happens in main.js (Translation, constant gravity) after the marble is done.
748 748 uniform float uCrumpleEnd;
749 uniform float uMixOuter; // 0..1 black mix, outer/bottom zone
750 uniform float uMixCenter; // 0..1 black mix, centre/top zone
749 751
750 752 void main() {
751 753 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
@@ -754,7 +756,7 @@ void main() {
754 756
755 757 vec2 hs = 0.5 * uSize;
756 758 vec2 p = iTexCoord * uSize - hs;
757 float R0 = 0.035 * min(uSize.x, uSize.y); // ~7% diameter
759 float R0 = 0.035 * min(uSize.x, uSize.y);
758 760 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
759 761 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
760 762 vec2 dq = max(abs(p) - (b - rad), 0.0);
@@ -777,14 +779,24 @@ void main() {
777 779 // glossy marble shading
778 780 vec3 n = vec3(q * e, z);
779 781 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
782 // "window seen through black glass": centre/top (blue zone) barely mixed with black,
783 // outer/bottom (red zone) strongly; soft elliptic gradient around a point above centre
784 vec2 bz = (q - vec2(0.05, -0.22)) * vec2(1.0, 1.45);
785 float outer = smoothstep(0.2, 0.85, length(bz));
786 col.rgb *= 1.0 - e * mix(uMixCenter, uMixOuter, outer);
787 // bent rounded-square shine top-left (superellipse in a rotated, curved frame), sharp edge
788 vec2 sv = q - vec2(-0.40, -0.47);
789 vec2 sr = vec2(0.766 * sv.x - 0.643 * sv.y, 0.643 * sv.x + 0.766 * sv.y); // rotate -40deg
790 sr.y -= 1.6 * sr.x * sr.x; // bend towards the centre
791 vec2 s4 = sr / vec2(0.19, 0.115); s4 *= s4; s4 *= s4;
792 float spot = 1.0 - smoothstep(0.75, 1.0, s4.x + s4.y);
780 793 vec2 hv = q - vec2(-0.38, -0.42);
781 float hd = dot(hv, hv);
782 float spot = (1.0 - smoothstep(0.004, 0.012, hd)); // small sharp highlight
783 float glow = 0.35 * (1.0 - smoothstep(0.0, 0.25, hd)); // softer glow
794 float glow = 0.1 * (1.0 - smoothstep(0.0, 0.3, dot(hv, hv)));
784 795 float fres = 1.0 - z; fres *= fres; // rim light
785 796 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
786 797 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
787 col.rgb = col.rgb * lit + e * (vec3(spot * 0.9 + glow) + fres * vec3(0.25, 0.28, 0.32));
798 col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
799 col.rgb = mix(col.rgb, vec3(1.0), e * spot); // opaque, strong shine
788 800 col.rgb = min(col.rgb, vec3(1.0));
789 801 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
790 802 setOutputColor(col);
@@ -743,9 +743,11 @@ vec4 remap(vec4 value, vec4 oldMin, vec4 oldMax, vec4 newMin, vec4 newMax) {
743
743
744// The content from common.glsl is automatically prepended to each shader effect.
744// The content from common.glsl is automatically prepended to each shader effect.
745
745
746// Marble [Burn-My-Windows variant] v7: window morphs into a glossy 2D marble.
746// Marble [Burn-My-Windows variant] v8: window morphs into a glossy 2D marble (black-glass look).
747// The fall happens in main.js (Translation, constant gravity) after the marble is done.
747// The fall happens in main.js (Translation, constant gravity) after the marble is done.
748uniform float uCrumpleEnd;
748uniform float uCrumpleEnd;
749uniform float uMixOuter; // 0..1 black mix, outer/bottom zone
750uniform float uMixCenter; // 0..1 black mix, centre/top zone
749
751
750void main() {
752void main() {
751 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
753 float c = clamp(uProgress / uCrumpleEnd, 0.0, 1.0);
@@ -754,7 +756,7 @@ void main() {
754
756
755 vec2 hs = 0.5 * uSize;
757 vec2 hs = 0.5 * uSize;
756 vec2 p = iTexCoord * uSize - hs;
758 vec2 p = iTexCoord * uSize - hs;
757 float R0 = 0.035 * min(uSize.x, uSize.y); // ~7% diameter
759 float R0 = 0.035 * min(uSize.x, uSize.y);
758 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
760 vec2 b = mix(hs, vec2(R0), e); // half size of the morphing shape
759 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
761 float rad = mix(0.0, R0, e * e); // corner radius grows to a full circle
760 vec2 dq = max(abs(p) - (b - rad), 0.0);
762 vec2 dq = max(abs(p) - (b - rad), 0.0);
@@ -777,14 +779,24 @@ void main() {
777 // glossy marble shading
779 // glossy marble shading
778 vec3 n = vec3(q * e, z);
780 vec3 n = vec3(q * e, z);
779 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
781 float diff = clamp(dot(n, vec3(-0.45, -0.55, 0.70)), 0.0, 1.0);
782 // "window seen through black glass": centre/top (blue zone) barely mixed with black,
783 // outer/bottom (red zone) strongly; soft elliptic gradient around a point above centre
784 vec2 bz = (q - vec2(0.05, -0.22)) * vec2(1.0, 1.45);
785 float outer = smoothstep(0.2, 0.85, length(bz));
786 col.rgb *= 1.0 - e * mix(uMixCenter, uMixOuter, outer);
787 // bent rounded-square shine top-left (superellipse in a rotated, curved frame), sharp edge
788 vec2 sv = q - vec2(-0.40, -0.47);
789 vec2 sr = vec2(0.766 * sv.x - 0.643 * sv.y, 0.643 * sv.x + 0.766 * sv.y); // rotate -40deg
790 sr.y -= 1.6 * sr.x * sr.x; // bend towards the centre
791 vec2 s4 = sr / vec2(0.19, 0.115); s4 *= s4; s4 *= s4;
792 float spot = 1.0 - smoothstep(0.75, 1.0, s4.x + s4.y);
780 vec2 hv = q - vec2(-0.38, -0.42);
793 vec2 hv = q - vec2(-0.38, -0.42);
781 float hd = dot(hv, hv);
794 float glow = 0.1 * (1.0 - smoothstep(0.0, 0.3, dot(hv, hv)));
782 float spot = (1.0 - smoothstep(0.004, 0.012, hd)); // small sharp highlight
783 float glow = 0.35 * (1.0 - smoothstep(0.0, 0.25, hd)); // softer glow
784 float fres = 1.0 - z; fres *= fres; // rim light
795 float fres = 1.0 - z; fres *= fres; // rim light
785 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
796 float bottom = 1.0 - 0.55 * clamp(q.y * 0.9 + 0.2, 0.0, 1.0) * (1.0 - z * 0.5);
786 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
797 float lit = mix(1.0, (0.45 + 0.65 * diff) * bottom, e);
787 col.rgb = col.rgb * lit + e * (vec3(spot * 0.9 + glow) + fres * vec3(0.25, 0.28, 0.32));
798 col.rgb = col.rgb * lit + e * (vec3(glow) + fres * vec3(0.18, 0.2, 0.24));
799 col.rgb = mix(col.rgb, vec3(1.0), e * spot); // opaque, strong shine
788 col.rgb = min(col.rgb, vec3(1.0));
800 col.rgb = min(col.rgb, vec3(1.0));
789 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
801 col.a *= clamp(-d, 0.0, 1.0); // 1px anti-aliased edge
790 setOutputColor(col);
802 setOutputColor(col);
kwin6_effect_marble_minimize/contents/ui/config.ui +4 −0
@@ -9,6 +9,10 @@
9 9 <item row="2" column="1"><widget class="QSpinBox" name="kcfg_Gravity"><property name="maximum"><number>50000</number></property></widget></item>
10 10 <item row="1" column="0"><widget class="QLabel" name="l3"><property name="text"><string>Pause before fall (ms)</string></property></widget></item>
11 11 <item row="1" column="1"><widget class="QSpinBox" name="kcfg_Pause"><property name="maximum"><number>5000</number></property></widget></item>
12 <item row="3" column="0"><widget class="QLabel" name="l4"><property name="text"><string>Black mix outer (%)</string></property></widget></item>
13 <item row="3" column="1"><widget class="QSpinBox" name="kcfg_BlackMixOuter"><property name="maximum"><number>100</number></property></widget></item>
14 <item row="4" column="0"><widget class="QLabel" name="l5"><property name="text"><string>Black mix center (%)</string></property></widget></item>
15 <item row="4" column="1"><widget class="QSpinBox" name="kcfg_BlackMixCenter"><property name="maximum"><number>100</number></property></widget></item>
12 16 </layout>
13 17 </widget>
14 18 </ui>
@@ -9,6 +9,10 @@
9 <item row="2" column="1"><widget class="QSpinBox" name="kcfg_Gravity"><property name="maximum"><number>50000</number></property></widget></item>
9 <item row="2" column="1"><widget class="QSpinBox" name="kcfg_Gravity"><property name="maximum"><number>50000</number></property></widget></item>
10 <item row="1" column="0"><widget class="QLabel" name="l3"><property name="text"><string>Pause before fall (ms)</string></property></widget></item>
10 <item row="1" column="0"><widget class="QLabel" name="l3"><property name="text"><string>Pause before fall (ms)</string></property></widget></item>
11 <item row="1" column="1"><widget class="QSpinBox" name="kcfg_Pause"><property name="maximum"><number>5000</number></property></widget></item>
11 <item row="1" column="1"><widget class="QSpinBox" name="kcfg_Pause"><property name="maximum"><number>5000</number></property></widget></item>
12 <item row="3" column="0"><widget class="QLabel" name="l4"><property name="text"><string>Black mix outer (%)</string></property></widget></item>
13 <item row="3" column="1"><widget class="QSpinBox" name="kcfg_BlackMixOuter"><property name="maximum"><number>100</number></property></widget></item>
14 <item row="4" column="0"><widget class="QLabel" name="l5"><property name="text"><string>Black mix center (%)</string></property></widget></item>
15 <item row="4" column="1"><widget class="QSpinBox" name="kcfg_BlackMixCenter"><property name="maximum"><number>100</number></property></widget></item>
12 </layout>
16 </layout>
13 </widget>
17 </widget>
14</ui>
18</ui>