When resizing the applet smaller it can be unexpected that it suddenly switches to compact representation, especially when formatting controls (Bold, etc) aren't shown.
Reduce the switch size to be quite small and just hide the formatting controls if the applet becomes too small. Nowadays you can toggle formatting with Ctrl keys (Ctrl+B for Bold, etc) anyway.
Also, move the formatting controls into their own Row so we can hide them as a single unit.
Details
Details
- Reviewers
mart - Group Reviewers
Plasma - Commits
- R114:25159c09e2bd: [Notes Applet] Reduce switch size and hide controls if too small
I can now resize the applet pretty small and still see its contents without the controls leaking outside.
In panel default size for popup is still ok and the applet icon shows fine.
Diff Detail
Diff Detail
- Repository
- R114 Plasma Addons
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
ok for me, tough i think it can still be reworked a bit to clean it up generally
applets/notes/package/contents/ui/main.qml | ||
---|---|---|
235 | could instead those buttons be in a Row, and control the visibility of the whole row by its width rather than computing by hand the width of all buttons? |
Comment Actions
- Move format controls (Bold, Italic, Underline, Strikethrough) into their own Row so we can hide them as a single unit