🔧 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
+1 -7
View File
@@ -30,13 +30,7 @@ class BMW%NICK%Effect {
this.loadConfig();
}
loadConfig() {
const defaultDuration = 1000;
const duration = effect.readConfig("Duration", defaultDuration) || defaultDuration;
this.duration = animationTime(duration);
effect.setUniform(this.shader, "uColor", effect.readConfig("Color", "white"));
}
%LOAD_CONFIG%
static isScaleWindow(window) {
// We don't want to animate most of plasmashell's windows, yet, some