Replace mirroring_transparent.png with transparent.png

This commit is contained in:
enricoturri1966 2021-11-29 15:00:08 +01:00
parent 0b6233fc16
commit b86be7e9bf
2 changed files with 15 additions and 1 deletions

View File

@ -112,7 +112,11 @@ ObjectManipulation::ObjectManipulation(wxWindow* parent) :
// Load bitmaps to be used for the mirroring buttons:
m_mirror_bitmap_on = ScalableBitmap(parent, "mirroring_on");
m_mirror_bitmap_off = ScalableBitmap(parent, "mirroring_off");
#if ENABLE_TEXTURED_VOLUMES
m_mirror_bitmap_hidden = ScalableBitmap(parent, "transparent.png");
#else
m_mirror_bitmap_hidden = ScalableBitmap(parent, "mirroring_transparent.png");
#endif // ENABLE_TEXTURED_VOLUMES
const int border = wxOSX ? 0 : 4;
const int em = wxGetApp().em_unit();

View File

@ -443,7 +443,12 @@ FreqChangedParams::FreqChangedParams(wxWindow* parent) :
*/
auto empty_widget = [this] (wxWindow* parent) {
auto sizer = new wxBoxSizer(wxHORIZONTAL);
#if ENABLE_TEXTURED_VOLUMES
// when setting tech ENABLE_TEXTURED_VOLUMES to default remove file mirroring_transparent.png from /resources/icons folder
auto btn = new ScalableButton(parent, wxID_ANY, "transparent.png", wxEmptyString,
#else
auto btn = new ScalableButton(parent, wxID_ANY, "mirroring_transparent.png", wxEmptyString,
#endif // ENABLE_TEXTURED_VOLUMES
wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER | wxTRANSPARENT_WINDOW);
sizer->Add(btn, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, int(0.3 * wxGetApp().em_unit()));
m_empty_buttons.push_back(btn);
@ -500,8 +505,13 @@ FreqChangedParams::FreqChangedParams(wxWindow* parent) :
}
}));
#if ENABLE_TEXTURED_VOLUMES
// when setting tech ENABLE_TEXTURED_VOLUMES to default remove file mirroring_transparent.png from /resources/icons folder
auto btn = new ScalableButton(parent, wxID_ANY, "transparent.png", wxEmptyString,
#else
auto btn = new ScalableButton(parent, wxID_ANY, "mirroring_transparent.png", wxEmptyString,
wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER | wxTRANSPARENT_WINDOW);
#endif // ENABLE_TEXTURED_VOLUMES
wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER | wxTRANSPARENT_WINDOW);
sizer->Add(btn , 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT,
int(0.3 * wxGetApp().em_unit()));
m_empty_buttons.push_back(btn);