From aa520f4f7c8ce466368b9c88bf2473318582064f Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 10 Mar 2018 23:22:58 +0000 Subject: [PATCH] Add statusbar pref to themes --- src/config/theme.c | 10 ++++++++++ themes/boothj5 | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/src/config/theme.c b/src/config/theme.c index 9d28f421..24dbc9ae 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -407,6 +407,8 @@ _load_preferences(void) _set_boolean_preference("intype", PREF_INTYPE); _set_boolean_preference("enc.warn", PREF_ENC_WARN); _set_boolean_preference("tls.show", PREF_TLS_SHOW); + _set_boolean_preference("statusbar.show.name", PREF_STATUSBAR_SHOW_NAME); + _set_boolean_preference("statusbar.show.nuumber", PREF_STATUSBAR_SHOW_NUMBER); _set_string_preference("time.console", PREF_TIME_CONSOLE); _set_string_preference("time.chat", PREF_TIME_CHAT); @@ -431,6 +433,14 @@ _load_preferences(void) _set_string_preference("roster.rooms.by", PREF_ROSTER_ROOMS_BY); _set_string_preference("roster.private", PREF_ROSTER_PRIVATE); _set_string_preference("roster.count", PREF_ROSTER_COUNT); + _set_string_preference("statusbar.self", PREF_STATUSBAR_SELF); + _set_string_preference("statusbar.chat", PREF_STATUSBAR_CHAT); + _set_string_preference("statusbar.room", PREF_STATUSBAR_ROOM); + + if (g_key_file_has_key(theme, "ui", "statusbar.tabs", NULL)) { + gint tabs_size = g_key_file_get_integer(theme, "ui", "statusbar.tabs", NULL); + prefs_set_statusbartabs(tabs_size); + } if (g_key_file_has_key(theme, "ui", "occupants.size", NULL)) { gint occupants_size = g_key_file_get_integer(theme, "ui", "occupants.size", NULL); diff --git a/themes/boothj5 b/themes/boothj5 index b97a4499..2f9a94e0 100644 --- a/themes/boothj5 +++ b/themes/boothj5 @@ -142,4 +142,10 @@ titlebar.position=1 mainwin.position=2 statusbar.position=3 inputwin.position=4 +statusbar.self=user +statusbar.chat=user +statusbar.room=room +statusbar.tabs=8 +statusbar.show.name=true +statusbar.show.number=true