🔧 Use consistent class names
This commit is contained in:
@@ -1,15 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
|
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
|
||||||
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
|
<kcfgfile name="" />
|
||||||
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
|
<group name="">
|
||||||
<kcfgfile name=""/>
|
<entry name="Duration" type="UInt">
|
||||||
<group name="">
|
<default>0</default>
|
||||||
<entry name="Duration" type="UInt">
|
</entry>
|
||||||
<default>0</default>
|
<entry name="Color" type="Color">
|
||||||
</entry>
|
<default>128,128,128</default>
|
||||||
<entry name="Color" type="Color">
|
</entry>
|
||||||
<default>128,128,128</default>
|
</group>
|
||||||
</entry>
|
|
||||||
</group>
|
|
||||||
</kcfg>
|
</kcfg>
|
||||||
@@ -1,80 +1,80 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>TvEffectConfigForm</class>
|
<class>BMWtvEffectConfigForm</class>
|
||||||
<widget class="QWidget" name="TvEffectConfigForm">
|
<widget class="QWidget" name="BMWtvEffectConfigForm">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>498</width>
|
<width>498</width>
|
||||||
<height>451</height>
|
<height>451</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QFormLayout" name="formLayout">
|
<layout class="QFormLayout" name="formLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Duration:</string>
|
<string>Duration:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Color:</string>
|
<string>&Color:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>kcfg_Color</cstring>
|
<cstring>kcfg_Color</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="KColorCombo" name="kcfg_Color">
|
<widget class="KColorCombo" name="kcfg_Color">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QSpinBox" name="kcfg_Duration">
|
<widget class="QSpinBox" name="kcfg_Duration">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="specialValueText">
|
<property name="specialValueText">
|
||||||
<string>Default</string>
|
<string>Default</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> milliseconds</string>
|
<string> milliseconds</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>9999</number>
|
<number>9999</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="singleStep">
|
<property name="singleStep">
|
||||||
<number>5</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KColorCombo</class>
|
<class>KColorCombo</class>
|
||||||
<extends>QComboBox</extends>
|
<extends>QComboBox</extends>
|
||||||
<header>kcolorcombo.h</header>
|
<header>kcolorcombo.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources/>
|
<resources />
|
||||||
<connections/>
|
<connections />
|
||||||
</ui>
|
</ui>
|
||||||
+4
-4
@@ -17,7 +17,7 @@ const blacklist = [
|
|||||||
"ksplashqml ksplashqml"
|
"ksplashqml ksplashqml"
|
||||||
];
|
];
|
||||||
|
|
||||||
class %NICK%Effect {
|
class BMW%NICK%Effect {
|
||||||
constructor() {
|
constructor() {
|
||||||
effect.configChanged.connect(this.loadConfig.bind(this));
|
effect.configChanged.connect(this.loadConfig.bind(this));
|
||||||
effect.animationEnded.connect(this.cleanupForcedRoles.bind(this));
|
effect.animationEnded.connect(this.cleanupForcedRoles.bind(this));
|
||||||
@@ -35,7 +35,7 @@ class %NICK%Effect {
|
|||||||
const duration = effect.readConfig("Duration", defaultDuration) || defaultDuration;
|
const duration = effect.readConfig("Duration", defaultDuration) || defaultDuration;
|
||||||
this.duration = animationTime(duration);
|
this.duration = animationTime(duration);
|
||||||
|
|
||||||
effect.setUniform(this.shader, "uEffectColor", effect.readConfig("Color", "white"));
|
effect.setUniform(this.shader, "uColor", effect.readConfig("Color", "white"));
|
||||||
}
|
}
|
||||||
|
|
||||||
static isScaleWindow(window) {
|
static isScaleWindow(window) {
|
||||||
@@ -121,7 +121,7 @@ class %NICK%Effect {
|
|||||||
if (effects.hasActiveFullScreenEffect) {
|
if (effects.hasActiveFullScreenEffect) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!%NICK%Effect.isScaleWindow(window)) {
|
if (!BMW%NICK%Effect.isScaleWindow(window)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!window.visible || window.skipsCloseAnimation) {
|
if (!window.visible || window.skipsCloseAnimation) {
|
||||||
@@ -168,4 +168,4 @@ class %NICK%Effect {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
new %NICK%Effect();
|
new BMW%NICK%Effect();
|
||||||
|
|||||||
Reference in New Issue
Block a user