mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-02 16:59:48 +02:00
Implemented blinking icon to highlight a searched field
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user