Skip to content

Commit

Permalink
fix: improve focused menu bar item visibility (#17360)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and MarshallOfSound committed Mar 19, 2019
1 parent 1b8a25b commit d25be9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atom/browser/ui/views/submenu_button.cc
Expand Up @@ -37,7 +37,7 @@ SubmenuButton::SubmenuButton(const base::string16& title,

SetInkDropMode(InkDropMode::ON);
set_ink_drop_base_color(
color_utils::BlendTowardMaxContrast(background_color_, 0x61));
color_utils::BlendTowardMaxContrast(background_color_, 0x81));
}

SubmenuButton::~SubmenuButton() {}
Expand All @@ -55,6 +55,7 @@ std::unique_ptr<views::InkDrop> SubmenuButton::CreateInkDrop() {
std::unique_ptr<views::InkDropImpl> ink_drop =
views::Button::CreateDefaultInkDropImpl();
ink_drop->SetShowHighlightOnHover(false);
ink_drop->SetShowHighlightOnFocus(true);
return std::move(ink_drop);
}

Expand Down

0 comments on commit d25be9c

Please sign in to comment.