Commit a50b3d3
layout(win): trim the IDE bar ~70px, generically (DPI + width scale)
Replaces nBarH = Max(200, Int(200*nUIScale)) with a two-part model:
nBarH = Max(120, Int(64 * nDPI/96) + Int(66 * nUIScale))
- 64 * nDPI/96 — Windows chrome (caption + menu + palette tab strip);
this part does grow with DPI.
- 66 * nUIScale — content rows (2 toolbars of 28x28 icons + the 48x48
palette button row); fixed-size bitmaps, so they track the
width-based UI scale, not DPI. Was ~136 in the old 200 reference;
the ~70px the owner wants off the bar comes off here, kept
proportional — no flat "-70", no per-resolution branch.
Examples: 1920@96 -> 130, 2048@96 -> 134, 1366@96 -> 120 (floor),
1920@144 -> 162. bin/hbbuilder_win.exe rebuilt (MSVC x64).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5cc605b commit a50b3d3
2 files changed
Lines changed: 12 additions & 13 deletions
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
| |||
0 commit comments