Commit 264f84e
committed
Bug 1974861 - Stop trying to read titlebar button spacing from the theme. r=stransky
We're getting the spacing from the wrong box (the headerbar, rather than
the button box container). Even with that, some themes would use
additional ways of creating spacing (paddings or margins). So in
practice the 6px between buttons is just incorrect.
Instead, just use the Adwaita spacing. We're using Adwaita styling
anyways, so this makes the headerbar match perfectly in Gnome.
With the Breeze theme (for KDE), this patch is closer than before
(even though personally I might take some time to get used to it).
We can also reduce it back to 6px between buttons in some DEs, if
somebody complains, which is what we're shipping, effectively.
Differential Revision: https://phabricator.services.mozilla.com/D2561801 parent ee89fea commit 264f84e
File tree
6 files changed
+11
-28
lines changed- browser/themes/linux
- servo/components/style
- widget
- gtk
6 files changed
+11
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
| |||
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
184 | | - | |
185 | | - | |
| 191 | + | |
186 | 192 | | |
187 | | - | |
188 | | - | |
| 193 | + | |
| 194 | + | |
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | 162 | | |
168 | 163 | | |
169 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | 1147 | | |
1153 | 1148 | | |
1154 | 1149 | | |
| |||
2301 | 2296 | | |
2302 | 2297 | | |
2303 | 2298 | | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
2311 | | - | |
2312 | 2299 | | |
2313 | 2300 | | |
2314 | 2301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
| |||
0 commit comments