all repos — fluxbox @ be57c0510d8b974f60644d425138d818097bd5b0

custom fork of the fluxbox windowmanager

Updated text alignment
fluxgen fluxgen
commit

be57c0510d8b974f60644d425138d818097bd5b0

parent

5292c3e7ad5f2e198e450709fb4d0c16f2a36025

1 files changed, 24 insertions(+), 24 deletions(-)

jump to
M src/Theme.ccsrc/Theme.cc

@@ -271,7 +271,7 @@ if (m_windowstyle.tab.font.fontstruct)

XFreeFont(m_display, m_windowstyle.tab.font.fontstruct); if (m_windowstyle.tab.rot_font) - XRotUnloadFont(m_display, m_windowstyle.tab.rot_font); + Misc::XRotUnloadFont(m_display, m_windowstyle.tab.rot_font); XFreeGC(m_display, m_windowstyle.tab.l_text_focus_gc);

@@ -346,27 +346,27 @@ if (XrmGetResource(m_database, "menu.title.justify",

"Menu.Title.Justify", &value_type, &value)) { if (strstr(value.addr, "right") || strstr(value.addr, "Right")) - m_menustyle.titlefont.justify = FFont::Right; + m_menustyle.titlefont.justify = Misc::Font::RIGHT; else if (strstr(value.addr, "center") || strstr(value.addr, "Center")) - m_menustyle.titlefont.justify = FFont::Center; + m_menustyle.titlefont.justify = Misc::Font::CENTER; else - m_menustyle.titlefont.justify = FFont::Left; + m_menustyle.titlefont.justify = Misc::Font::LEFT; } else - m_menustyle.titlefont.justify = FFont::Left; + m_menustyle.titlefont.justify = Misc::Font::LEFT; if (XrmGetResource(m_database, "menu.frame.justify", "Menu.Frame.Justify", &value_type, &value)) { if (strstr(value.addr, "right") || strstr(value.addr, "Right")) - m_menustyle.framefont.justify = FFont::Right; + m_menustyle.framefont.justify = Misc::Font::RIGHT; else if (strstr(value.addr, "center") || strstr(value.addr, "Center")) - m_menustyle.framefont.justify = FFont::Center; + m_menustyle.framefont.justify = Misc::Font::CENTER; else - m_menustyle.framefont.justify = FFont::Left; + m_menustyle.framefont.justify = Misc::Font::LEFT; } else - m_menustyle.framefont.justify = FFont::Left; + m_menustyle.framefont.justify = Misc::Font::LEFT; if (XrmGetResource(m_database, "menu.bullet", "Menu.Bullet", &value_type, &value)) {

@@ -502,13 +502,13 @@

if (XrmGetResource(m_database, "window.justify", "Window.Justify", &value_type, &value)) { if (strstr(value.addr, "right") || strstr(value.addr, "Right")) - m_windowstyle.font.justify = FFont::Right; + m_windowstyle.font.justify = Misc::Font::RIGHT; else if (strstr(value.addr, "center") || strstr(value.addr, "Center")) - m_windowstyle.font.justify = FFont::Center; + m_windowstyle.font.justify = Misc::Font::CENTER; else - m_windowstyle.font.justify = FFont::Left; + m_windowstyle.font.justify = Misc::Font::LEFT; } else - m_windowstyle.font.justify = FFont::Left; + m_windowstyle.font.justify = Misc::Font::LEFT; }

@@ -583,22 +583,22 @@

// TODO: add extra checking if (XrmGetResource(m_database, "window.tab.font", "Window.Tab.Font", &value_type, &value)) { - if (! (m_windowstyle.tab.rot_font = XRotLoadFont(m_display, value.addr, 90.0)) ) - m_windowstyle.tab.rot_font = XRotLoadFont(m_display, "fixed", 90); + if (! (m_windowstyle.tab.rot_font = Misc::XRotLoadFont(m_display, value.addr, 90.0)) ) + m_windowstyle.tab.rot_font = Misc::XRotLoadFont(m_display, "fixed", 90); } else - m_windowstyle.tab.rot_font = XRotLoadFont(m_display, "fixed", 90); + m_windowstyle.tab.rot_font = Misc::XRotLoadFont(m_display, "fixed", 90); if (XrmGetResource(m_database, "window.tab.justify", "Window.Tab.Justify", &value_type, &value)) { if (strstr(value.addr, "right") || strstr(value.addr, "Right")) - m_windowstyle.tab.font.justify = FFont::Right; + m_windowstyle.tab.font.justify = Misc::Font::RIGHT; else if (strstr(value.addr, "center") || strstr(value.addr, "Center")) - m_windowstyle.tab.font.justify = FFont::Center; + m_windowstyle.tab.font.justify = Misc::Font::CENTER; else - m_windowstyle.tab.font.justify = FFont::Left; + m_windowstyle.tab.font.justify = Misc::Font::LEFT; } else - m_windowstyle.tab.font.justify = FFont::Left; + m_windowstyle.tab.font.justify = Misc::Font::LEFT; }

@@ -655,13 +655,13 @@

if (XrmGetResource(m_database, "toolbar.justify", "Toolbar.Justify", &value_type, &value)) { if (strstr(value.addr, "right") || strstr(value.addr, "Right")) - m_toolbarstyle.font.justify = FFont::Right; + m_toolbarstyle.font.justify = Misc::Font::RIGHT; else if (strstr(value.addr, "center") || strstr(value.addr, "Center")) - m_toolbarstyle.font.justify = FFont::Center; + m_toolbarstyle.font.justify = Misc::Font::CENTER; else - m_toolbarstyle.font.justify = FFont::Left; + m_toolbarstyle.font.justify = Misc::Font::LEFT; } else - m_toolbarstyle.font.justify = FFont::Left; + m_toolbarstyle.font.justify = Misc::Font::LEFT; }