Update
This commit is contained in:
parent
b423a3f4c5
commit
284748ebf0
|
@ -1,8 +0,0 @@
|
||||||
*.pkg.tar
|
|
||||||
*.pkg.tar.*
|
|
||||||
*.zst
|
|
||||||
*.zst.*
|
|
||||||
pkg/
|
|
||||||
src/
|
|
||||||
.idea/
|
|
||||||
plasma-plasmoid-archupdate
|
|
|
@ -30,7 +30,7 @@ Item {
|
||||||
radius: Math.round(width / 2)
|
radius: Math.round(width / 2)
|
||||||
color: "Black"
|
color: "Black"
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
visible: false
|
visible: root.badgeVisible
|
||||||
anchors {
|
anchors {
|
||||||
right: parent.right
|
right: parent.right
|
||||||
top: parent.top
|
top: parent.top
|
||||||
|
@ -42,7 +42,7 @@ Item {
|
||||||
font.pointSize: 6
|
font.pointSize: 6
|
||||||
color: "White"
|
color: "White"
|
||||||
anchors.centerIn: circle
|
anchors.centerIn: circle
|
||||||
visible: circle.visible
|
visible: root.badgeVisible
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
@ -24,6 +24,8 @@ Item {
|
||||||
|
|
||||||
property string total: "0"
|
property string total: "0"
|
||||||
|
|
||||||
|
property bool badgeVisible: false
|
||||||
|
|
||||||
property bool showNotification: Plasmoid.configuration.showNotification
|
property bool showNotification: Plasmoid.configuration.showNotification
|
||||||
|
|
||||||
property string notifyText: ""
|
property string notifyText: ""
|
||||||
|
@ -78,31 +80,31 @@ Item {
|
||||||
switch (upgradeStatus) {
|
switch (upgradeStatus) {
|
||||||
case normalStatus:
|
case normalStatus:
|
||||||
mainIcon = iconDefault
|
mainIcon = iconDefault
|
||||||
compactRep.circle.visible = false
|
badgeVisible = false
|
||||||
break
|
break
|
||||||
case checkingUpdatesStatus:
|
case checkingUpdatesStatus:
|
||||||
mainIcon = iconRefresh
|
mainIcon = iconRefresh
|
||||||
//total = 0
|
//total = 0
|
||||||
compactRep.circle.visible = true
|
badgeVisible = false
|
||||||
total = "↻"
|
//total = "↻"
|
||||||
break
|
break
|
||||||
case readyStatus:
|
case readyStatus:
|
||||||
mainIcon = iconReadyToUpgrade
|
mainIcon = iconReadyToUpgrade
|
||||||
compactRep.circle.visible = true
|
badgeVisible = true
|
||||||
break
|
break
|
||||||
case installingStatus:
|
case installingStatus:
|
||||||
mainIcon = iconInstalling
|
mainIcon = iconInstalling
|
||||||
compactRep.circle.visible = true
|
badgeVisible = true
|
||||||
break
|
break
|
||||||
case errorStatus:
|
case errorStatus:
|
||||||
mainIcon = iconError
|
mainIcon = iconError
|
||||||
total = 0
|
total = 0
|
||||||
compactRep.circle.visible = false
|
badgeVisible = false
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
mainIcon = iconDefault
|
mainIcon = iconDefault
|
||||||
total = 0
|
total = 0
|
||||||
compactRep.circle.visible = false
|
badgeVisible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue