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."
akir akir
1 files changed,
7 insertions(+),
4 deletions(-)
jump to
M
src/FbWinFrame.cc
→
src/FbWinFrame.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ unsigned char alpha = (m_focused?theme().focusedAlpha():theme().unfocusedAlpha());
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 @@
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 @@
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 @@
button.setGC(theme().labelTextUnfocusGC()); button.setJustify(theme().justify()); button.setBorderWidth(1); - button.setAlpha(theme().unfocusedAlpha()); if (m_label_unfocused_pm != 0) { // already set