aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authorakir <akir>2004-10-22 09:43:53 (GMT)
committerakir <akir>2004-10-22 09:43:53 (GMT)
commitd1a9c036b2d7fa403411b67d7c894177775f5239 (patch)
tree321ccf0e21e4333920d7b3c41119a84e07e3ef33 /src/FbWinFrame.cc
parent769ab5e94080c67585a820f5aff348216da8a946 (diff)
downloadfluxbox_pavel-d1a9c036b2d7fa403411b67d7c894177775f5239.zip
fluxbox_pavel-d1a9c036b2d7fa403411b67d7c894177775f5239.tar.bz2
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."
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc11
1 files 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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrame.cc,v 1.80 2004/10/10 16:12:48 akir Exp $ 22// $Id: FbWinFrame.cc,v 1.81 2004/10/22 09:43:53 akir Exp $
23 23
24#include "FbWinFrame.hh" 24#include "FbWinFrame.hh"
25 25
@@ -941,6 +941,12 @@ void FbWinFrame::renderTitlebar() {
941 m_titlebar.setAlpha(alpha); 941 m_titlebar.setAlpha(alpha);
942 m_label.setAlpha(alpha); 942 m_label.setAlpha(alpha);
943 943
944 LabelList::iterator btn_it = m_labelbuttons.begin();
945 LabelList::iterator btn_it_end = m_labelbuttons.end();
946 for (; btn_it != btn_it_end; ++btn_it) {
947 (*btn_it)->setAlpha(alpha);
948 }
949
944 renderLabelButtons(); 950 renderLabelButtons();
945 redrawTitlebar(); 951 redrawTitlebar();
946} 952}
@@ -1235,7 +1241,6 @@ void FbWinFrame::renderButtonFocus(FbTk::TextButton &button) {
1235 button.setGC(theme().labelTextFocusGC()); 1241 button.setGC(theme().labelTextFocusGC());
1236 button.setJustify(theme().justify()); 1242 button.setJustify(theme().justify());
1237 button.setBorderWidth(1); 1243 button.setBorderWidth(1);
1238 button.setAlpha(theme().focusedAlpha());
1239 1244
1240 if (m_label_focused_pm != 0) { 1245 if (m_label_focused_pm != 0) {
1241 // already set 1246 // already set
@@ -1251,7 +1256,6 @@ void FbWinFrame::renderButtonActive(FbTk::TextButton &button) {
1251 button.setGC(theme().labelTextActiveGC()); 1256 button.setGC(theme().labelTextActiveGC());
1252 button.setJustify(theme().justify()); 1257 button.setJustify(theme().justify());
1253 button.setBorderWidth(1); 1258 button.setBorderWidth(1);
1254 button.setAlpha(theme().focusedAlpha());
1255 1259
1256 if (m_label_active_pm != 0) { 1260 if (m_label_active_pm != 0) {
1257 // already set 1261 // already set
@@ -1267,7 +1271,6 @@ void FbWinFrame::renderButtonUnfocus(FbTk::TextButton &button) {
1267 button.setGC(theme().labelTextUnfocusGC()); 1271 button.setGC(theme().labelTextUnfocusGC());
1268 button.setJustify(theme().justify()); 1272 button.setJustify(theme().justify());
1269 button.setBorderWidth(1); 1273 button.setBorderWidth(1);
1270 button.setAlpha(theme().unfocusedAlpha());
1271 1274
1272 if (m_label_unfocused_pm != 0) { 1275 if (m_label_unfocused_pm != 0) {
1273 // already set 1276 // already set