Skip to content

Commit 5e95b2e

Browse files
committed
gtk3: Style nautilus search entry popup-button
Recycle nautilus 42 path bar popover button styling to this, which seems to work with earlier nautilus versions as well.
1 parent 5d4b94b commit 5e95b2e

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

common/gtk-3.0/sass/_applications.scss

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,25 +147,27 @@ terminal-window,
147147

148148
&:backdrop { opacity: 0.7; }
149149
}
150+
}
150151

151-
& > button.popup.toggle {
152-
padding: 2px 5px;
153-
background-color: $header_button_bg;
154-
border: 1px $header_button_border solid;
152+
.nautilus-window headerbar button.popup.toggle:not(.image-button):not(.disclosure-button),
153+
.nautilus-path-bar.linked:not(.vertical):not(.path-bar) > button.popup.toggle,
154+
.nautilus-path-bar.linked:not(.vertical):not(.path-bar):not(.stack-switcher) > button.popup.toggle {
155+
padding: 2px 5px;
156+
background-color: $header_button_bg;
157+
border: 1px $header_button_border solid;
155158

156-
&:hover { background-color: lighten($header_button_bg, 15%); }
157-
&:active, &:checked {
158-
color: $selected_fg_color;
159-
background-color: $selected_bg_color;
160-
}
159+
&:hover { background-color: lighten($header_button_bg, 15%); }
160+
&:active, &:checked {
161+
color: $selected_fg_color;
162+
background-color: $selected_bg_color;
163+
}
161164

162-
&:dir(ltr){ border-radius: 0 3px 3px 0; }
163-
&:dir(rtl){ border-radius: 3px 0 0 3px; }
165+
&:dir(ltr){ border-radius: 0 3px 3px 0; }
166+
&:dir(rtl){ border-radius: 3px 0 0 3px; }
164167

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-
}
168+
&:hover:not(:checked):not(:active):not(:only-child):hover,
169+
&:hover:not(:checked):not(:active):not(:only-child):last-child:hover {
170+
box-shadow: none;
169171
}
170172
}
171173

0 commit comments

Comments
 (0)