Skip to content

Commit 5d4b94b

Browse files
committed
gtk3: Style updated pathbar in nautilus 42
1 parent 10594d4 commit 5d4b94b

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

common/gtk-3.0/sass/_applications.scss

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,87 @@ terminal-window,
129129
@include pathbar_linking_rules($sep_color:$header_button_border);
130130
}
131131

132+
// Pathbar for nautilus >=42
133+
.nautilus-path-bar.linked:not(.vertical):not(.path-bar),
134+
.nautilus-path-bar.linked:not(.vertical):not(.path-bar):not(.stack-switcher) {
135+
& > scrolledwindow,
136+
& > button.popup.toggle {
137+
margin-top: 6px;
138+
margin-bottom: 6px;
139+
}
140+
141+
& > scrolledwindow {
142+
background-color: $header_button_bg;
143+
border: 1px $header_button_border solid;
144+
145+
&:dir(ltr){ border-right-width: 0; border-radius: 3px 0 0 3px; }
146+
&:dir(rtl){ border-left-width: 0; border-radius: 0 3px 3px 0; }
147+
148+
&:backdrop { opacity: 0.7; }
149+
}
150+
151+
& > button.popup.toggle {
152+
padding: 2px 5px;
153+
background-color: $header_button_bg;
154+
border: 1px $header_button_border solid;
155+
156+
&:hover { background-color: lighten($header_button_bg, 15%); }
157+
&:active, &:checked {
158+
color: $selected_fg_color;
159+
background-color: $selected_bg_color;
160+
}
161+
162+
&:dir(ltr){ border-radius: 0 3px 3px 0; }
163+
&:dir(rtl){ border-radius: 3px 0 0 3px; }
164+
165+
&:hover:not(:checked):not(:active):not(:only-child):hover,
166+
&:hover:not(:checked):not(:active):not(:only-child):last-child:hover {
167+
box-shadow: none;
168+
}
169+
}
170+
}
171+
172+
.path-buttons-box {
173+
& > box {
174+
& > button:not(.current-dir):hover {
175+
box-shadow: inset 1px 0 $header_button_border,
176+
inset -1px 0 $header_button_border;
177+
}
178+
&:first-child > button:not(.current-dir) {
179+
border-radius: 3px 0 0 3px;
180+
&:hover { box-shadow: inset -1px 0 $header_button_border; }
181+
}
182+
&:last-child > button:not(.current-dir) {
183+
border-radius: 0 3px 3px 0;
184+
&:hover { box-shadow: inset 1px 0 $header_button_border; }
185+
}
186+
}
187+
188+
button {
189+
margin: 0;
190+
border: none;
191+
border-radius: 0;
192+
193+
&:not(.current-dir) {
194+
@if $variant == 'light' or $variant == 'lighter' {
195+
&:hover { background-color: transparentize(white, 0.4); }
196+
&:hover:backdrop { background-color: transparentize(white, 0.42); }
197+
} @else {
198+
&:hover { background-color: transparentize(white, 0.91); }
199+
&:hover:backdrop { background-color: transparentize(white, 0.88); }
200+
}
201+
}
202+
203+
.dim-label { opacity: 1;}
204+
205+
&.current-dir {
206+
background-color: transparent;
207+
color: $header_fg;
208+
}
209+
}
210+
}
211+
212+
132213
button.nautilus-circular-button.image-button {
133214
@extend %button_circular;
134215
}

0 commit comments

Comments
 (0)