[gnome-builder] greeter: fix search bar and row styling
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] greeter: fix search bar and row styling
- Date: Mon, 21 Dec 2015 07:40:23 +0000 (UTC)
commit b61a8086ad6f3c28f057b773226ebab78e5c28b1
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 6 20:23:44 2015 -0800
greeter: fix search bar and row styling
data/theme/Adwaita-dark.css | 14 ++++++++++++++
data/theme/shared.css | 14 +++++++-------
libide/greeter/ide-greeter-perspective.c | 1 +
3 files changed, 22 insertions(+), 7 deletions(-)
---
diff --git a/data/theme/Adwaita-dark.css b/data/theme/Adwaita-dark.css
index 35d7e2b..c5754c1 100644
--- a/data/theme/Adwaita-dark.css
+++ b/data/theme/Adwaita-dark.css
@@ -54,3 +54,17 @@ GbAccelLabel .frame {
box-shadow: 0px 1px 0px #333 inset,
0px -1px 0px #111 inset;
}
+
+
+GtkBox.horizontal.search-bar {
+ background: none;
+ background-color: #303535;
+ box-shadow: inset 0 2px 3px -1px #242828, 0 1px rgba(238, 238, 236, 0.1);
+ border: none;
+ border-bottom: 1px solid #1c1f1f;
+}
+GtkBox.horizontal.search-bar:backdrop {
+ border-color: #1f2222;
+ background-color: #303535;
+ box-shadow: none;
+}
diff --git a/data/theme/shared.css b/data/theme/shared.css
index 4a9b113..304830f 100644
--- a/data/theme/shared.css
+++ b/data/theme/shared.css
@@ -110,19 +110,19 @@ GbSearchDisplayGroup GtkListBox .list-row {
}
-IdeGreeterProjectRow,
+greeter row,
row.with-header {
border-bottom: 1px solid alpha(@borders, 0.4);
}
-IdeGreeterPerspective .frame {
- border-top: 1px solid alpha(@borders, 0.4);
- border-left: 1px solid alpha(@borders, 0.4);
- border-right: 1px solid alpha(@borders, 0.4);
- border-bottom: none;
+greeter .frame {
+ border-top: 1px solid alpha(@borders, 0.4);
+ border-left: 1px solid alpha(@borders, 0.4);
+ border-right: 1px solid alpha(@borders, 0.4);
+ border-bottom: none;
}
/* remove viewport frame */
-IdeGreeterPerspective viewport.frame {
+greeter > GtkBox.vertical > scrolledwindow > viewport.frame {
border: none;
}
diff --git a/libide/greeter/ide-greeter-perspective.c b/libide/greeter/ide-greeter-perspective.c
index 226289f..71b06e7 100644
--- a/libide/greeter/ide-greeter-perspective.c
+++ b/libide/greeter/ide-greeter-perspective.c
@@ -607,6 +607,7 @@ ide_greeter_perspective_class_init (IdeGreeterPerspectiveClass *klass)
g_object_class_install_properties (object_class, LAST_PROP, properties);
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/builder/ui/ide-greeter-perspective.ui");
+ gtk_widget_class_set_css_name (widget_class, "greeter");
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, titlebar);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, my_projects_container);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, my_projects_list_box);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]