[gtk+/wip/matthiasc/gadget] Adwaita: Some updates for paned styling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gadget] Adwaita: Some updates for paned styling
- Date: Wed, 9 Dec 2015 05:50:26 +0000 (UTC)
commit 0edafa165b1f21856debe97945075c497dd91baa
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 9 00:49:21 2015 -0500
Adwaita: Some updates for paned styling
Make wide separators work again.
gtk/theme/Adwaita/_common.scss | 15 +++++----------
gtk/theme/Adwaita/gtk-contained-dark.css | 15 +++++----------
gtk/theme/Adwaita/gtk-contained.css | 15 +++++----------
3 files changed, 15 insertions(+), 30 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 871e635..b5524c7 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2972,8 +2972,6 @@ placesview {
paned { // this is for the standard paned separator
- -GtkPaned-handle-size: 1; // sets separator width
-
-gtk-icon-source: none; // removes handle decoration
margin: 0 8px 8px 0; // drag area of the separator, not a real margin
&:dir(rtl) {
@@ -2981,6 +2979,8 @@ paned { // this is for the standard paned separator
margin-left: 8px;
}
separator {
+ min-width: 1px;
+ min-height: 1px;
background-color: $borders_color;
&:backdrop {
background-color: $backdrop_borders_color;
@@ -2989,19 +2989,14 @@ paned { // this is for the standard paned separator
separator:selected {
background-color: $selected_bg_color;
}
-}
-
-paned.wide { // this is for the paned with wide separator
- -GtkPaned-handle-size: 5; // wider separator here
- margin: 0; // no need of the invisible drag area so, reset margin
- separator {
+ separator.wide {
+ min-width: 5px;
+ min-height: 5px;
background-color: transparent;
border-style: none solid;
border-color: $borders_color;
border-width: 1px;
}
- &.vertical separator { border-style: solid none;}
- separator:backdrop { border-color: $backdrop_borders_color; }
}
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index f6023e3..14c788b 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -4106,31 +4106,26 @@ placesview row.activatable:hover {
* Paned *
*********/
paned {
- -GtkPaned-handle-size: 1;
-gtk-icon-source: none;
margin: 0 8px 8px 0; }
paned:dir(rtl) {
margin-right: 0;
margin-left: 8px; }
paned separator {
+ min-width: 1px;
+ min-height: 1px;
background-color: #1c1f1f; }
paned separator:backdrop {
background-color: #1f2222; }
paned separator:selected {
background-color: #215d9c; }
-
-paned.wide {
- -GtkPaned-handle-size: 5;
- margin: 0; }
- paned.wide separator {
+ paned separator.wide {
+ min-width: 5px;
+ min-height: 5px;
background-color: transparent;
border-style: none solid;
border-color: #1c1f1f;
border-width: 1px; }
- paned.wide.vertical separator {
- border-style: solid none; }
- paned.wide separator:backdrop {
- border-color: #1f2222; }
/**************
* GtkInfoBar *
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index e0c6465..a388bef 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -4278,31 +4278,26 @@ placesview row.activatable:hover {
* Paned *
*********/
paned {
- -GtkPaned-handle-size: 1;
-gtk-icon-source: none;
margin: 0 8px 8px 0; }
paned:dir(rtl) {
margin-right: 0;
margin-left: 8px; }
paned separator {
+ min-width: 1px;
+ min-height: 1px;
background-color: #a1a1a1; }
paned separator:backdrop {
background-color: darkgray; }
paned separator:selected {
background-color: #4a90d9; }
-
-paned.wide {
- -GtkPaned-handle-size: 5;
- margin: 0; }
- paned.wide separator {
+ paned separator.wide {
+ min-width: 5px;
+ min-height: 5px;
background-color: transparent;
border-style: none solid;
border-color: #a1a1a1;
border-width: 1px; }
- paned.wide.vertical separator {
- border-style: solid none; }
- paned.wide separator:backdrop {
- border-color: darkgray; }
/**************
* GtkInfoBar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]