aboutsummaryrefslogtreecommitdiff
path: root/src/WinButtonTheme.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-05-06 18:04:14 (GMT)
committermathias <mathias>2005-05-06 18:04:14 (GMT)
commit4338fbec76d8ca822dcb21c66b6d8e492ee49020 (patch)
treed99a44d5269b244e9fcea2bbddcd170ae91df6e6 /src/WinButtonTheme.cc
parent783a3903759117112e4120a5ff47b59f2a67cf06 (diff)
downloadfluxbox-4338fbec76d8ca822dcb21c66b6d8e492ee49020.zip
fluxbox-4338fbec76d8ca822dcb21c66b6d8e492ee49020.tar.bz2
Added new Buttons for the Titlebar of a Window (Mathias)
- Shade - just like the "Stick"-button Styleresources: window.shade.pixmap, window.shade.unfocus.pixmap, window.shade.pressed.pixmap window.unshade.pixmap, window.unshade.unfocus.pixmap, window.unshade.pressed.pixmap etc. - MenuIcon - click on it provides the windowmenu, if the app contains a pixmap (gvim, konqueror etc etc) the pixmap is displayed, a little menu otherwise. Styleresources: windowmenu.pixmap, windowmenu.unfocus.pixmap windowmenu.pressed.pixmap etc. Example ~/.fluxbox/init - entry: session.titlebar.left: MenuIcon Stick session.titlebar.right: Shade Minimize Maximize Close hint: if the app HAS a pixmap i use window.title.focus.pixmap (look WinButtonTheme for reference)in pixmap-based-styles. this looks excellent and dont need much extra-code to pipe that info into WinButtons.
Diffstat (limited to 'src/WinButtonTheme.cc')
-rw-r--r--src/WinButtonTheme.cc17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/WinButtonTheme.cc b/src/WinButtonTheme.cc
index 6462cbe..f4d4c24 100644
--- a/src/WinButtonTheme.cc
+++ b/src/WinButtonTheme.cc
@@ -43,6 +43,14 @@ WinButtonTheme::WinButtonTheme(int screen_num, const FbWinFrameTheme &frame_them
43 m_shade_pm(*this, "window.shade.pixmap", "Window.Shade.Pixmap"), 43 m_shade_pm(*this, "window.shade.pixmap", "Window.Shade.Pixmap"),
44 m_shade_unfocus_pm(*this, "window.shade.unfocus.pixmap", "Window.Shade.Unfocus.Pixmap"), 44 m_shade_unfocus_pm(*this, "window.shade.unfocus.pixmap", "Window.Shade.Unfocus.Pixmap"),
45 m_shade_pressed_pm(*this, "window.shade.pressed.pixmap", "Window.Shade.Pressed.Pixmap"), 45 m_shade_pressed_pm(*this, "window.shade.pressed.pixmap", "Window.Shade.Pressed.Pixmap"),
46 m_unshade_pm(*this, "window.unshade.pixmap", "Window.Unshade.Pixmap"),
47 m_unshade_unfocus_pm(*this, "window.unshade.unfocus.pixmap", "Window.Unhade.Unfocus.Pixmap"),
48 m_unshade_pressed_pm(*this, "window.unshade.pressed.pixmap", "Window.Unshade.Pressed.Pixmap"),
49 m_menuicon_pm(*this, "window.menuicon.pixmap", "Window.MenuIcon.Pixmap"),
50 m_menuicon_unfocus_pm(*this, "window.menuicon.unfocus.pixmap", "Window.MenuIcon.Unfocus.Pixmap"),
51 m_menuicon_pressed_pm(*this, "window.menuicon.pressed.pixmap", "Window.MenuIcon.Pressed.Pixmap"),
52 m_title_focus_pm(*this, "window.title.focus.pixmap", "Window.Title.Focus.Pixmap"),
53 m_title_unfocus_pm(*this, "window.title.unfocus.pixmap", "Window.Title.UnFocus.Pixmap"),
46 m_stick_pm(*this, "window.stick.pixmap", "Window.Stick.Pixmap"), 54 m_stick_pm(*this, "window.stick.pixmap", "Window.Stick.Pixmap"),
47 m_stick_unfocus_pm(*this, "window.stick.unfocus.pixmap", "Window.Stick.Unfocus.Pixmap"), 55 m_stick_unfocus_pm(*this, "window.stick.unfocus.pixmap", "Window.Stick.Unfocus.Pixmap"),
48 m_stick_pressed_pm(*this, "window.stick.pressed.pixmap", "Window.Stick.Pressed.Pixmap"), 56 m_stick_pressed_pm(*this, "window.stick.pressed.pixmap", "Window.Stick.Pressed.Pixmap"),
@@ -70,7 +78,7 @@ void WinButtonTheme::reconfigTheme() {
70 m_close_pm->scale(size, size); 78 m_close_pm->scale(size, size);
71 m_close_unfocus_pm->scale(size, size); 79 m_close_unfocus_pm->scale(size, size);
72 m_close_pressed_pm->scale(size, size); 80 m_close_pressed_pm->scale(size, size);
73 81
74 m_maximize_pm->scale(size, size); 82 m_maximize_pm->scale(size, size);
75 m_maximize_unfocus_pm->scale(size, size); 83 m_maximize_unfocus_pm->scale(size, size);
76 m_maximize_pressed_pm->scale(size, size); 84 m_maximize_pressed_pm->scale(size, size);
@@ -83,6 +91,13 @@ void WinButtonTheme::reconfigTheme() {
83 m_shade_unfocus_pm->scale(size, size); 91 m_shade_unfocus_pm->scale(size, size);
84 m_shade_pressed_pm->scale(size, size); 92 m_shade_pressed_pm->scale(size, size);
85 93
94 m_unshade_pm->scale(size, size);
95 m_unshade_unfocus_pm->scale(size, size);
96 m_unshade_pressed_pm->scale(size, size);
97
98 m_title_focus_pm->scale(size, size);
99 m_title_unfocus_pm->scale(size, size);
100
86 m_stick_pm->scale(size, size); 101 m_stick_pm->scale(size, size);
87 m_stick_unfocus_pm->scale(size, size); 102 m_stick_unfocus_pm->scale(size, size);
88 m_stick_pressed_pm->scale(size, size); 103 m_stick_pressed_pm->scale(size, size);