From d1a9c036b2d7fa403411b67d7c894177775f5239 Mon Sep 17 00:00:00 2001 From: akir Date: Fri, 22 Oct 2004 09:43:53 +0000 Subject: closes bug #1039658 " When you choose a transparency of less than 255 for a unfocused window, the window title f the unfocused window will not be transparent. Only the buttons will." --- src/FbWinFrame.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 1ebb068..f05cdfa 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrame.cc,v 1.80 2004/10/10 16:12:48 akir Exp $ +// $Id: FbWinFrame.cc,v 1.81 2004/10/22 09:43:53 akir Exp $ #include "FbWinFrame.hh" @@ -941,6 +941,12 @@ void FbWinFrame::renderTitlebar() { m_titlebar.setAlpha(alpha); m_label.setAlpha(alpha); + LabelList::iterator btn_it = m_labelbuttons.begin(); + LabelList::iterator btn_it_end = m_labelbuttons.end(); + for (; btn_it != btn_it_end; ++btn_it) { + (*btn_it)->setAlpha(alpha); + } + renderLabelButtons(); redrawTitlebar(); } @@ -1235,7 +1241,6 @@ void FbWinFrame::renderButtonFocus(FbTk::TextButton &button) { button.setGC(theme().labelTextFocusGC()); button.setJustify(theme().justify()); button.setBorderWidth(1); - button.setAlpha(theme().focusedAlpha()); if (m_label_focused_pm != 0) { // already set @@ -1251,7 +1256,6 @@ void FbWinFrame::renderButtonActive(FbTk::TextButton &button) { button.setGC(theme().labelTextActiveGC()); button.setJustify(theme().justify()); button.setBorderWidth(1); - button.setAlpha(theme().focusedAlpha()); if (m_label_active_pm != 0) { // already set @@ -1267,7 +1271,6 @@ void FbWinFrame::renderButtonUnfocus(FbTk::TextButton &button) { button.setGC(theme().labelTextUnfocusGC()); button.setJustify(theme().justify()); button.setBorderWidth(1); - button.setAlpha(theme().unfocusedAlpha()); if (m_label_unfocused_pm != 0) { // already set -- cgit v0.11.2