Skip to content

Commit

Permalink
gtk3: Add missing titlebar border-radius rules
Browse files Browse the repository at this point in the history
These were added in ancient upstream commit [1], and seem like they
could be beneficial.

[1] https://gitlab.gnome.org/GNOME/gtk/-/commit/79bf5b859289d3fe7d6be450ce5bb8eb14eed2dc
  • Loading branch information
jnsh committed Sep 5, 2022
1 parent 651747b commit b9b98cb
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion common/gtk-3.0/sass/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1167,10 +1167,24 @@ headerbar,
separator.titlebutton { @extend %header_separator; }
}

.titlebar {
.titlebar,
.background .titlebar {
border-radius: $_header_radius $_header_radius 0 0;
}

.background.tiled .titlebar,
.background.tiled-top .titlebar,
.background.tiled-right .titlebar,
.background.tiled-bottom .titlebar,
.background.tiled-left .titlebar,
.background.maximized .titlebar,
.background.solid-csd .titlebar {
&:backdrop, & {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}

headerbar {
@extend %header_widgets;

Expand Down Expand Up @@ -1217,6 +1231,25 @@ headerbar {
}
}
}

window.tiled &,
window.tiled-top &,
window.tiled-right &,
window.tiled-bottom &,
window.tiled-left &,
window.maximized &,
window.fullscreen &,
window.solid-csd & {
&, &:backdrop {
&,
&:first-child,
&:last-child,
&:only-child {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
}
}

// Fixes split headerbars too
Expand Down

0 comments on commit b9b98cb

Please sign in to comment.