mirror of
https://github.com/folfcoder/plasma-sharkle.git
synced 2025-04-04 21:21:38 +00:00
fix: use the writable currentIndex property to store color
This commit is contained in:
parent
60927a6a8a
commit
e08759752d
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ import org.kde.kirigami 2.5 as Kirigami
|
|||
|
||||
Item {
|
||||
id: page
|
||||
property alias cfg_sharkleColor: sharkleColor.currentText
|
||||
property alias cfg_sharkleColor: sharkleColor.currentIndex
|
||||
|
||||
|
||||
Kirigami.FormLayout {
|
||||
|
|
|
@ -18,7 +18,7 @@ PlasmoidItem {
|
|||
property int talkIndex: 0
|
||||
property int soundIndex: 0
|
||||
property bool isIdle: true
|
||||
property string sharkleColor: Plasmoid.configuration.sharkleColor.toLowerCase()
|
||||
property string sharkleColor: Plasmoid.configuration.sharkleColor == 1 ? "white" : "black"
|
||||
|
||||
Timer {
|
||||
id: animationTimer
|
||||
|
|
Loading…
Add table
Reference in a new issue