all repos — fluxbox @ 44208838af27bb819a5b326607009d41c00cb943

custom fork of the fluxbox windowmanager

new theme item window.title.height, Window.Title.Height
fluxgen fluxgen
commit

44208838af27bb819a5b326607009d41c00cb943

parent

ec5c2b77a11e2762921ff4736539d4f5239b5866

2 files changed, 9 insertions(+), 5 deletions(-)

jump to
M src/FbWinFrameTheme.ccsrc/FbWinFrameTheme.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: FbWinFrameTheme.cc,v 1.8 2003/08/16 11:05:19 fluxgen Exp $ +// $Id: FbWinFrameTheme.cc,v 1.9 2003/08/22 15:02:33 fluxgen Exp $ #include "FbWinFrameTheme.hh" #include "App.hh"

@@ -59,7 +59,10 @@ m_font(*this, "window.font", "Window.Font"),

m_textjustify(*this, "window.justify", "Window.Justify"), m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"), - m_alpha(*this, "window.alpha", "Window.Alpha") { + m_alpha(*this, "window.alpha", "Window.Alpha"), + m_title_height(*this, "window.title.height", "Window.Title.Height") { + + *m_title_height = 0; // set defaults m_font->load("fixed"); *m_alpha = 255;
M src/FbWinFrameTheme.hhsrc/FbWinFrameTheme.hh

@@ -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: FbWinFrameTheme.hh,v 1.7 2003/08/04 12:49:20 fluxgen Exp $ +// $Id: FbWinFrameTheme.hh,v 1.8 2003/08/22 15:02:33 fluxgen Exp $ #ifndef FBWINFRAMETHEME_HH #define FBWINFRAMETHEME_HH

@@ -91,6 +91,7 @@ inline Shape::ShapePlace shapePlace() const { return *m_shape_place; }

unsigned char alpha() const { return *m_alpha; } + unsigned int titleHeight() const { return *m_title_height; } private: FbTk::ThemeItem<FbTk::Texture> m_label_focus, m_label_unfocus; FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus;

@@ -106,8 +107,8 @@ FbTk::ThemeItem<FbTk::Font> m_font;

FbTk::ThemeItem<FbTk::Justify> m_textjustify; FbTk::ThemeItem<Shape::ShapePlace> m_shape_place; - FbTk::ThemeItem<int> m_alpha; - + FbTk::ThemeItem<int> m_alpha, m_title_height; + GC m_label_text_focus_gc, m_label_text_unfocus_gc; GC m_button_pic_focus_gc, m_button_pic_unfocus_gc;