mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Implemented blinking icon to highlight a searched field
This commit is contained in:
parent
2317437ede
commit
752083cbe6
6 changed files with 59 additions and 18 deletions
|
@ -191,6 +191,19 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
void invalidate_attention_bmp() const {
|
||||
m_find_image->SetBitmap(wxNullBitmap);
|
||||
}
|
||||
|
||||
void activate_attention_bmp() const {
|
||||
m_find_image->SetBitmap(m_attention_bmp.bmp());
|
||||
}
|
||||
|
||||
void blink_attention_bmp() const {
|
||||
bool is_shown = m_find_image->IsShown();
|
||||
m_find_image->Show(!is_shown);
|
||||
}
|
||||
|
||||
bool set_label_colour_force(const wxColour *clr) {
|
||||
if (m_Label == nullptr) return false;
|
||||
m_Label->SetForegroundColour(*clr);
|
||||
|
@ -240,6 +253,9 @@ protected:
|
|||
const ScalableBitmap* m_undo_to_sys_bitmap = nullptr;
|
||||
const wxString* m_undo_to_sys_tooltip = nullptr;
|
||||
|
||||
ScalableBitmap m_attention_bmp;
|
||||
wxStaticBitmap* m_find_image{ nullptr };
|
||||
|
||||
wxStaticText* m_Label = nullptr;
|
||||
// Color for Label. The wxColour will be updated only if the new wxColour pointer differs from the currently rendered one.
|
||||
const wxColour* m_label_color = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue