Commit 4523b3d
authored
Fix icon alignments, clipping in sidebar (#53)
On macOS Tahoe, room icons don't quite behave as expected compared
to older macOS releases. When no room icon can be loaded, the
system icon is terribly misaligned as it is too small to fit the
space it's given. When a room icon is found, it takes the full
space, getting clipped in the process. I'm not entirely sure what
the cause of the issue is, given that I haven't seen this behavior
in other apps, but I suspect there's an issue with image sizing
parameters internally.
To work around this, I've made some minor modifications to the
sidebar entry. First, system icons are now centered inside an
invisible rounded rectangle to make sure it lines up correctly in
the space given. Likewise, the image inside the label is given a
frame, constraining its size to 22 points. To allow this to respect
Dynamic Type features, this value is recorded as a ScaledMetric
value, meaning it should adjust when the Dynamic Type rules are
adjusted.
Signed-off-by: Marquis Kurt <software@marquiskurt.net>1 parent a79af5e commit 4523b3d
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
0 commit comments