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) 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 {

View File

@ -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
} }
} }