aboutsummaryrefslogtreecommitdiff
path: root/src/ui/style/StyleRule.cpp
blob: 4a5ecf7e8b3cf5d342ea536e62fe42d7b31b661b (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "cru/ui/style/StyleRule.hpp"

namespace cru::ui::style {
bool StyleRule::CheckAndApply(controls::Control *control) const {
  auto active = condition_->Judge(control);
  if (active) {
    styler_->Apply(control);
  }
  return active;
}
}  // namespace cru::ui::style