Run IWYU. (#208)

This commit is contained in:
Arthur Sonzogni
2021-09-16 20:45:26 +02:00
committed by GitHub
parent 37b44e7557
commit 2c84f0cf1a
21 changed files with 107 additions and 100 deletions

View File

@@ -185,10 +185,10 @@ Component MenuEntry(ConstStringRef label, Ref<MenuEntryOption> option) {
private:
Element Render() override {
bool focused = Focused();
auto style = hovered_ ? (focused ? option_->style_selected_focused
: option_->style_selected)
: (focused ? option_->style_focused
: option_->style_normal);
auto style =
hovered_ ? (focused ? option_->style_selected_focused
: option_->style_selected)
: (focused ? option_->style_focused : option_->style_normal);
auto focus_management = focused ? select : nothing;
auto label = focused ? "> " + (*label_) //
: " " + (*label_);