From e4cf865ddeb04d0bc880024a9f1fffbc2cf081b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 14 Nov 2016 11:19:00 +0100 Subject: [PATCH] [apps] Improve the drawing of boxes (variable and toolbox) Change-Id: If5cc51c33e994b09cea9c873502e238c28a43608 --- apps/node_navigation_controller.cpp | 2 +- escher/include/escher/palette.h | 1 + escher/src/palette.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/node_navigation_controller.cpp b/apps/node_navigation_controller.cpp index cfcefd50e..0b08f38f4 100644 --- a/apps/node_navigation_controller.cpp +++ b/apps/node_navigation_controller.cpp @@ -65,7 +65,7 @@ void NodeNavigationController::Stack::resetStack() { /* NodeNavigationController */ NodeNavigationController::NodeNavigationController() : - StackViewController(nullptr, &m_listViewController, true), + StackViewController(nullptr, &m_listViewController, true, KDColorWhite, Palette::BoxTitleBackgroundColor, Palette::BoxTitleBackgroundColor), m_listViewController(NodeListViewController(this)) { } diff --git a/escher/include/escher/palette.h b/escher/include/escher/palette.h index ff49f8966..7158205f9 100644 --- a/escher/include/escher/palette.h +++ b/escher/include/escher/palette.h @@ -10,6 +10,7 @@ public: constexpr static KDColor CellBackgroundColor = KDColor(0xFCFCFC); constexpr static KDColor FocusCellBackgroundColor = KDColor(0xBFD3EB); constexpr static KDColor DesactiveTextColor = KDColor(0x646464); + constexpr static KDColor BoxTitleBackgroundColor = KDColor(0x656976); }; #endif \ No newline at end of file diff --git a/escher/src/palette.cpp b/escher/src/palette.cpp index e37babeb8..56e3c6868 100644 --- a/escher/src/palette.cpp +++ b/escher/src/palette.cpp @@ -5,3 +5,4 @@ constexpr KDColor Palette::BackgroundColor; constexpr KDColor Palette::CellBackgroundColor; constexpr KDColor Palette::FocusCellBackgroundColor; constexpr KDColor Palette::DesactiveTextColor; +constexpr KDColor Palette::BoxTitleBackgroundColor;