quickshell: pixel-align dropdowns to fix fuzzy bar joins
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
bb25df0b03
commit
116ccbc3eb
1 changed files with 8 additions and 4 deletions
|
|
@ -993,10 +993,12 @@ in
|
|||
if (visible && !closing) _autoClose.restart();
|
||||
}
|
||||
|
||||
x: alignRight ? bar.width - width : Math.min(
|
||||
// Whole-pixel x — fractional positions (odd widths centered
|
||||
// on the bar) antialias the ears/borders into fuzzy seams.
|
||||
x: Math.round(alignRight ? bar.width - width : Math.min(
|
||||
bar.width - width,
|
||||
Math.max(0, dropdownX - (fullWidth + 16) / 2)
|
||||
)
|
||||
))
|
||||
y: 30
|
||||
visible: false
|
||||
width: fullWidth + (alignRight ? 8 : 16)
|
||||
|
|
@ -1714,8 +1716,10 @@ in
|
|||
BarDropdown {
|
||||
id: calPopup
|
||||
dropdownX: bar.width / 2
|
||||
fullWidth: calRow.width + 24
|
||||
fullHeight: calRow.height + 24
|
||||
// ceil: Text metrics give fractional sizes; fractional rect
|
||||
// edges render as soft 2px lines
|
||||
fullWidth: Math.ceil(calRow.width) + 24
|
||||
fullHeight: Math.ceil(calRow.height) + 24
|
||||
autoCloseMs: 3000
|
||||
|
||||
// Month being viewed; reset to today when the popup opens
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue