From f3aa6bc2aebc6c45c2f902ac6230c57ea0101f25 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 26 Feb 2015 10:01:53 -0300 Subject: [PATCH] Fix the DevConsole view style --- src/app/ui/devconsole_view.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/ui/devconsole_view.cpp b/src/app/ui/devconsole_view.cpp index 1a2aa8c51..774372a33 100644 --- a/src/app/ui/devconsole_view.cpp +++ b/src/app/ui/devconsole_view.cpp @@ -12,6 +12,8 @@ #include "app/ui/devconsole_view.h" #include "app/app_menus.h" +#include "app/ui/skin/skin_style_property.h" +#include "app/ui/skin/skin_theme.h" #include "app/ui/workspace.h" #include "ui/entry.h" #include "ui/message.h" @@ -22,6 +24,7 @@ namespace app { using namespace ui; +using namespace app::skin; class DevConsoleView::CommmandEntry : public Entry { public: @@ -62,16 +65,20 @@ DevConsoleView::DevConsoleView() , m_label(">") , m_entry(new CommmandEntry) { + SkinTheme* theme = static_cast(getTheme()); + addChild(&m_view); addChild(&m_bottomBox); m_bottomBox.addChild(&m_label); m_bottomBox.addChild(m_entry); + m_view.setProperty(SkinStylePropertyPtr( + new SkinStyleProperty(theme->styles.workspaceView()))); + m_view.attachToView(&m_textBox); m_view.setExpansive(true); m_entry->setExpansive(true); - m_entry->ExecuteCommand.connect(&DevConsoleView::onExecuteCommand, this); }