mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Custom control : Bug fixing
* OG_CustomCtrl is inherited from the wxPanel instead of the wxControl now. As a result, Tab-key is working now for the fields inside the custom control * Open localized web-page if any exist for labels + Fixed update of icons inside the PresetComboBoxes after switching between Dark/Light modes
This commit is contained in:
parent
32b8be600c
commit
b2700a8ac6
4 changed files with 18 additions and 9 deletions
|
@ -349,6 +349,8 @@ wxBitmap* PresetComboBox::get_bmp( std::string bitmap_key, bool wide_icons, con
|
|||
|
||||
bitmap_key += is_system ? ",syst" : ",nsyst";
|
||||
bitmap_key += ",h" + std::to_string(icon_height);
|
||||
if (wxGetApp().dark_mode())
|
||||
bitmap_key += ",dark";
|
||||
|
||||
wxBitmap* bmp = bitmap_cache().find(bitmap_key);
|
||||
if (bmp == nullptr) {
|
||||
|
@ -393,6 +395,8 @@ wxBitmap* PresetComboBox::get_bmp( std::string bitmap_key, const std::string& m
|
|||
bitmap_key += is_compatible ? ",cmpt" : ",ncmpt";
|
||||
bitmap_key += is_system ? ",syst" : ",nsyst";
|
||||
bitmap_key += ",h" + std::to_string(icon_height);
|
||||
if (wxGetApp().dark_mode())
|
||||
bitmap_key += ",dark";
|
||||
|
||||
wxBitmap* bmp = bitmap_cache().find(bitmap_key);
|
||||
if (bmp == nullptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue