Skip to content

Commit 9c07db4

Browse files
Merge pull request #542 from megax/patch15
[Gtk-3.20] Fix padding for circular, osd-image, combo and column-header buttons
2 parents 23fca70 + 8547acc commit 9c07db4

5 files changed

Lines changed: 27 additions & 4 deletions

File tree

gtk-3.20/scss/apps/_nemo.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
button {
7070
min-height: 16px;
7171
min-width: 16px;
72+
padding: ($spacing - 1px);
7273
}
7374

7475
button:first-child {

gtk-3.20/scss/widgets/_button.scss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,11 @@
381381

382382
.linked.vertical > & { @include linked_vertical_button(shade($bg_color, 1.2)); }
383383

384-
&.circular { // FIXME: aggregate to buttons
384+
&.circular,
385+
&.circular-button { // FIXME: aggregate to buttons
386+
padding: 0;
387+
min-width: 28px;
388+
min-height: 28px;
385389
border-radius: 9999px; // Fixed: https://github.com/GNOME/gtk/commit/a6409458f0d50d673a4dc370b9251993b7835b6b
386390
-gtk-outline-radius: 9999px;
387391

@@ -453,6 +457,12 @@
453457
}
454458

455459
&.vertical {
460+
button, entry {
461+
min-width: 0;
462+
padding-left: $spacing - 2px;
463+
padding-right: $spacing - 2px;
464+
}
465+
456466
entry {
457467
// reset all the other props since the spinbutton node is styled here
458468
border-radius: 0;
@@ -482,8 +492,8 @@
482492
button.combo {
483493
// otherwise the arrow placement is not symmetric
484494
min-width: 0;
485-
padding-left: 8px;
486-
padding-right: 8px;
495+
padding-left: $spacing + 2px;
496+
padding-right: $spacing + 2px;
487497
}
488498

489499
arrow {

gtk-3.20/scss/widgets/_notebook.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@
198198
button.flat {
199199
min-height: 16px;
200200
min-width: 16px;
201+
padding: 0;
202+
201203
@extend %close_button;
202204
}
203205
}

gtk-3.20/scss/widgets/_osd.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
@include exports("osd") {
99
overlay.osd { background-color: transparent; }
1010

11+
button.osd {
12+
@include button($osd_bg, $osd_fg);
13+
14+
&.image-button {
15+
padding: 0;
16+
min-height: 36px;
17+
min-width: 36px;
18+
}
19+
}
20+
1121
.osd {
1222
background-color: $osd_bg;
1323
color: $osd_fg;

gtk-3.20/scss/widgets/_view.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
}
6060

6161
%column_header_button {
62-
padding: 0 6px;
62+
padding: ($spacing - 2px) ($spacing + 1px);
6363
border-radius: 0;
6464
background-image: none;
6565
text-shadow: none;

0 commit comments

Comments
 (0)