mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Color & Icon fixes / improvements (#9773)
* init * update * update * revert changes for stepmesh dialog * make highlight arrow more obvious * reset to zero icons * modernize return icon * better dark mode icon for project page * fix return arrow * revert changes for hyperlinks * update * Update SelectMachine.cpp * Update SendToPrinter.cpp * update * update plate icons * dragcanvas dark mode support * revert changes for calibration page * revert changes for bind dialog * Update BindDialog.cpp * fix green text on bbl calibration window * Update AmsMappingPopup.cpp * match measure axis color * fix * update * Update AmsMappingPopup.cpp * revert color change for hyperlink * Update NotificationManager.cpp * update * add icon for resonance avoidance * update * Fix wrong icon color after switching dark mode --------- Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
This commit is contained in:
@@ -17,6 +17,9 @@ DragCanvas::DragCanvas(wxWindow* parent, const std::vector<std::string>& colors,
|
||||
{
|
||||
SetBackgroundColour(*wxWHITE);
|
||||
|
||||
m_background_color = StateColor::darkModeColorFor("#FFFFFF"); // ORCA
|
||||
m_border_color = StateColor::darkModeColorFor("#DBDBDB"); // ORCA
|
||||
|
||||
m_arrow_bmp = create_scaled_bitmap("plate_settings_arrow", this, 16);
|
||||
|
||||
set_shape_list(colors, order);
|
||||
@@ -130,15 +133,15 @@ void DragCanvas::on_erase(wxEraseEvent& event)
|
||||
if (event.GetDC())
|
||||
{
|
||||
auto& dc = *(event.GetDC());
|
||||
dc.SetPen(CANVAS_BORDER_COLOR);
|
||||
dc.SetBrush(*wxWHITE_BRUSH);
|
||||
dc.SetPen( m_border_color); // ORCA
|
||||
dc.SetBrush(m_background_color); // ORCA
|
||||
dc.DrawRectangle({ 0,0 }, size);
|
||||
}
|
||||
else
|
||||
{
|
||||
wxClientDC dc(this);
|
||||
dc.SetPen(CANVAS_BORDER_COLOR);
|
||||
dc.SetBrush(*wxWHITE_BRUSH);
|
||||
dc.SetPen( m_border_color); // ORCA
|
||||
dc.SetBrush(m_background_color); // ORCA
|
||||
dc.DrawRectangle({ 0,0 }, size);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user