diff --git a/settings/quickshell.nix b/settings/quickshell.nix index 1af0ea0..a503160 100644 --- a/settings/quickshell.nix +++ b/settings/quickshell.nix @@ -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