[libdazzle] theme: add searchbar styling for Adwaita
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] theme: add searchbar styling for Adwaita
- Date: Tue, 6 Jun 2017 01:42:04 +0000 (UTC)
commit 3645685e13b0515481cf46f0b9b470f454bf5483
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 5 16:06:35 2017 -0700
theme: add searchbar styling for Adwaita
data/themes/Adwaita-dark.css | 4 +++-
data/themes/Adwaita.css | 1 +
data/themes/Adwaita/Adwaita-dark-searchbar.css | 8 ++++++++
data/themes/Adwaita/Adwaita-searchbar.css | 9 +++++++++
src/dazzle.gresources.xml | 4 ++++
5 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/data/themes/Adwaita-dark.css b/data/themes/Adwaita-dark.css
index 6179c09..be12030 100644
--- a/data/themes/Adwaita-dark.css
+++ b/data/themes/Adwaita-dark.css
@@ -2,5 +2,7 @@
@import url("resource:///org/gnome/dazzle/themes/shared.css");
/* Theme specific styling */
-@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-dark-graphs.css");
@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-panels.css");
+
+@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-dark-graphs.css");
+@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-dark-searchbar.css");
diff --git a/data/themes/Adwaita.css b/data/themes/Adwaita.css
index 276e601..5acd537 100644
--- a/data/themes/Adwaita.css
+++ b/data/themes/Adwaita.css
@@ -4,3 +4,4 @@
/* Theme specific styling */
@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-graphs.css");
@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-panels.css");
+@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-searchbar.css");
diff --git a/data/themes/Adwaita/Adwaita-dark-searchbar.css b/data/themes/Adwaita/Adwaita-dark-searchbar.css
new file mode 100644
index 0000000..c6d6e1f
--- /dev/null
+++ b/data/themes/Adwaita/Adwaita-dark-searchbar.css
@@ -0,0 +1,8 @@
+dzlsearchbar box.search-bar {
+ background-color: #2c3133;
+ box-shadow: 0 4px 3px -5px #2c3030 inset,
+ 0 -1px 0 #1c1f1f inset;
+}
+dzlsearchbar:backdrop box.search-bar {
+ box-shadow: 0 -1px 0 #2c3030 inset;
+}
diff --git a/data/themes/Adwaita/Adwaita-searchbar.css b/data/themes/Adwaita/Adwaita-searchbar.css
new file mode 100644
index 0000000..17ade5f
--- /dev/null
+++ b/data/themes/Adwaita/Adwaita-searchbar.css
@@ -0,0 +1,9 @@
+dzlsearchbar box.search-bar {
+ background-color: #d6d6d6;
+ box-shadow: 0 4px 3px -5px #aaa inset,
+ 0 -1px 0 #a1a1a1 inset;
+}
+dzlsearchbar:backdrop box.search-bar {
+ background-color: #d5d5d5;
+ box-shadow: none;
+}
diff --git a/src/dazzle.gresources.xml b/src/dazzle.gresources.xml
index 4b18111..40af6cf 100644
--- a/src/dazzle.gresources.xml
+++ b/src/dazzle.gresources.xml
@@ -18,9 +18,13 @@
<!-- Adwaita CSS theme -->
<file compressed="true" alias="Adwaita.css">../data/themes/Adwaita.css</file>
<file compressed="true" alias="Adwaita-dark.css">../data/themes/Adwaita-dark.css</file>
+
<file compressed="true"
alias="Adwaita/Adwaita-panels.css">../data/themes/Adwaita/Adwaita-panels.css</file>
<file compressed="true"
alias="Adwaita/Adwaita-graphs.css">../data/themes/Adwaita/Adwaita-graphs.css</file>
+ <file compressed="true"
alias="Adwaita/Adwaita-searchbar.css">../data/themes/Adwaita/Adwaita-searchbar.css</file>
+
<file compressed="true"
alias="Adwaita/Adwaita-dark-graphs.css">../data/themes/Adwaita/Adwaita-dark-graphs.css</file>
+ <file compressed="true"
alias="Adwaita/Adwaita-dark-searchbar.css">../data/themes/Adwaita/Adwaita-dark-searchbar.css</file>
<!-- Default and Fallback Theme -->
<file compressed="true" alias="shared.css">../data/themes/shared.css</file>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]