21class API_AUI_VIEWS AStylesheet {
24 bool mIgnoreRules =
false;
28 AStylesheet(std::initializer_list<ass::Rule> rules) {
32 void addRules(std::initializer_list<ass::Rule> rules) {
36 for (
auto& constRule : rules) {
37 auto& rule =
const_cast<ass::Rule&
>(constRule);
38 mRules << std::move(rule);
54 mRules << std::forward<ass::Rule>(r);
57 void setIgnoreRules(
bool ignoreRules) {
58 mIgnoreRules = ignoreRules;
66 static AColor getOsThemeColor();
68 static AStylesheet& global();
71 mRules = std::move(rules);