Opened 3 days ago
Last modified 2 hours ago
#24808 new enhancement
[patch] Get ToggleDialog Headers height to respect gui.scale
| Reported by: | Owned by: | team | |
|---|---|---|---|
| Priority: | normal | Milestone: | 26.07 |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
When use increased gui.scale for high dpi monitors toggle dialogs headers appears to be to small. Right now it's height is hard-coded to 20px.
Reading gui.scale and applying it to header height improves UX.
I have preliminary version of patch attached.
Attachments (3)
Change History (8)
by , 3 days ago
| Attachment: | JosmToggleDialog.patch added |
|---|
comment:1 by , 3 days ago
| Milestone: | → 26.07 |
|---|
First: Do not make this a static variable. This prevents changing it on runtime.
Second: Make it configurable, I.e. make the value you calculate a default value to a hidden setting (find a nice name :-).
comment:2 by , 2 days ago
Is that a step in the right direction?
Not sure if gui.scale as a fallback is ok or you want it gone completely
this.titleHeight = Config.getPref().getInt("toggledialog.titlebar.height",
(int)(20 * Config.getPref().getDouble("gui.scale", 1.0)));
comment:3 by , 2 days ago
Yes. But make it a local variable (or a function or copy the single assignment line) which gets reevaluated each time. Prefs lookup is not a costly operation.
by , 2 days ago
| Attachment: | JosmToggleDialog.3.patch added |
|---|
v3: Evaluate titlebar each time it's used
comment:5 by , 2 hours ago
| Summary: | Enhancement: Get ToggleDialog Headers height to respect gui.scale → [patch] Get ToggleDialog Headers height to respect gui.scale |
|---|



src path