mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-06 02:35:13 +08:00
Manually merged Korean translation by @ulsanether
+ updated MO for Korean translation + set small size for mode icons
This commit is contained in:
parent
cd88643558
commit
94d3ca7016
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -257,10 +257,9 @@ void Tab::create_preset_tab()
|
|||||||
|
|
||||||
// Fill cache for mode bitmaps
|
// Fill cache for mode bitmaps
|
||||||
m_mode_bitmap_cache.reserve(3);
|
m_mode_bitmap_cache.reserve(3);
|
||||||
int icon_px = 14;
|
m_mode_bitmap_cache.push_back(ScalableBitmap(this, "mode_simple" , mode_icon_px_size()));
|
||||||
m_mode_bitmap_cache.push_back(ScalableBitmap(this, "mode_simple" , icon_px));
|
m_mode_bitmap_cache.push_back(ScalableBitmap(this, "mode_advanced", mode_icon_px_size()));
|
||||||
m_mode_bitmap_cache.push_back(ScalableBitmap(this, "mode_advanced", icon_px));
|
m_mode_bitmap_cache.push_back(ScalableBitmap(this, "mode_expert" , mode_icon_px_size()));
|
||||||
m_mode_bitmap_cache.push_back(ScalableBitmap(this, "mode_expert" , icon_px));
|
|
||||||
|
|
||||||
// Initialize the DynamicPrintConfig by default keys/values.
|
// Initialize the DynamicPrintConfig by default keys/values.
|
||||||
build();
|
build();
|
||||||
|
@ -486,6 +486,15 @@ int em_unit(wxWindow* win)
|
|||||||
return Slic3r::GUI::wxGetApp().em_unit();
|
return Slic3r::GUI::wxGetApp().em_unit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int mode_icon_px_size()
|
||||||
|
{
|
||||||
|
#ifdef __APPLE__
|
||||||
|
return 10;
|
||||||
|
#else
|
||||||
|
return 12;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
// win is used to get a correct em_unit value
|
// win is used to get a correct em_unit value
|
||||||
// It's important for bitmaps of dialogs.
|
// It's important for bitmaps of dialogs.
|
||||||
// if win == nullptr, em_unit value of MainFrame will be used
|
// if win == nullptr, em_unit value of MainFrame will be used
|
||||||
@ -753,7 +762,7 @@ ModeSizer::ModeSizer(wxWindow *parent, int hgap/* = 0*/) :
|
|||||||
|
|
||||||
m_mode_btns.reserve(3);
|
m_mode_btns.reserve(3);
|
||||||
for (const auto& button : buttons) {
|
for (const auto& button : buttons) {
|
||||||
m_mode_btns.push_back(new ModeButton(parent, button.first, button.second, 14));
|
m_mode_btns.push_back(new ModeButton(parent, button.first, button.second, mode_icon_px_size()));
|
||||||
|
|
||||||
m_mode_btns.back()->Bind(wxEVT_BUTTON, std::bind(modebtnfn, std::placeholders::_1, int(m_mode_btns.size() - 1)));
|
m_mode_btns.back()->Bind(wxEVT_BUTTON, std::bind(modebtnfn, std::placeholders::_1, int(m_mode_btns.size() - 1)));
|
||||||
Add(m_mode_btns.back());
|
Add(m_mode_btns.back());
|
||||||
|
@ -45,6 +45,7 @@ class wxDialog;
|
|||||||
void edit_tooltip(wxString& tooltip);
|
void edit_tooltip(wxString& tooltip);
|
||||||
void msw_buttons_rescale(wxDialog* dlg, const int em_unit, const std::vector<int>& btn_ids);
|
void msw_buttons_rescale(wxDialog* dlg, const int em_unit, const std::vector<int>& btn_ids);
|
||||||
int em_unit(wxWindow* win);
|
int em_unit(wxWindow* win);
|
||||||
|
int mode_icon_px_size();
|
||||||
|
|
||||||
wxBitmap create_scaled_bitmap(const std::string& bmp_name, wxWindow *win = nullptr,
|
wxBitmap create_scaled_bitmap(const std::string& bmp_name, wxWindow *win = nullptr,
|
||||||
const int px_cnt = 16, const bool grayscale = false);
|
const int px_cnt = 16, const bool grayscale = false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user