[applets/batterymonitor] Fit it, pt.12: Respect personal space
Apart from a bunch of minor refactoring this patch set fixes two layout bugs:
- Overflow of inhibition hints
- Collision of slider's labels
Language: | EN |
---|---|
Before: | |
After: |
Language: | RU |
---|---|
Before: | |
After: |
One thing that concerns me is that narrow applet with this collision fix looks like it uses available horizontal space inefficiently. Unfortunately, this is a fundamentally hard problem, no easy fix is available in modern Qt. Based on a discussion in VDG room, we'd rather drop the middle label, thus making more room for the other two.
After, EN (narrow) |
---|
Next up:
- Fix the slider:
- Drop middle tick's label, rework other two
- Factor out the slider into a component of its own (with grayed out inhibited values support);
- Flatten double column and revisit spacing in PowerManagementItem (especially after recent changes);
- Factor out tons of syntax garbage because of (nullable ? nullable.properties || [access]) : [access]