From fd53732035f4633d4c4e81e1be1a76b4dd40a8b5 Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Sat, 14 Jun 2014 19:06:26 +0200 Subject: [PATCH] Adwaita: try to make scrollbars near paned separator usable. --- gtk/resources/theme/Adwaita/_common.scss | 6 +++++- gtk/resources/theme/Adwaita/gtk-contained-dark.css | 5 ++++- gtk/resources/theme/Adwaita/gtk-contained.css | 5 ++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index 2cdd9e678f..c8bd130292 100644 --- a/gtk/resources/theme/Adwaita/_common.scss +++ b/gtk/resources/theme/Adwaita/_common.scss @@ -1659,7 +1659,11 @@ GtkFileChooserDialog .dialog-action-box { GtkPaned { // This is actually the invisible area of the paned separator, not a margin... - margin: 16px; //drag area of the separator + margin: 0 16px 16px 0; //drag area of the separator + &:dir(rtl) { + margin-right: 0; + margin-left: 16px; + } } .pane-separator { diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css b/gtk/resources/theme/Adwaita/gtk-contained-dark.css index 9868b8734f..ba4a9ac16b 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css @@ -2172,7 +2172,10 @@ GtkFileChooserDialog .dialog-action-box { color: #383e3e; } GtkPaned { - margin: 16px; } + margin: 0 16px 16px 0; } + GtkPaned:dir(rtl) { + margin-right: 0; + margin-left: 16px; } .pane-separator { background-image: linear-gradient(to bottom, #1c1f1f); } diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css index 28dbaa1499..13a1947a8e 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained.css +++ b/gtk/resources/theme/Adwaita/gtk-contained.css @@ -2170,7 +2170,10 @@ GtkFileChooserDialog .dialog-action-box { color: #dfdfdf; } GtkPaned { - margin: 16px; } + margin: 0 16px 16px 0; } + GtkPaned:dir(rtl) { + margin-right: 0; + margin-left: 16px; } .pane-separator { background-image: linear-gradient(to bottom, #a1a1a1); }