Mercurial > repos > other > Adwaita-Dark-Green
changeset 90:575609b1a6d8
Update Nautilus 3.32+ to use button styles
Luckily, there's enough CSS class change between 3.30 and 3.32
that we can keep 3.30 using its older style
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 13 Oct 2019 12:15:07 +0100 |
parents | 328498311786 |
children | 240e408b8c7f |
files | gtk-3.20/nautilus.css |
diffstat | 1 files changed, 26 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk-3.20/nautilus.css Sun Oct 13 12:13:42 2019 +0100 +++ b/gtk-3.20/nautilus.css Sun Oct 13 12:15:07 2019 +0100 @@ -67,12 +67,9 @@ padding: 4px; } -/* New style path bar */ - +/* New style path bar - Nautilus 3.30 */ .nautilus-window .path-bar:not(.linked) button, .nautilus-window .path-bar:not(.linked) button:checked, .nautilus-window .path-bar:not(.linked) button:active, .nautilus-window .path-bar:not(.linked) button:hover, -.nautilus-window .path-bar:not(.linked) button:backdrop, .nautilus-window .path-bar:not(.linked) button:backdrop:checked, .nautilus-window .path-bar:not(.linked) button:backdrop:active, .nautilus-window .path-bar:not(.linked) button:backdrop:hover, -.nautilus-window .nautilus-path-bar button, .nautilus-window .nautilus-path-bar button:checked, .nautilus-window .nautilus-path-bar button:active, .nautilus-window .nautilus-path-bar button:hover, -.nautilus-window .nautilus-path-bar button:backdrop, .nautilus-window .nautilus-path-bar button:backdrop:checked, .nautilus-window .nautilus-path-bar button:backdrop:active, .nautilus-window .nautilus-path-bar button:backdrop:hover +.nautilus-window .path-bar:not(.linked) button:backdrop, .nautilus-window .path-bar:not(.linked) button:backdrop:checked, .nautilus-window .path-bar:not(.linked) button:backdrop:active, .nautilus-window .path-bar:not(.linked) button:backdrop:hover { /* undecorate the buttons */ background-image: none; background-color: transparent; @@ -82,8 +79,29 @@ box-shadow: none; } +/* New new style path bar - Nautilus 3.32 */ +.nautilus-path-bar button, .nautilus-path-bar button:checked, .nautilus-path-bar button:active, .nautilus-path-bar button:hover, +.nautilus-path-bar button:backdrop, .nautilus-path-bar button:backdrop:checked, .nautilus-path-bar button:backdrop:active, .nautilus-path-bar button:backdrop:hover, +.nautilus-path-bar button:first-child { + margin: 0px; +} + +.nautilus-window .width-maximized .nautilus-path-bar button, .nautilus-window .width-maximized .nautilus-path-bar button:checked, .nautilus-window .width-maximized .nautilus-path-bar button:active, .nautilus-window .width-maximized .nautilus-path-bar button:hover, +.nautilus-window .width-maximized .nautilus-path-bar button:backdrop, .nautilus-window .width-maximized .nautilus-path-bar button:backdrop:checked, .nautilus-window .width-maximized .nautilus-path-bar button:backdrop:active, .nautilus-window .width-maximized .nautilus-path-bar button:backdrop:hover, +.nautilus-window .width-maximized .nautilus-path-bar button:first-child +{ + border-width: 0px; + border-right: 1px solid @wm_button_border; + box-shadow: none; +} + +.nautilus-window .width-maximized .nautilus-path-bar button:last-child { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} + .nautilus-window .path-bar:not(.linked) button:not(:checked) image, -.nautilus-window .nautilus-path-bar button:not(:checked) image +.nautilus-path-bar button:not(:checked) image { opacity: 0.8; } /* dim the icon when not checked */ .nautilus-window .path-bar:not(.linked) button:not(:backdrop):hover { box-shadow: inset 0 -3px @borders; } @@ -98,6 +116,8 @@ } .nautilus-window .path-bar-box.width-maximized:not(:backdrop) { background-color: @wm_bg_a; + /* Nautlis 3.30 should also have an inset shadow for the top, but we can't differentiate it from 3.32 that doesn't need it, so we'll do without */ + box-shadow: 0 1px @button_emphasis_c; } /* Make the tags fit into the box */