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

Go to the source code of this file.

Functions

static std::string firewall_choice_resolve_theme_css ()

Function Documentation

◆ firewall_choice_resolve_theme_css()

std::string firewall_choice_resolve_theme_css ( )
static

Definition at line 33 of file FirewallChoiceDialog.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 firewall_choice_resolve_theme_css().

Referenced by firewall_choice_resolve_theme_css(), and FirewallChoiceDialog::FirewallChoiceDialog().