all repos — fluxbox @ 5935013854c0f4a5dd865b3f567ef3dcf2e8845a

custom fork of the fluxbox windowmanager

copy label unfocus to label active instead of trying loading it from the database again
fluxgen fluxgen
commit

5935013854c0f4a5dd865b3f567ef3dcf2e8845a

parent

c9ff8760caaebaba3be3e1750bb6fce0a65bade1

1 files changed, 5 insertions(+), 11 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.15 2003/12/10 21:40:22 fluxgen Exp $ +// $Id: FbWinFrameTheme.cc,v 1.16 2004/01/02 13:04:26 fluxgen Exp $ #include "FbWinFrameTheme.hh" #include "App.hh"

@@ -102,16 +102,13 @@ return FbTk::ThemeManager::instance().loadItem(item, "bevelWidth", "bevelWidth");

else if (item.name() == "window.handleWidth") return FbTk::ThemeManager::instance().loadItem(item, "handleWidth", "HandleWidth"); else if (item.name() == "window.label.active") { - // special case for textures since they're using .load() - FbTk::ThemeItem<FbTk::Texture> tmp_item(m_label_active.theme(), - "window.label.unfocus", "Window.Label.Unfocus"); - tmp_item.load(); // copy texture - *m_label_active = *tmp_item; + *m_label_active = *m_label_unfocus; return true; + } else if (item.name() == "window.label.active.textColor") { + return FbTk::ThemeManager::instance().loadItem(item, "window.label.unfocus.textColor", + "Window.Label.Unfocus.TextColor"); } - else if (item.name() == "window.label.active.textColor") - return FbTk::ThemeManager::instance().loadItem(item, "window.label.unfocus.textColor", "Window.Label.Unfocus.TextColor"); return false;

@@ -138,8 +135,5 @@ m_label_text_unfocus_gc.setForeground(*m_label_unfocus_color);

m_label_text_active_gc.setForeground(*m_label_active_color); m_button_pic_focus_gc.setForeground(*m_button_focus_color); m_button_pic_unfocus_gc.setForeground(*m_button_unfocus_color); - - // notify listeners - m_theme_change.notify(); }