🔧 Generate JS code for kwin

This commit is contained in:
Simon Schneegans
2022-06-09 14:03:00 +02:00
parent bf3aa0af93
commit ba9f1c91f5
5 changed files with 22 additions and 14 deletions
+7
View File
@@ -0,0 +1,7 @@
loadConfig() {
const defaultDuration = 400;
const duration = effect.readConfig('Duration', defaultDuration) || defaultDuration;
this.duration = animationTime(duration);
effect.setUniform(this.shader, 'uColor', effect.readConfig('Color', 'white'));
}
@@ -7,7 +7,7 @@
<default>0</default>
</entry>
<entry name="Color" type="Color">
<default>128,128,128</default>
<default>255,255,255</default>
</entry>
</group>
</kcfg>