mouse: center horizontally using halign property
The Mouse & Touchpad panel has a horizontally centered list, which is centered pixel-counting the list width and hardcoded margins. This approach has various issues. It resizes the window needlessly when e.g. the font changes the size, dpi or family. This is specially visible when dealing with low resolution screens, where the hardcoded margins are too much to fit a 720x480 screen with the Large Font accessibility setting on. Fix that by removing the margins and setting the horizontal alignment of the list to center. Since the list itself doesn't expand to fill the available space, there won't be any user- visible changes except that the panel is now able to scale down. https://bugzilla.gnome.org/show_bug.cgi?id=768529
This commit is contained in:
parent
62f1f6bb23
commit
6c677bb0e9
1 changed files with 1 additions and 2 deletions
|
@ -26,8 +26,7 @@
|
|||
<object class="GtkBox" id="prefs_widget">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="margin_start">134</property>
|
||||
<property name="margin_end">134</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="margin_top">12</property>
|
||||
<property name="margin_bottom">12</property>
|
||||
<property name="orientation">vertical</property>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue