From a3f18e5aaf1f285cd768afa78ec6ce590f163e99 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 31 Jul 2010 13:08:13 -0300 Subject: [PATCH] Fixed minor problem with background color in Tabs widget's buttons. --- src/widgets/tabs.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/widgets/tabs.cpp b/src/widgets/tabs.cpp index d87b1a59d..585a50baa 100644 --- a/src/widgets/tabs.cpp +++ b/src/widgets/tabs.cpp @@ -378,7 +378,11 @@ bool Tabs::msg_proc(JMessage msg) } case JM_SIGNAL: - if (msg->signal.num == JI_SIGNAL_SET_FONT) { + if (msg->signal.num == JI_SIGNAL_INIT_THEME) { + m_button_left->setBgColor(theme->get_tab_selected_face_color()); + m_button_right->setBgColor(theme->get_tab_selected_face_color()); + } + else if (msg->signal.num == JI_SIGNAL_SET_FONT) { std::vector::iterator it, end = m_list_of_tabs.end(); for (it = m_list_of_tabs.begin(); it != end; ++it) {