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

This commit is contained in:
fluxgen 2003-08-22 15:02:33 +00:00
parent ec5c2b77a1
commit 44208838af
2 changed files with 9 additions and 5 deletions

View file

@ -19,7 +19,7 @@
// 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 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
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;

View file

@ -19,7 +19,7 @@
// 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 @@ public:
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 @@ private:
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;