Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plasmoid/package/contents/config/config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.kde.plasma.configuration
ConfigModel {
ConfigCategory {
name: "General"
icon: "input-gaming-symbolic"
icon: "input-gamepad-symbolic"
source: "ConfigGeneral.qml"
}
ConfigCategory {
Expand Down
7 changes: 6 additions & 1 deletion plasmoid/package/contents/ui/CompactRepresentation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ MouseArea {

Kirigami.Icon {
id: icon
source: "input-gaming-symbolic"
// Breeze has no input-gaming-symbolic (that's the GNOME name) and
// silently falls back to the full-color input-gaming, which cannot
// be tinted. isMask forces the tint regardless of icon theme.
source: "input-gamepad-symbolic"
fallback: "input-gaming-symbolic"
isMask: true
color: compact.tintColor
width: Kirigami.Units.iconSizes.smallMedium
height: width
Expand Down
9 changes: 9 additions & 0 deletions plasmoid/package/contents/ui/ConfigGeneral.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ KCM.SimpleKCM {
property int cfg_levelLowThreshold
property int cfg_levelLowThresholdDefault: 25

// Owned by ConfigLighting; declared here because Plasma pushes every config
// key as an initial property to every page and warns about missing ones.
property bool cfg_rgbEnabled
property bool cfg_rgbEnabledDefault
property int cfg_rgbBrightness
property int cfg_rgbBrightnessDefault
property var cfg_rgbZones
property var cfg_rgbZonesDefault

Kirigami.FormLayout {

QQC2.ComboBox {
Expand Down
16 changes: 15 additions & 1 deletion plasmoid/package/contents/ui/ConfigLighting.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ KCM.SimpleKCM {
property var cfg_rgbZones
property var cfg_rgbZonesDefault: ["ffffff", "ffffff", "ffffff", "ffffff"]

// Owned by ConfigGeneral; declared here because Plasma pushes every config
// key as an initial property to every page and warns about missing ones.
property string cfg_displayMode
property string cfg_displayModeDefault
property int cfg_pollInterval
property int cfg_pollIntervalDefault
property int cfg_lowBatteryThreshold
property int cfg_lowBatteryThresholdDefault
property int cfg_levelHighThreshold
property int cfg_levelHighThresholdDefault
property int cfg_levelLowThreshold
property int cfg_levelLowThresholdDefault

readonly property var zoneNames: ["Left", "Right", "Logo", "Center"]

property string controllerMode: ""
Expand Down Expand Up @@ -125,9 +138,10 @@ KCM.SimpleKCM {
}
}

// Qt 6 ColorDialog is not an Item (no `parent` property); it picks up the
// window from its QML parent object automatically.
ColorDialog {
id: colorDialog
parent: page
property int zoneIndex: 0
onAccepted: page.setZone(zoneIndex, page.colorToHex(selectedColor))
}
Expand Down
2 changes: 1 addition & 1 deletion plasmoid/package/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Id": "io.github.vdemonchy.cyclone2",
"Name": "Cyclone 2",
"Description": "GameSir Cyclone 2 controller battery, mode, and RGB indicator",
"Icon": "input-gaming-symbolic",
"Icon": "input-gamepad",
"Authors": [
{ "Name": "Victor Demonchy" }
],
Expand Down
Loading