[gnome-builder/document-manager] Credits: use css for styling
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/document-manager] Credits: use css for styling
- Date: Wed, 10 Dec 2014 22:47:42 +0000 (UTC)
commit f678caf289be99018c4a0919f77d602515d7f1d8
Author: Christian Hergert <christian hergert me>
Date: Wed Dec 10 14:47:24 2014 -0800
Credits: use css for styling
src/credits/gb-credits-widget.c | 17 -----------------
src/resources/css/builder.Adwaita.css | 8 ++++++++
2 files changed, 8 insertions(+), 17 deletions(-)
---
diff --git a/src/credits/gb-credits-widget.c b/src/credits/gb-credits-widget.c
index df7deb9..10bc090 100644
--- a/src/credits/gb-credits-widget.c
+++ b/src/credits/gb-credits-widget.c
@@ -165,22 +165,6 @@ gb_credits_widget_set_progress (GbCreditsWidget *widget,
}
}
-static void
-gb_credits_widget_constructed (GObject *object)
-{
- GbCreditsWidget *widget = (GbCreditsWidget *)object;
- GdkRGBA white = { 0 };
- GdkRGBA black = { 0 };
-
- gdk_rgba_parse (&white, "#fffefe");
- gdk_rgba_parse (&black, "#000001");
-
- gtk_widget_override_background_color (GTK_WIDGET (widget->priv->event_box),
- GTK_STATE_FLAG_NORMAL, &black);
- gtk_widget_override_color (GTK_WIDGET (widget->priv->grid),
- GTK_STATE_FLAG_NORMAL, &white);
-}
-
static gboolean
gb_credits_widget_get_child_position (GtkOverlay *overlay,
GtkWidget *widget,
@@ -271,7 +255,6 @@ gb_credits_widget_class_init (GbCreditsWidgetClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkOverlayClass *overlay_class = GTK_OVERLAY_CLASS (klass);
- object_class->constructed = gb_credits_widget_constructed;
object_class->dispose = gb_credits_widget_dispose;
object_class->get_property = gb_credits_widget_get_property;
object_class->set_property = gb_credits_widget_set_property;
diff --git a/src/resources/css/builder.Adwaita.css b/src/resources/css/builder.Adwaita.css
index 2b4dbdf..f08686e 100644
--- a/src/resources/css/builder.Adwaita.css
+++ b/src/resources/css/builder.Adwaita.css
@@ -198,3 +198,11 @@ GtkButton.tab-control-last {
border-bottom-right-radius: 0px;
}
+
+GbCreditsWidget GtkEventBox {
+ background-color: #000000;
+}
+
+GbCreditsWidget GtkLabel {
+ color: #eeeeef;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]