[gnome-builder/wip/chergert/layout] layout: sync active view primary color with stack header
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] layout: sync active view primary color with stack header
- Date: Wed, 5 Jul 2017 22:14:28 +0000 (UTC)
commit 02c377c0bb0de8cdfe8b0d34c60a2a06eca924fe
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 5 15:12:12 2017 -0700
layout: sync active view primary color with stack header
This allows the primary-color of the layout view to inform the
layout stack header of its background color. Doing so makes the
layout stack much less distracting.
libide/layout/ide-layout-stack.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libide/layout/ide-layout-stack.c b/libide/layout/ide-layout-stack.c
index e0f76cc..619a8e2 100644
--- a/libide/layout/ide-layout-stack.c
+++ b/libide/layout/ide-layout-stack.c
@@ -123,6 +123,7 @@ ide_layout_stack_bindings_notify_source (IdeLayoutStack *self,
{
_ide_layout_stack_header_set_title (priv->header, _("No Open Pages"));
_ide_layout_stack_header_set_modified (priv->header, FALSE);
+ _ide_layout_stack_header_set_background_rgba (priv->header, NULL);
}
}
@@ -567,6 +568,10 @@ ide_layout_stack_init (IdeLayoutStack *self)
priv->header, "modified",
G_BINDING_SYNC_CREATE);
+ dzl_binding_group_bind (priv->bindings, "primary-color",
+ priv->header, "background-rgba",
+ G_BINDING_SYNC_CREATE);
+
g_signal_connect_object (priv->stack,
"notify::visible-child",
G_CALLBACK (ide_layout_stack_notify_visible_child),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]