noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

[FEATURE] Align lock keys widget with style of other widgets

Open ismay-tue opened this issue 2 months ago • 1 comments

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:

Image

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

Image

ismay-tue avatar Sep 24 '26 17:09 ismay-tue

So for reference, the linked plugin demonstrates how I'd expect the noctalia plugin to function. Some images to show what it looks like:

  1. Similar spacing as the icon widget
Image
  1. The spacing can be adjusted
Image
  1. Inactive keys hidden
Image
  1. Colors changed
Image

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.

ismay-tue avatar Oct 17 '26 07:10 ismay-tue