FIX: button focused state

Change-Id: Ieab02661c8f2e406b5bf5f156d9142efbe76d1cf
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2022-08-05 16:11:42 +08:00
1 parent 09d5651c39
commit ec59446e44
5 files changed
+19 -4

No files matched your search

+3 -2
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));
}