mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH: change extruder icon colour when loading filament
Change-Id: Ifd1e9c868702352790de9ddf25f256d504875785
This commit is contained in:
parent
633d14e711
commit
d97db7e617
6 changed files with 56 additions and 0 deletions
|
@ -177,6 +177,7 @@ void StatusBasePanel::init_bitmaps()
|
|||
m_thumbnail_sdcard = ScalableBitmap(this, "monitor_sdcard_thumbnail", 120);
|
||||
//m_bitmap_camera = create_scaled_bitmap("monitor_camera", nullptr, 18);
|
||||
m_bitmap_extruder = *cache.load_png("monitor_extruder", FromDIP(28), FromDIP(70), false, false);
|
||||
m_bitmap_extruder_load = *cache.load_png("monitor_extruder_load", FromDIP(28), FromDIP(70), false, false);
|
||||
m_bitmap_sdcard_state_on = create_scaled_bitmap("sdcard_state_on", nullptr, 20);
|
||||
m_bitmap_sdcard_state_off = create_scaled_bitmap("sdcard_state_off", nullptr, 20);
|
||||
}
|
||||
|
@ -1305,6 +1306,13 @@ void StatusPanel::update(MachineObject *obj)
|
|||
update_temp_ctrl(obj);
|
||||
update_misc_ctrl(obj);
|
||||
|
||||
if (obj && obj->is_filament_at_extruder()) {
|
||||
m_bitmap_extruder_img->SetBitmap(m_bitmap_extruder_load);
|
||||
}
|
||||
else {
|
||||
m_bitmap_extruder_img->SetBitmap(m_bitmap_extruder);
|
||||
}
|
||||
|
||||
// BBS hide tasklist info
|
||||
// update_tasklist(obj);
|
||||
update_ams(obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue