aboutsummaryrefslogtreecommitdiff
path: root/ui-curses.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-14 17:36:41 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-15 12:56:56 +0100
commite29a0da9deef521694247421e82448c0a9ab3d73 (patch)
treefa38c549392f428372f36e22b49b05caadae315a /ui-curses.c
parentb79da95d4b97125de10e3dc66a88bc475e23b4d3 (diff)
downloadvis-e29a0da9deef521694247421e82448c0a9ab3d73.tar.gz
vis-e29a0da9deef521694247421e82448c0a9ab3d73.tar.xz
vis: move initial theme loading code to lua
Diffstat (limited to 'ui-curses.c')
-rw-r--r--ui-curses.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ui-curses.c b/ui-curses.c
index d9981e0..b8f1e05 100644
--- a/ui-curses.c
+++ b/ui-curses.c
@@ -1055,16 +1055,6 @@ static bool ui_init(Ui *ui, Vis *vis) {
}
static bool ui_start(Ui *ui) {
- Vis *vis = ((UiCurses*)ui)->vis;
- const char *theme = getenv("VIS_THEME");
- if (theme && theme[0]) {
- if (!vis_theme_load(vis, theme))
- vis_info_show(vis, "Warning: failed to load theme `%s'", theme);
- } else {
- theme = COLORS <= 16 ? "default-16" : "default-256";
- if (!vis_theme_load(vis, theme))
- vis_info_show(vis, "Warning: failed to load theme `%s' set $VIS_PATH", theme);
- }
return true;
}