This commit is contained in:
Valeria Fadeeva 2023-05-24 11:19:31 +05:00
parent b423a3f4c5
commit 284748ebf0
3 changed files with 11 additions and 17 deletions

8
.gitignore vendored
View File

@ -1,8 +0,0 @@
*.pkg.tar
*.pkg.tar.*
*.zst
*.zst.*
pkg/
src/
.idea/
plasma-plasmoid-archupdate

View File

@ -30,7 +30,7 @@ Item {
radius: Math.round(width / 2)
color: "Black"
opacity: 0.7
visible: false
visible: root.badgeVisible
anchors {
right: parent.right
top: parent.top
@ -42,7 +42,7 @@ Item {
font.pointSize: 6
color: "White"
anchors.centerIn: circle
visible: circle.visible
visible: root.badgeVisible
}
MouseArea {

View File

@ -24,6 +24,8 @@ Item {
property string total: "0"
property bool badgeVisible: false
property bool showNotification: Plasmoid.configuration.showNotification
property string notifyText: ""
@ -78,31 +80,31 @@ Item {
switch (upgradeStatus) {
case normalStatus:
mainIcon = iconDefault
compactRep.circle.visible = false
badgeVisible = false
break
case checkingUpdatesStatus:
mainIcon = iconRefresh
//total = 0
compactRep.circle.visible = true
total = "↻"
badgeVisible = false
//total = ""
break
case readyStatus:
mainIcon = iconReadyToUpgrade
compactRep.circle.visible = true
badgeVisible = true
break
case installingStatus:
mainIcon = iconInstalling
compactRep.circle.visible = true
badgeVisible = true
break
case errorStatus:
mainIcon = iconError
total = 0
compactRep.circle.visible = false
badgeVisible = false
break
default:
mainIcon = iconDefault
total = 0
compactRep.circle.visible = false
badgeVisible = false
}
}