mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 00:48:43 +03:00
Fix some bugs
This commit is contained in:
@@ -387,11 +387,14 @@ void SpinInput::onTextLostFocus(wxEvent &event)
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
//B49
|
||||
void SpinInput::onTextEnter(wxCommandEvent &event)
|
||||
{
|
||||
long value;
|
||||
if (!text_ctrl->GetValue().ToLong(&value))
|
||||
if (!text_ctrl->GetValue().ToLong(&value)) {
|
||||
value = val;
|
||||
text_ctrl->SetValue(wxString::FromDouble(value));
|
||||
}
|
||||
|
||||
if (value != val) {
|
||||
SetValue(value);
|
||||
@@ -584,12 +587,16 @@ void SpinInputDouble::onTextLostFocus(wxEvent &event)
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
//B49
|
||||
void SpinInputDouble::onTextEnter(wxCommandEvent &event)
|
||||
{
|
||||
double value;
|
||||
if (!text_ctrl->GetValue().ToDouble(&value))
|
||||
if (!text_ctrl->GetValue().ToDouble(&value)) {
|
||||
val = value;
|
||||
wxString str_val = wxString::FromDouble(value, digits);
|
||||
text_ctrl->SetValue(str_val);
|
||||
|
||||
}
|
||||
if (!Slic3r::is_approx(value, val)) {
|
||||
SetValue(value);
|
||||
sendSpinEvent();
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#ifndef slic3r_UI_Colors_hpp_
|
||||
#define slic3r_UI_Colors_hpp_
|
||||
|
||||
//B48
|
||||
static const int clr_border_normal = 0x646464;//0xDBDBDB;
|
||||
static const int clr_border_hovered = 0xED6B21;//0x00AE42;
|
||||
static const int clr_border_hovered = 0x4479FB;//0x00AE42;
|
||||
static const int clr_border_disabled = 0x646464;//0xDBDBDB;
|
||||
|
||||
static const int clr_background_normal_light = 0xFFFFFF;
|
||||
|
||||
Reference in New Issue
Block a user