diff options
-rw-r--r-- | config/mimetype.toml | 1 | ||||
-rw-r--r-- | src/joshuto/ui.rs | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/config/mimetype.toml b/config/mimetype.toml index d204b65..55c5400 100644 --- a/config/mimetype.toml +++ b/config/mimetype.toml @@ -12,6 +12,7 @@ ["feh"] ] "image/png" = [ + ["qimgv"], ["feh", "-F"] ] "text/plain" = [ diff --git a/src/joshuto/ui.rs b/src/joshuto/ui.rs index c209882..b0fed96 100644 --- a/src/joshuto/ui.rs +++ b/src/joshuto/ui.rs @@ -82,10 +82,12 @@ pub fn wprint_path(win: &structs::JoshutoWindow, username: &str, format!("{}@{} ", username, hostname).as_str()); ncurses::wattroff(win.win, ncurses::COLOR_PAIR(EXEC_COLOR)); + ncurses::wattron(win.win, ncurses::COLOR_PAIR(DIR_COLOR)); ncurses::waddstr(win.win, path_str); - ncurses::wattroff(win.win, ncurses::A_BOLD()); ncurses::waddstr(win.win, "/"); + ncurses::wattroff(win.win, ncurses::COLOR_PAIR(DIR_COLOR)); ncurses::waddstr(win.win, file_name); + ncurses::wattroff(win.win, ncurses::A_BOLD()); ncurses::wnoutrefresh(win.win); } |