Skip to content

applets/notes: Improvements to color selection and panel use case

applets/notes: Indicate checked color on the menu

Using an ActionGroup since only one color can be checked. Also use an Instantiator for the action to avoid boilerplate.

Drop the separator at the end since with the indicator it's now a bit clearer where the end of colors is.

applets/notes: Show note color on the context menu

Allows to see the colors at a glance without having to read the colors.

This adds a NoteIconEngine which uses KSvg to paint the actual note SVG in the respective color. Using an icon engine has the advantage that it can properly do high dpi and what not.

applets/notes: Fix transparent color in panel and don't offer choice of light/dark

When in a panel, the popup background is always shown, so it doesn't make sense to offer translucent dark vs. light. Instead, hide the explicit "light" option and use regular text color.

When in a panel, both "translucent" and "translucent-light" behave as though "translucent" were selected. This allows roaming the applet between desktop and panel, i.e. selecting "translucent-light" and then moving it to a panel where that option wasn't there.

applets/notes: Make popup resizable


Screenshot_20250517_100838

Screenshot_20250517_101303

I figured since we now have a “pin” option I should spend a bit of time to improve the UX when actually using sticky note in a panel 😄

By selecting “Translucent” I can now have a sticky note in the panel with no sticky note background image but still readable in both light and dark modes.

It seems moving the applet from desktop to panel actually resets the color to yellow, dunno why that is.

Merge request reports

Loading