diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/area_popup.cpp | 6 | ||||
| -rw-r--r-- | src/area_popup.h | 2 |
2 files changed, 7 insertions, 1 deletions
| diff --git a/src/area_popup.cpp b/src/area_popup.cpp index 9cc1208..2ba9586 100644 --- a/src/area_popup.cpp +++ b/src/area_popup.cpp | |||
| @@ -156,7 +156,7 @@ void AreaPopup::UpdateIndicators() { | |||
| 156 | mem_dc.SetTextForeground(*text_color); | 156 | mem_dc.SetTextForeground(*text_color); |
| 157 | 157 | ||
| 158 | bool checked = reachable && AP_IsPaintingChecked(painting.internal_id); | 158 | bool checked = reachable && AP_IsPaintingChecked(painting.internal_id); |
| 159 | const wxBitmap* eye_ptr = checked ? checked_eye_ : unchecked_eye_; | 159 | const wxBitmap* eye_ptr = checked ? checked_owl_ : unchecked_owl_; |
| 160 | mem_dc.DrawBitmap(*eye_ptr, {FromDIP(10), cur_height}); | 160 | mem_dc.DrawBitmap(*eye_ptr, {FromDIP(10), cur_height}); |
| 161 | 161 | ||
| 162 | wxSize item_extent = mem_dc.GetTextExtent(painting.display_name); | 162 | wxSize item_extent = mem_dc.GetTextExtent(painting.display_name); |
| @@ -187,4 +187,8 @@ void AreaPopup::LoadIcons() { | |||
| 187 | FromDIP(wxSize{32, 32})); | 187 | FromDIP(wxSize{32, 32})); |
| 188 | checked_eye_ = | 188 | checked_eye_ = |
| 189 | GetTheIconCache().GetIcon("assets/checked.png", FromDIP(wxSize{32, 32})); | 189 | GetTheIconCache().GetIcon("assets/checked.png", FromDIP(wxSize{32, 32})); |
| 190 | unchecked_owl_ = | ||
| 191 | GetTheIconCache().GetIcon("assets/owl.png", FromDIP(wxSize{32, 32})); | ||
| 192 | checked_owl_ = GetTheIconCache().GetIcon("assets/checked_owl.png", | ||
| 193 | FromDIP(wxSize{32, 32})); | ||
| 190 | } | 194 | } |
| diff --git a/src/area_popup.h b/src/area_popup.h index d2d50b9..2401e4e 100644 --- a/src/area_popup.h +++ b/src/area_popup.h | |||
| @@ -23,6 +23,8 @@ class AreaPopup : public wxScrolledCanvas { | |||
| 23 | 23 | ||
| 24 | const wxBitmap* unchecked_eye_; | 24 | const wxBitmap* unchecked_eye_; |
| 25 | const wxBitmap* checked_eye_; | 25 | const wxBitmap* checked_eye_; |
| 26 | const wxBitmap* unchecked_owl_; | ||
| 27 | const wxBitmap* checked_owl_; | ||
| 26 | 28 | ||
| 27 | wxBitmap rendered_; | 29 | wxBitmap rendered_; |
| 28 | }; | 30 | }; |
