mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
parent
091ab68811
commit
d1dfcbe168
2 changed files with 13 additions and 28 deletions
|
@ -241,11 +241,18 @@ AboutDialog::AboutDialog()
|
|||
|
||||
// version
|
||||
{
|
||||
|
||||
auto _build_string_font = Label::Body_10;
|
||||
// _build_string_font.SetStyle(wxFONTSTYLE_ITALIC);
|
||||
|
||||
vesizer->Add(0, FromDIP(165), 1, wxEXPAND, FromDIP(5));
|
||||
auto version_string = _L("Orca Slicer ") + " " + std::string(SoftFever_VERSION);
|
||||
auto version_string = _L("Orca Slicer") + " " + std::string(SoftFever_VERSION);
|
||||
wxStaticText* version = new wxStaticText(this, wxID_ANY, version_string.c_str(), wxDefaultPosition, wxDefaultSize);
|
||||
wxStaticText* bs_version = new wxStaticText(this, wxID_ANY, wxString::Format("Based on PrusaSlicer and BambuStudio"), wxDefaultPosition, wxDefaultSize);
|
||||
bs_version->SetFont(Label::Body_12);
|
||||
wxStaticText* credits_string = new wxStaticText(this, wxID_ANY,
|
||||
wxString::Format("Build %s.\nOrcaSlicer is based on PrusaSlicer and BambuStudio",
|
||||
std::string(GIT_COMMIT_HASH)),
|
||||
wxDefaultPosition, wxDefaultSize);
|
||||
credits_string->SetFont(_build_string_font);
|
||||
wxFont version_font = GetFont();
|
||||
#ifdef __WXMSW__
|
||||
version_font.SetPointSize(version_font.GetPointSize()-1);
|
||||
|
@ -255,24 +262,12 @@ AboutDialog::AboutDialog()
|
|||
version_font.SetPointSize(FromDIP(16));
|
||||
version->SetFont(version_font);
|
||||
version->SetForegroundColour(wxColour("#FFFFFD"));
|
||||
bs_version->SetForegroundColour(wxColour("#FFFFFD"));
|
||||
credits_string->SetForegroundColour(wxColour("#FFFFFD"));
|
||||
version->SetBackgroundColour(wxColour("#4d4d4d"));
|
||||
bs_version->SetBackgroundColour(wxColour("#4d4d4d"));
|
||||
|
||||
#ifdef SNAPSHOT_BUILD
|
||||
auto build_string = _L("build") + " " + std::string(GIT_COMMIT_HASH);
|
||||
wxStaticText* version_build = new wxStaticText(this, wxID_ANY, build_string.c_str(), wxDefaultPosition, wxDefaultSize);
|
||||
version_build->SetFont(Label::Body_12);
|
||||
|
||||
version_build->SetForegroundColour(wxColour("#FFFFFD"));
|
||||
version_build->SetBackgroundColour(wxColour("#4d4d4d"));
|
||||
#endif
|
||||
credits_string->SetBackgroundColour(wxColour("#4d4d4d"));
|
||||
|
||||
vesizer->Add(version, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, FromDIP(5));
|
||||
#ifdef SNAPSHOT_BUILD
|
||||
vesizer->Add(version_build, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, FromDIP(5));
|
||||
#endif
|
||||
vesizer->Add(bs_version, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, FromDIP(5));
|
||||
vesizer->Add(credits_string, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, FromDIP(5));
|
||||
// #if BBL_INTERNAL_TESTING
|
||||
// wxString build_time = wxString::Format("Build Time: %s", std::string(SLIC3R_BUILD_TIME));
|
||||
// wxStaticText* build_time_text = new wxStaticText(this, wxID_ANY, build_time, wxDefaultPosition, wxDefaultSize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue