From e29a0da9deef521694247421e82448c0a9ab3d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 14 Nov 2016 17:36:41 +0100 Subject: vis: move initial theme loading code to lua --- ui-curses.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'ui-curses.c') 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; } -- cgit v1.2.3