aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 8982d02..d3dd682 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -1182,11 +1182,19 @@ void FbWinFrame::renderTabContainer() {
1182 return; 1182 return;
1183 } 1183 }
1184 1184
1185 render(m_theme.labelFocusTexture(), m_tabcontainer_focused_color, 1185 const FbTk::Texture *tc_focused = &m_theme.labelFocusTexture();
1186 const FbTk::Texture *tc_unfocused = &m_theme.labelUnfocusTexture();
1187
1188 if (m_tabmode == EXTERNAL && tc_focused->type() & FbTk::Texture::PARENTRELATIVE)
1189 tc_focused = &m_theme.titleFocusTexture();
1190 if (m_tabmode == EXTERNAL && tc_unfocused->type() & FbTk::Texture::PARENTRELATIVE)
1191 tc_unfocused = &m_theme.titleUnfocusTexture();
1192
1193 render(*tc_focused, m_tabcontainer_focused_color,
1186 m_tabcontainer_focused_pm, 1194 m_tabcontainer_focused_pm,
1187 m_tab_container.width(), m_tab_container.height(), m_tab_container.orientation()); 1195 m_tab_container.width(), m_tab_container.height(), m_tab_container.orientation());
1188 1196
1189 render(m_theme.labelUnfocusTexture(), m_tabcontainer_unfocused_color, 1197 render(*tc_unfocused, m_tabcontainer_unfocused_color,
1190 m_tabcontainer_unfocused_pm, 1198 m_tabcontainer_unfocused_pm,
1191 m_tab_container.width(), m_tab_container.height(), m_tab_container.orientation()); 1199 m_tab_container.width(), m_tab_container.height(), m_tab_container.orientation());
1192 1200