FIX: button focused state

Change-Id: Ieab02661c8f2e406b5bf5f156d9142efbe76d1cf
This commit is contained in:
chunmao.guo 2022-07-29 15:10:41 +08:00 committed by Lane.Wei
parent 09d5651c39
commit ec59446e44
5 changed files with 19 additions and 4 deletions

View file

@ -26,8 +26,9 @@ Button::Button()
, text_color(*wxBLACK)
{
background_color = StateColor(
std::make_pair(*wxLIGHT_GREY, (int) StateColor::Checked),
std::make_pair(*wxLIGHT_GREY, (int) StateColor::Hovered),
std::make_pair(0x00AE42, (int) StateColor::Checked),
std::make_pair(*wxLIGHT_GREY, (int) StateColor::Hovered),
std::make_pair(0x37EE7C, (int) StateColor::Hovered | StateColor::Checked),
std::make_pair(*wxWHITE, (int) StateColor::Normal));
}