[libdazzle] theme: add default styling for pillbox
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] theme: add default styling for pillbox
- Date: Mon, 5 Jun 2017 23:01:38 +0000 (UTC)
commit 21f9d4186bfeb5471972e26c47068c1aeaf3ddae
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 5 15:51:12 2017 -0700
theme: add default styling for pillbox
data/themes/shared.css | 1 +
data/themes/shared/shared-pillbox.css | 4 ++++
src/dazzle.gresources.xml | 1 +
src/widgets/dzl-pill-box.c | 2 +-
4 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/data/themes/shared.css b/data/themes/shared.css
index 2233134..ce191c3 100644
--- a/data/themes/shared.css
+++ b/data/themes/shared.css
@@ -1,4 +1,5 @@
/* Theme agnostic or base-layer CSS styling */
+@import url("resource:///org/gnome/dazzle/themes/shared/shared-pillbox.css");
@import url("resource:///org/gnome/dazzle/themes/shared/shared-progressbutton.css");
@import url("resource:///org/gnome/dazzle/themes/shared/shared-stacklist.css");
@import url("resource:///org/gnome/dazzle/themes/shared/shared-suggestions.css");
diff --git a/data/themes/shared/shared-pillbox.css b/data/themes/shared/shared-pillbox.css
new file mode 100644
index 0000000..ad31f2b
--- /dev/null
+++ b/data/themes/shared/shared-pillbox.css
@@ -0,0 +1,4 @@
+dzlpillbox {
+ border-radius: 3px;
+ background-color: @wm_bg_b;
+}
diff --git a/src/dazzle.gresources.xml b/src/dazzle.gresources.xml
index 8383f55..4b18111 100644
--- a/src/dazzle.gresources.xml
+++ b/src/dazzle.gresources.xml
@@ -24,6 +24,7 @@
<!-- Default and Fallback Theme -->
<file compressed="true" alias="shared.css">../data/themes/shared.css</file>
+ <file compressed="true" alias="shared/shared-pillbox.css">../data/themes/shared/shared-pillbox.css</file>
<file compressed="true"
alias="shared/shared-progressbutton.css">../data/themes/shared/shared-progressbutton.css</file>
<file compressed="true"
alias="shared/shared-stacklist.css">../data/themes/shared/shared-stacklist.css</file>
<file compressed="true"
alias="shared/shared-suggestions.css">../data/themes/shared/shared-suggestions.css</file>
diff --git a/src/widgets/dzl-pill-box.c b/src/widgets/dzl-pill-box.c
index 79750e8..587d59d 100644
--- a/src/widgets/dzl-pill-box.c
+++ b/src/widgets/dzl-pill-box.c
@@ -119,7 +119,7 @@ dzl_pill_box_class_init (DzlPillBoxClass *klass)
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, PROP_LABEL, properties [PROP_LABEL]);
- gtk_widget_class_set_css_name (widget_class, "pillbox");
+ gtk_widget_class_set_css_name (widget_class, "dzlpillbox");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/dazzle/ui/dzl-pill-box.ui");
gtk_widget_class_bind_template_child (widget_class, DzlPillBox, label);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]