[libadwaita/wip/exalm/search-toolbar: 6/6] stylesheet: Use toolbar styling for search bars
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/search-toolbar: 6/6] stylesheet: Use toolbar styling for search bars
- Date: Mon, 4 Oct 2021 14:56:23 +0000 (UTC)
commit 6a4c7434449bafab7639bd196684f921655b138a
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Oct 2 01:17:27 2021 +0500
stylesheet: Use toolbar styling for search bars
Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/226
doc/migrating-libhandy-1-4-to-libadwaita.md | 6 +++---
src/stylesheet/widgets/_toolbars.scss | 3 ++-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/doc/migrating-libhandy-1-4-to-libadwaita.md b/doc/migrating-libhandy-1-4-to-libadwaita.md
index a6360dd5..8fa4c2a0 100644
--- a/doc/migrating-libhandy-1-4-to-libadwaita.md
+++ b/doc/migrating-libhandy-1-4-to-libadwaita.md
@@ -343,10 +343,10 @@ If you were using `@theme_selected_bg_color` as a text color, use
The `.sidebar` style class doesn't provide a border by default. Instead, use a
[class@Gtk.Separator] with the style class `.sidebar` manually.
-#### Adapt to Header Bar, Action Bar and Toolbar Style Changes
+#### Adapt to Header Bar, Action Bar, Search Bar and Toolbar Style Changes
-When possible, buttons in [class@Gtk.HeaderBar] and [class@Gtk.ActionBar] will
-use flat appearance by default.
+When possible, buttons in [class@Gtk.HeaderBar], [class@Gtk.ActionBar] and
+[class@Gtk.SearchBar] will use flat appearance by default.
The following rules are used when deciding when to make buttons flat or not:
diff --git a/src/stylesheet/widgets/_toolbars.scss b/src/stylesheet/widgets/_toolbars.scss
index a3f1f20c..39ae44b6 100644
--- a/src/stylesheet/widgets/_toolbars.scss
+++ b/src/stylesheet/widgets/_toolbars.scss
@@ -129,8 +129,9 @@
****************/
searchbar > revealer > box {
- padding: 6px 6px 7px 6px;
+ padding: 0px 6px 1px 6px;
border-spacing: 6px;
+ @extend %toolbar;
background-color: $dark_fill;
box-shadow: inset 0 -1px $borders_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]