fix some toolbar transparency

This commit is contained in:
simonb 2006-04-17 14:32:20 +00:00
parent dd933c097c
commit 11cba508e6
3 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,8 @@
(Format: Year/Month/Day) (Format: Year/Month/Day)
Changes for 0.9.16: Changes for 0.9.16:
*06/04/17: *06/04/17:
* Fix toolbar transparency (frame and empty iconbar) (Simon)
Container.cc Toolbar.cc
* Fix display of label for dialog-type boxes (Simon) * Fix display of label for dialog-type boxes (Simon)
(only when external tabs are enabled, but not for particular window) (only when external tabs are enabled, but not for particular window)
FbWinFrame.cc FbWinFrame.cc

View file

@ -503,6 +503,7 @@ void Container::for_each(std::mem_fun_t<void, FbTk::FbWindow> function) {
} }
void Container::setAlpha(unsigned char alpha) { void Container::setAlpha(unsigned char alpha) {
FbTk::FbWindow::setAlpha(alpha);
ItemList::iterator it = m_item_list.begin(); ItemList::iterator it = m_item_list.begin();
ItemList::iterator it_end = m_item_list.end(); ItemList::iterator it_end = m_item_list.end();
for (; it != it_end; ++it) for (; it != it_end; ++it)

View file

@ -1092,6 +1092,7 @@ void Toolbar::updateAlpha() {
frame.window.setOpaque(*m_rc_alpha); frame.window.setOpaque(*m_rc_alpha);
} else { } else {
frame.window.setAlpha(*m_rc_alpha); frame.window.setAlpha(*m_rc_alpha);
frame.window.updateBackground(false);
frame.window.clear(); frame.window.clear();
ItemList::iterator item_it = m_item_list.begin(); ItemList::iterator item_it = m_item_list.begin();