about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2018-03-10 23:22:58 +0000
committerJames Booth <boothj5@gmail.com>2018-03-10 23:22:58 +0000
commitaa520f4f7c8ce466368b9c88bf2473318582064f (patch)
treec88bf28519a94b75f05e4cb26233afff8fad9339
parent8718b368a1ba9a2ab4f2561c9e2df5bee6a895be (diff)
downloadprofani-tty-aa520f4f7c8ce466368b9c88bf2473318582064f.tar.gz
Add statusbar pref to themes
-rw-r--r--src/config/theme.c10
-rw-r--r--themes/boothj56
2 files changed, 16 insertions, 0 deletions
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