Skip to content

Commit

Permalink
update about
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Mar 17, 2023
1 parent 158e6b3 commit e54239f
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 41 deletions.
78 changes: 53 additions & 25 deletions resources/images/BambuStudio_about.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 16 additions & 16 deletions src/slic3r/GUI/AboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ AboutDialog::AboutDialog()
wxPanel *m_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(FromDIP(560), FromDIP(237)), wxTAB_TRAVERSAL);

wxBoxSizer *panel_versizer = new wxBoxSizer(wxVERTICAL);
// wxBoxSizer *vesizer = new wxBoxSizer(wxVERTICAL);
wxBoxSizer *vesizer = new wxBoxSizer(wxVERTICAL);

m_panel->SetSizer(panel_versizer);

Expand All @@ -230,16 +230,16 @@ AboutDialog::AboutDialog()
main_sizer->Add(m_panel, 1, wxEXPAND | wxALL, 0);
main_sizer->Add(ver_sizer, 0, wxEXPAND | wxALL, 0);

// // logo
// m_logo_bitmap = ScalableBitmap(this, "BambuStudio_about", 250);
// m_logo = new wxStaticBitmap(this, wxID_ANY, m_logo_bitmap.bmp(), wxDefaultPosition,wxDefaultSize, 0);
// m_logo->SetSizer(vesizer);
// logo
m_logo_bitmap = ScalableBitmap(this, "BambuStudio_about", 250);
m_logo = new wxStaticBitmap(this, wxID_ANY, m_logo_bitmap.bmp(), wxDefaultPosition,wxDefaultSize, 0);
m_logo->SetSizer(vesizer);

// panel_versizer->Add(m_logo, 1, wxALL | wxEXPAND, 0);
panel_versizer->Add(m_logo, 1, wxALL | wxEXPAND, 0);

// version
{
panel_versizer->Add(0, FromDIP(165), 1, wxEXPAND, FromDIP(5));
vesizer->Add(0, FromDIP(165), 1, wxEXPAND, FromDIP(5));
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 BambuStudio %s",std::string(SLIC3R_VERSION)), wxDefaultPosition, wxDefaultSize);
Expand All @@ -252,22 +252,22 @@ AboutDialog::AboutDialog()
#endif
version_font.SetPointSize(FromDIP(16));
version->SetFont(version_font);
// version->SetForegroundColour(wxColour("#FFFFFD"));
// if(wxGetApp().dark_mode())
// version->SetBackgroundColour(wxColour("#00675b"));
// else
// version->SetBackgroundColour(wxColour("#009688"));

panel_versizer->Add(version, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, FromDIP(5));
panel_versizer->Add(bs_version, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, FromDIP(5));
version->SetForegroundColour(wxColour("#FFFFFD"));
bs_version->SetForegroundColour(wxColour("#FFFFFD"));
version->SetBackgroundColour(wxColour("#4d4d4d"));
bs_version->SetBackgroundColour(wxColour("#4d4d4d"));


vesizer->Add(version, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, FromDIP(5));
vesizer->Add(bs_version, 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);
// build_time_text->SetForegroundColour(wxColour("#FFFFFE"));
// build_time_text->SetBackgroundColour(wxColour("#00AF42"));
// vesizer->Add(build_time_text, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, FromDIP(5));
// #endif
panel_versizer->Add(0, 0, 1, wxEXPAND, FromDIP(5));
vesizer->Add(0, 0, 1, wxEXPAND, FromDIP(5));
}

wxBoxSizer *text_sizer_horiz = new wxBoxSizer(wxHORIZONTAL);
Expand Down

0 comments on commit e54239f

Please sign in to comment.