[FEATURE] Align lock keys widget with style of other widgets
Submission checklist
- [x] I have searched existing issues and confirmed this has not been requested before.
- [x] I have checked existing pull requests for similar changes.
Feature type
UI / visual improvement
Feature summary
Simplify and improve the lock keys widget by dropping the lock icon, and using icons instead of text to represent the state of the lock keys, similar to the privacy widget.
Motivation / use case
The lock keys widget displays the status of the three lock keys. Either on or off. But it does not follow the design pattern used by widgets with a similar function, like the privacy widget or the caffeine widget.
Unlike the privacy or caffeine widget, the lock keys widget shows its state with colored text characters. The privacy widget and caffeine widget use icons. I think the lock keys widget would look a lot better, and more integrated, if it used icons as well.
Besides looking better and more consistent, it would also simplify color configuration for this widget, which is currently a bit clunky. Currently it covers both the color of the lock icon and the color of the inactive keys, but does not allow coloring the active key. Color config could then be simplified to active / inactive color for the status icon, just like the caffeine and privacy widget. Would also resolve part of this issue: https://github.com/noctalia-dev/noctalia/issues/4287
Proposed solution
Use status icons for caps lock, scroll lock, and num lock, instead of text. And drop the lock icon. This is also how kde does it, and how waybar does it. So basically, similar to the privacy widget: three icons, that in this case represent the lock keys. Simpler, looks better, and more consistent.
In terms of the icons themselves, see what I proposed here: https://github.com/noctalia-dev/community-plugins/pull/946
Alternatives considered
Not using the widget, because it's not as configurable and doesn't look that good.
Additional context
See for example how the privacy icon here fits a lot better with the visual style than the lock keys widget:
And see here how the lock icon color can be changed, and the inactive lock key color, but not the color for an active lock key (the green in this screenshot):
So for reference, the linked plugin demonstrates how I'd expect the noctalia plugin to function. Some images to show what it looks like:
- Similar spacing as the icon widget
- The spacing can be adjusted
- Inactive keys hidden
- Colors changed
That aligns with how the privacy widget does things, and in my opinion fits better. Now, I made this available as a plugin, but noctalia's tracking of lock keys is more efficient than how I do it. Personally I'd prefer integrating the way the plugin displays lock keys into the noctalia widget.