Closed bouteillerAlan closed 1 year ago
Hey @luisbocanegra many thanks for this update, seem amazing :)
Do you think is possible to add an option for the systray ?
I don't know if it's a good idea to activate it by default, for example I like to position it where I want in my taskbar. Is it possible to add an "enable in systray" option or not at all? What do you think?
Do you think is possible to add an option for the systray ?
I don't know if it's a good idea to activate it by default, for example I like to position it where I want in my taskbar.
Thinking more about it I agree with you, better allow system tray but not enabled by default out and let the user to decide where to place the applet
Is it possible to add an "enable in systray" option or not at all? What do you think?
I don't think so, the only way would be with dbus activation.
Closest thing is Plasmoid.status
to control whether it shows or not but only if is enabled by default (to e.g. make the widget appear only if there are updates and hide in the expanded area or even disappear from the tray otherwise).
Need to test something for the height of the icon, add an option for the size maybe
@luisbocanegra for the systray I can add a hint in the readme for the users that want to activate it ? Because it's available and activatable very easily
Bug when I add the applet to a vertical taskbar
file:///home/a2n/.local/share/plasma/plasmoids/a2n.archupdate.plasmoid/contents/ui/archupdate.qml:14:37: QML Compact: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row. Row will not function.
Seem to be that line (the commented one) in Compact.qml :
Item {
id: container
height: row.itemSize
width: row.width
//anchors.centerIn: parent
Components.PlasmoidIcon {
For some reason when I added the applet to the vertical taskbar the count is not update
But the cmd is launch normally (the log is only for the applet in the vertical bar), no problems with the horizontal bar :thinking:
Need to test something for the height of the icon, add an option for the size maybe
Maybe limit the badge width too
Bug when I add the applet to a vertical taskbar
file:///home/a2n/.local/share/plasma/plasmoids/a2n.archupdate.plasmoid/contents/ui/archupdate.qml:14:37: QML Compact: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row. Row will not function.
Seem to be that line (the commented one) in Compact.qml :
Item { id: container height: row.itemSize width: row.width //anchors.centerIn: parent Components.PlasmoidIcon {
Yeah, to be honest I tend to use anchors when they are probably not required. Is Row needed for something you have planned? Item
seems to work fine as the Compact.qml root element
For some reason when I added the applet to the vertical taskbar the count is not update The screenshot
But the cmd is launch normally (the log is only for the applet in the vertical bar), no problems with the horizontal bar π€
Here it is
Vertical badge text
needs to take generateResult()
or make generateResult()
change totalText
so it only called once
WorkspaceComponents.BadgeOverlay { // for the horizontal bar
anchors {
bottom: container.bottom
right: container.right
}
text: generateResult()
visible: !isPanelVertical
icon: updateIcon
}
WorkspaceComponents.BadgeOverlay { // for the vertical bar
anchors {
verticalCenter: container.bottom
right: container.right
}
text: totalText
visible: isPanelVertical
icon: updateIcon
}
Bug when I add the applet to a vertical taskbar
file:///home/a2n/.local/share/plasma/plasmoids/a2n.archupdate.plasmoid/contents/ui/archupdate.qml:14:37: QML Compact: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row. Row will not function.
Seem to be that line (the commented one) in Compact.qml :
Item { id: container height: row.itemSize width: row.width //anchors.centerIn: parent Components.PlasmoidIcon {
Yeah, to be honest I tend to use anchors when they are probably not required. Is Row needed for something you have planned?
Item
seems to work fine as the Compact.qml root element
Yeah, that the tutorial code haha :laughing: I'm going to replace it with Item :)
Bug when I add the applet to a vertical taskbar
file:///home/a2n/.local/share/plasma/plasmoids/a2n.archupdate.plasmoid/contents/ui/archupdate.qml:14:37: QML Compact: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row. Row will not function.
Seem to be that line (the commented one) in Compact.qml :
Item { id: container height: row.itemSize width: row.width //anchors.centerIn: parent Components.PlasmoidIcon {
Yeah, to be honest I tend to use anchors when they are probably not required. Is Row needed for something you have planned?
Item
seems to work fine as the Compact.qml root element
Who okai my code is not good at all haha (I have made only half of the thing I wanted to do with the function) I have made a refacto.
Need to test something for the height of the icon, add an option for the size maybe
Maybe limit the badge width too
A bunch of ideas
Here a screenshot of badge scaled up/down manually and some padding on top, unfortunately breaks consistency and also is less readable.
I have made some edit, I think like that the height and the width is more consistent, for the moment I have done nothing for the label ^^
widget in taskbar :
in the systray :
Ok I have added the possibility to use a dot in place of the label. Because in any case if the text is too long in the label it will be unmanageable.
The color is editable via the setting, but I need your help for matching the theme color if the setting is set to a empty string :
Rectangle {
visible: dot
height: container.height / 2.5
width: height
radius: height / 2
color: dotColor === '' ? dotColor : dotColor // todo - add theme color if dotColor === ''
anchors {
right: container.right
bottom: container.bottom
}
}
Any idea ? I'm testing with kirigami.theme
(https://pointieststick.com/2023/06/14/call-to-action-easy-porting-opportunity-in-plasma/).
Ok I have added the possibility to use a dot in place of the label. Because in any case if the text is too long in the label it will be unmanageable.
The color is editable via the setting, but I need your help for matching the theme color if the setting is set to a empty string :
Rectangle { visible: dot height: container.height / 2.5 width: height radius: height / 2 color: dotColor === '' ? dotColor : dotColor // todo - add theme color if dotColor === '' anchors { right: container.right bottom: container.bottom } }
Any idea ? I'm testing with
kirigami.theme
(pointieststick.com/2023/06/14/call-to-action-easy-porting-opportunity-in-plasma).
While Kirigami.Theme.textColor
works (the ~svs~ svgs use textColor
too).
For plasma 5 is better to use PlasmaCore.Theme.textColor
so it correctly follows either the plasma theme colors or current color scheme, and then switch to Krigami.Theme for plasma 6.
import org.kde.kirigami 2.20 as Kirigami
...
Rectangle {
visible: dot && isUpdateNeeded()
height: container.height / 2.5
width: height
radius: height / 2
color: dotColor === '' ? PlasmaCore.Theme.textColor : dotColor
anchors {
right: container.right
bottom: container.bottom
}
}
Also changed the color text field to a color picker
Which one looks better? I like 3 for how compact it is.
- [ ] add the value in the tooltips
Which one looks better? I like 3 for how compact it is.
- Other
Yes the 3 is very cool :) Thanks a lot for all the help !
- [ ] add the value in the tooltips
Which one looks better? I like 3 for how compact it is.
- Other
Yes the 3 is very cool :) Thanks a lot for all the help !
No problem!
There is a small issue with the tooltip, when the mouse enters the widget it displays the default one, and then moving more into the widget displays the custom one π.
Will push in a moment, maybe you can figure out why
- [ ] add the value in the tooltips
Which one looks better? I like 3 for how compact it is.
- Other
Yes the 3 is very cool :) Thanks a lot for all the help !
No problem!
There is a small issue with the tooltip, when the mouse enters the widget it displays the default one, and then moving more into the widget displays the custom one π.
Will push in a moment, maybe you can figure out why
FYI the issue is only present in systray (horizontal or vertical). I'm looking into the clipboard code for any hints on how kde dev do that :) https://invent.kde.org/plasma/plasma-workspace/-/tree/Plasma/5.27/applets/clipboard?ref_type=heads
There is a small issue with the tooltip, when the mouse enters the widget it displays the default one, and then moving more into the widget displays the custom one π. Will push in a moment, maybe you can figure out why
FYI the issue is only present in systray (horizontal or vertical). I'm looking into the clipboard code for any hints on how kde dev do that :)
https://invent.kde.org/plasma/plasma-workspace/-/tree/Plasma/5.27/applets/clipboard?ref_type=heads
I think that one is more limited, I used Tooltip.qml here https://github.com/luisbocanegra/plasma-intel-gpu-monitor can you check if it has the same issue?
Could do myself but I'm currently on Plasma master (trying to port https://github.com/psifidotos/applet-window-title lol) and this thing breaks if I switch to Plasma 5 until next reboot
There is a small issue with the tooltip, when the mouse enters the widget it displays the default one, and then moving more into the widget displays the custom one π. Will push in a moment, maybe you can figure out why
FYI the issue is only present in systray (horizontal or vertical). I'm looking into the clipboard code for any hints on how kde dev do that :)
https://invent.kde.org/plasma/plasma-workspace/-/tree/Plasma/5.27/applets/clipboard?ref_type=heads
I think that one is more limited, I used Tooltip.qml here https://github.com/luisbocanegra/plasma-intel-gpu-monitor can you check if it has the same issue?
Could do myself but I'm currently on Plasma master (trying to port https://github.com/psifidotos/applet-window-title lol) and this thing breaks if I switch to Plasma 5 until next reboot
The problem seem resolve with that, but the width is messed up : https://invent.kde.org/plasma/plasma-workspace/-/blob/Plasma/5.27/applets/digital-clock/package/contents/ui/main.qml?ref_type=heads#L82
Yes same with the v0.1.1, I think we have to use Plasmoid.toolTipItem
@luisbocanegra I have updated the code in 94e5103 for test if you want, ~rest to pass the total value to the tooltips if everything is ok for you :)~ (done in e73e136)
Just tested all the options and panel locations, everything seems to be working correctly.
Just tested all the options and panel locations, everything seems to be working correctly.
Ok ! Me too, so let's go for a release I think :)
Release done @luisbocanegra, again thanks you so much for the help π»
You're welcome!
Features :
Todo :
x update form core and extra \n y update form aur & other
orarch: x \n other: y
)