Adwaita: use -gtk-icon-source: none on paned...
...to get rid of the handle decoration istead of setting a transparent background and abuse a background image for the background color.
This commit is contained in:
@ -2771,18 +2771,16 @@ GtkPaned { // 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) {
|
||||
margin-right: 0;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.pane-separator {
|
||||
//FIXME abusing a background-image to get rid of the handle decoration
|
||||
//I'd like something better...
|
||||
background-image: linear-gradient(to bottom, $borders_color);
|
||||
background-color: transparent; // transparent background color to gets rid of the decoration.
|
||||
background-color: $borders_color;
|
||||
&:backdrop {
|
||||
background-image: linear-gradient(to bottom, $backdrop_borders_color);
|
||||
background-color: $backdrop_borders_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2791,9 +2789,9 @@ GtkPaned.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
|
||||
.pane-separator {
|
||||
background-color: transparent;
|
||||
border-style: none solid;
|
||||
border-color: $borders_color;
|
||||
background-image: none;
|
||||
border-width: 1px;
|
||||
}
|
||||
&.vertical .pane-separator { border-style: solid none;}
|
||||
|
@ -4077,23 +4077,23 @@ GtkPlacesSidebar.sidebar .view {
|
||||
*********/
|
||||
GtkPaned {
|
||||
-GtkPaned-handle-size: 1;
|
||||
-gtk-icon-source: none;
|
||||
margin: 0 8px 8px 0; }
|
||||
GtkPaned:dir(rtl) {
|
||||
margin-right: 0;
|
||||
margin-left: 8px; }
|
||||
GtkPaned .pane-separator {
|
||||
background-image: linear-gradient(to bottom, #1c1f1f);
|
||||
background-color: transparent; }
|
||||
background-color: #1c1f1f; }
|
||||
GtkPaned .pane-separator:backdrop {
|
||||
background-image: linear-gradient(to bottom, #1e2222); }
|
||||
background-color: #1e2222; }
|
||||
|
||||
GtkPaned.wide {
|
||||
-GtkPaned-handle-size: 5;
|
||||
margin: 0; }
|
||||
GtkPaned.wide .pane-separator {
|
||||
background-color: transparent;
|
||||
border-style: none solid;
|
||||
border-color: #1c1f1f;
|
||||
background-image: none;
|
||||
border-width: 1px; }
|
||||
GtkPaned.wide.vertical .pane-separator {
|
||||
border-style: solid none; }
|
||||
|
@ -4238,23 +4238,23 @@ GtkPlacesSidebar.sidebar .view {
|
||||
*********/
|
||||
GtkPaned {
|
||||
-GtkPaned-handle-size: 1;
|
||||
-gtk-icon-source: none;
|
||||
margin: 0 8px 8px 0; }
|
||||
GtkPaned:dir(rtl) {
|
||||
margin-right: 0;
|
||||
margin-left: 8px; }
|
||||
GtkPaned .pane-separator {
|
||||
background-image: linear-gradient(to bottom, #a1a1a1);
|
||||
background-color: transparent; }
|
||||
background-color: #a1a1a1; }
|
||||
GtkPaned .pane-separator:backdrop {
|
||||
background-image: linear-gradient(to bottom, #a8a8a8); }
|
||||
background-color: #a8a8a8; }
|
||||
|
||||
GtkPaned.wide {
|
||||
-GtkPaned-handle-size: 5;
|
||||
margin: 0; }
|
||||
GtkPaned.wide .pane-separator {
|
||||
background-color: transparent;
|
||||
border-style: none solid;
|
||||
border-color: #a1a1a1;
|
||||
background-image: none;
|
||||
border-width: 1px; }
|
||||
GtkPaned.wide.vertical .pane-separator {
|
||||
border-style: solid none; }
|
||||
|
Reference in New Issue
Block a user