mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
quickSettings: Ensure toggle buttons are aligned with the pixel grid
If the width of the menu was not a multiple of the number of columns,
the toggle buttons after the first column would not be aligned with the
pixel grid. This was causing text rendering issues and slightly blurry
icons.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6210
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2577>
(cherry picked from commit 3b216be637)
This commit is contained in:
parent
c992a2fe40
commit
a64cf7009d
1 changed files with 1 additions and 1 deletions
|
|
@ -543,7 +543,7 @@ const QuickSettingsLayout = GObject.registerClass({
|
|||
: [0, 0];
|
||||
|
||||
const availWidth = box.get_width() - (this.nColumns - 1) * this.column_spacing;
|
||||
const childWidth = availWidth / this.nColumns;
|
||||
const childWidth = Math.floor(availWidth / this.nColumns);
|
||||
|
||||
this._overlay?.allocate_available_size(0, 0, box.get_width(), box.get_height());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue