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

Go to the source code of this file.

Functions

static std::string resolve_theme_css ()

Function Documentation

◆ resolve_theme_css()

std::string resolve_theme_css ( )
static

Definition at line 31 of file AlertWindowRealtime.cpp.

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

References resolve_theme_css().

Referenced by AlertWindowRealtime::AlertWindowRealtime(), resolve_theme_css(), resolve_theme_css(), and resolve_theme_css().