[libadwaita/wip/exalm/stylesheet2: 42/103] stylesheet: Remove %titlebar
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/stylesheet2: 42/103] stylesheet: Remove %titlebar
- Date: Fri, 16 Apr 2021 22:38:45 +0000 (UTC)
commit b5fca0724ee26ef66c0c324b219f8ba4f890326f
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Apr 8 19:12:04 2021 +0500
stylesheet: Remove %titlebar
Adding a headerbar style to .titlebar:not(headerbar) and immedaitely
resetting it because it's undesired doesn't seem useful enough to keep.
src/stylesheet/_common.scss | 31 ++++++++-----------------------
1 file changed, 8 insertions(+), 23 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 986c77d..b898f03 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -1369,7 +1369,6 @@ headerbar windowcontrols button {
/***************
* Header bars *
***************/
-%titlebar,
headerbar {
padding: 0 6px;
min-height: 46px;
@@ -1378,6 +1377,14 @@ headerbar {
border-color: $alt_borders_color;
border-radius: 0;
+ > windowhandle > box {
+ &,
+ > box.start,
+ > box.end {
+ border-spacing: 6px;
+ }
+ }
+
@include headerbar_fill(darken($bg_color, 10%));
&:backdrop {
@@ -1460,16 +1467,6 @@ headerbar {
}
}
}
-}
-
-headerbar {
- > windowhandle > box {
- &,
- > box.start,
- > box.end {
- border-spacing: 6px;
- }
- }
// add vertical margins to common widget on the headerbar to avoid them spanning the whole height
entry,
@@ -1493,20 +1490,8 @@ headerbar {
}
}
-
.titlebar:not(headerbar) {
- window.csd > & {
- // in csd we assume every titlebar is a headerbar so reset anything, this is needed for split toolbars
cases
- padding: 0;
- background-color: transparent;
- background-image: none;
- border-style: none;
- border-color: transparent;
- }
-
separator { background-color: $borders_color; } // FIXME: use darker border?
-
- @extend %titlebar;
}
// Development versions of apps to use a differently styled headerbar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]