[gnome-boxes] Fix theming for notification bar
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Fix theming for notification bar
- Date: Mon, 25 Jun 2012 15:10:18 +0000 (UTC)
commit 325f8c2318911ee5b7d0a2a7dc2b96310492cf37
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jun 21 20:38:38 2012 +0200
Fix theming for notification bar
https://bugzilla.gnome.org/show_bug.cgi?id=678569
data/gtk-style.css | 16 +++++++++++++++-
src/notificationbar.vala | 3 +--
2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index fb4d2ac..c63a0ca 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -151,7 +151,21 @@ GtkClutterOffscreen,
to(alpha(@theme_tooltip_fg_color, 0.15)));
}
-GtkInfoBar {
+.notificationbar GtkInfoBar {
+ border-color: #555357;
+ border-style: solid;
+ border-width: 0 1px 1px 1px;
+ border-radius: 0 0 4px 4px;
+ border-image: none;
+
+ background-color: #343a3b;
+ background-image: -gtk-gradient(linear, left top, left bottom,
+ from(#343a3b),
+ color-stop(0.1, #3b3e3f),
+ color-stop(0.2, #343a3b),
+ to(#343a3b));
+ color: #eeeeee;
+
-GtkInfoBar-action-area-border: 0;
}
diff --git a/src/notificationbar.vala b/src/notificationbar.vala
index 5343bd2..fee0b52 100644
--- a/src/notificationbar.vala
+++ b/src/notificationbar.vala
@@ -105,8 +105,6 @@ private class Boxes.Notificationbar: GLib.Object {
revealer.name = "notificationbar-revealer";
info_bar = new InfoBar ();
- info_bar.get_style_context ().add_class ("osd");
- info_bar.margin = 5;
message_label = new Label ("");
var content_area = info_bar.get_content_area () as Container;
@@ -130,6 +128,7 @@ private class Boxes.Notificationbar: GLib.Object {
info_bar.show_all ();
gtk_actor = new GtkClutter.Actor.with_contents (info_bar);
+ gtk_actor.get_widget ().get_style_context ().add_class ("notificationbar");
gtk_actor.name = "notificationbar";
revealer.add (gtk_actor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]