From a8a66c0549ea4daf40985dc382538347fa8ac61b Mon Sep 17 00:00:00 2001 From: jnsh <39574454+jnsh@users.noreply.github.com> Date: Sat, 20 Oct 2018 19:49:00 +0300 Subject: [PATCH] Nautilus 3.30 path-bar redesign (#144) * Nautilus 3.30 path-bar redesign Properly theme the redesigned path-bar in nautilus 3.30. * Update path-bar-box for nautilus 3.30.2 The path-bar-box design was changed in nautilus 3.30.2 to resolve issues with some gtk themes. Change theming in Arc accordingly. Upstream commit: https://gitlab.gnome.org/GNOME/nautilus/commit/171ae2ed5206c941f12df5d3f74bc7236f3efd94 * Add transitions to nautilus path-bar-box Transition the colors of path-bar-box when switching from/to backdrop, as is done with Adwaita. --- common/gtk-3.0/3.20/sass/_applications.scss | 22 +++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/common/gtk-3.0/3.20/sass/_applications.scss b/common/gtk-3.0/3.20/sass/_applications.scss index e89bd26..ab51f6e 100644 --- a/common/gtk-3.0/3.20/sass/_applications.scss +++ b/common/gtk-3.0/3.20/sass/_applications.scss @@ -67,9 +67,27 @@ terminal-window, } // Pathbar for nautilus >=3.30 +.nautilus-window .path-bar-box.width-maximized { + border: 1px $header_button_border solid; + border-radius: 3px; + transition: border $backdrop_transition; + transition: background-color $backdrop_transition; + + &:not(:backdrop) { + background-color: $header_button_bg; + } +} .nautilus-window .path-bar > box > button { - margin: 0 4px; - padding: 2px; + background-color: transparent; + border-color: transparent; + border-radius: 0; + color: $header_fg; + margin: 0 2px; + padding: 1px; + + &:not(:backdrop):hover { + box-shadow: 0 -3px $selected_bg_color inset; + } } button.nautilus-circular-button.image-button {