Skip to content
API Documentation
BastionGuard™
ScanPromptWindow.cpp File Reference

Go to the source code of this file.

Functions

static std::string usb_prompt_resolve_theme_css ()

Function Documentation

◆ usb_prompt_resolve_theme_css()

std::string usb_prompt_resolve_theme_css ( )
static

Definition at line 33 of file ScanPromptWindow.cpp.

33 {
34 const std::string conf =
35 Glib::get_home_dir() + "/.config/BastionGuard/theme.conf";
36 std::ifstream tf(conf);
37 std::string theme;
38 if (tf >> theme && theme == "dark")
39 return "BastionGuard-dark.css";
40 return "BastionGuard.css";
41}

References usb_prompt_resolve_theme_css().

Referenced by ScanPromptWindow::ScanPromptWindow(), and usb_prompt_resolve_theme_css().