Skip to content

Commit d6a43f7

Browse files
Maurizio Galliochosi
authored andcommitted
Make CSD titlebars slimmer
1 parent d6d8819 commit d6a43f7

File tree

1 file changed

+41
-15
lines changed

1 file changed

+41
-15
lines changed

light/gtk-3.0/_common.scss

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ searchbar,
14191419
%titlebar,
14201420
headerbar {
14211421
padding: 0 5px;
1422-
min-height: 38px;
1422+
min-height: 32px;
14231423
border-width: 0 0 1px;
14241424
border-style: solid;
14251425
border-color: $borders_color;
@@ -1586,13 +1586,13 @@ headerbar {
15861586
}
15871587

15881588
&.default-decoration {
1589-
min-height: 28px;
1589+
min-height: 24px;
15901590
padding: 4px;
15911591

15921592
button.titlebutton,
15931593
menubutton.titlebutton {
1594-
min-height: 26px;
1595-
min-width: 26px;
1594+
min-height: 22px;
1595+
min-width: 22px;
15961596
margin: 0;
15971597
padding: 0;
15981598
}
@@ -1621,35 +1621,61 @@ headerbar {
16211621
headerbar {
16221622
// add vertical margins to common widget on the headerbar to avoid them spanning the whole height
16231623
entry,
1624-
spinbutton,
1625-
separator,
1626-
button {
1624+
separator {
16271625
margin-top: 3px;
16281626
margin-bottom: 3px;
16291627
}
1628+
spinbutton,
1629+
button {
1630+
margin-top: 2px;
1631+
margin-bottom: 2px;
1632+
padding-top: 0;
1633+
padding-bottom: 0;
1634+
}
16301635
button label {
16311636
min-width: 28px;
1632-
min-height: 28px;
1637+
min-height: 22px;
16331638
}
16341639
button.titlebutton image {
16351640
min-width: 22px;
16361641
min-height: 22px;
16371642
}
16381643
button:not(.image-button):not(.titlebutton) image {
1639-
min-width: 28px;
1640-
min-height: 28px;
1644+
min-width: 22px;
1645+
min-height: 22px;
16411646
}
16421647
button.image-button {
1643-
min-width: 28px;
1644-
min-height: 28px;
1648+
min-width: 22px;
1649+
min-height: 22px;
16451650
padding-left: 2px;
16461651
padding-right: 2px;
16471652
}
1653+
.stack-switcher button {
1654+
min-width: 26px;
1655+
min-height: 26px;
1656+
&:not(.text-button) {
1657+
min-height: 22px;
1658+
min-width: 22px;
1659+
padding-left: 0px;
1660+
padding-right: 0px;
1661+
}
1662+
}
1663+
buttonbox {
1664+
padding: 0px;
1665+
button {
1666+
min-width: 26px;
1667+
min-height: 26px;
1668+
&:not(.text-button) {
1669+
min-width: 22px;
1670+
padding-left: 0px;
1671+
padding-right: 0px;
1672+
}
1673+
}
1674+
}
16481675
switch {
1649-
margin-top: 9px;
1650-
margin-bottom: 9px;
1676+
margin-top: 5px;
1677+
margin-bottom: 5px;
16511678
}
1652-
buttonbox { padding: 0px; }
16531679
}
16541680

16551681
.background:not(.tiled):not(.maximized):not(.solid-csd) .titlebar,

0 commit comments

Comments
 (0)