From 67bbf9ff2c7efd0b78932f7460c8c3720c80f631 Mon Sep 17 00:00:00 2001 From: rathnor Date: Thu, 11 Dec 2003 12:48:39 +0000 Subject: fix up label transparency --- src/FbWinFrame.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 3270525..4ceaffe 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.64 2003/12/09 08:48:08 rathnor Exp $ +// $Id: FbWinFrame.cc,v 1.65 2003/12/11 12:48:39 rathnor Exp $ #include "FbWinFrame.hh" @@ -743,8 +743,10 @@ void FbWinFrame::redrawTitle() { (*btn_it)->moveResize(last_x - border_width, - border_width, button_width + extra, label().height() + border_width); - if (isVisible()) + if (isVisible()) { (*btn_it)->clear(); + (*btn_it)->updateTransparent(); + } } if (isVisible()) { @@ -1159,6 +1161,7 @@ void FbWinFrame::renderButtonFocus(FbTk::TextButton &button) { button.setBackgroundColor(m_label_focused_color); button.clear(); + button.updateTransparent(); } void FbWinFrame::renderButtonActive(FbTk::TextButton &button) { @@ -1179,6 +1182,7 @@ void FbWinFrame::renderButtonActive(FbTk::TextButton &button) { button.setBackgroundColor(m_label_active_color); button.clear(); + button.updateTransparent(); } void FbWinFrame::renderButtonUnfocus(FbTk::TextButton &button) { @@ -1196,6 +1200,7 @@ void FbWinFrame::renderButtonUnfocus(FbTk::TextButton &button) { button.setBackgroundColor(m_label_unfocused_color); button.clear(); + button.updateTransparent(); } void FbWinFrame::updateTransparent() { -- cgit v0.11.2