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

Go to the source code of this file.

Functions

static std::string usb_live_resolve_theme_css ()

Function Documentation

◆ usb_live_resolve_theme_css()

std::string usb_live_resolve_theme_css ( )
static

Definition at line 30 of file LiveScanDialog.cpp.

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

References usb_live_resolve_theme_css().

Referenced by LiveScanDialog::LiveScanDialog(), and usb_live_resolve_theme_css().