config: add presetWidths

This commit is contained in:
Peter Fajdiga
2024-10-02 21:44:07 +02:00
parent 3f222f0ef8
commit f5ca5e71c0
2 changed files with 24 additions and 1 deletions

View File

@@ -322,13 +322,31 @@
</item>
<item row="8" column="0">
<widget class="QLabel" name="label_presetWidths">
<property name="text">
<string>Preset widths:</string>
</property>
<property name="toolTip">
<string>Widths used for cycling through widths</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QLineEdit" name="kcfg_presetWidths">
<property name="toolTip">
<string>Comma-separated list of widths. Supported units: "px" and "%".</string>
</property>
</widget>
</item>
<item row="9" column="0">
<widget class="QLabel" name="label_offScreenOpacity">
<property name="text">
<string>Obscured window opacity:</string>
</property>
</widget>
</item>
<item row="8" column="1">
<item row="9" column="1">
<widget class="QSpinBox" name="kcfg_offScreenOpacity">
<property name="suffix">
<string> %</string>

View File

@@ -85,6 +85,11 @@ const configDef = [
type: "UInt",
default: 600,
},
{
name: "presetWidths",
type: "String",
default: "100%, 50%",
},
{
name: "offScreenOpacity",
type: "UInt",