mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
Color fixes (#5239)
* Update plate name & number colors * Update sliced plates selected item border color and "All Plates Stats" text color * Simplify gizmo update slider thumb and text color * Update confirm button hover color * Fix assembly info titlebar not compatible with dark mode * Update selected tab color on set filaments to use window * Update gCode viewer text colors * Update color of selection rectangle * Update gcode view slider value text color * Paint gizmos update colors for tool / brush buttons * Update colors of gizmo radio buttons * Update combined slider thumb color for gizmos * Update header color for gizmos * Update titlebar buttons background color while hover * Fix side bar header background not uses correct color for dark theme * Update background colors of focused Combo box and checked item on Dropdown * Revert changes for gCode Window text colors * Revert changes for plate name / number text color * Update background color of Sliced Plates list > Scrollbar --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
a5cb28d358
commit
e40d7780d5
15 changed files with 55 additions and 46 deletions
|
@ -7809,14 +7809,14 @@ void GLCanvas3D::_render_imgui_select_plate_toolbar()
|
|||
float window_width = m_sel_plate_toolbar.icon_width + margin_size * 2 + (show_scroll ? 28.0f * f_scale : 20.0f * f_scale);
|
||||
|
||||
ImVec4 window_bg = ImVec4(0.82f, 0.82f, 0.82f, 0.5f);
|
||||
ImVec4 button_active = ImVec4(0.12f, 0.56f, 0.92, 1.0f);
|
||||
ImVec4 button_active = ImGuiWrapper::COL_ORCA; // ORCA: Use orca color for selected sliced plate border
|
||||
ImVec4 button_hover = ImVec4(0.67f, 0.67f, 0.67, 1.0f);
|
||||
ImVec4 scroll_col = ImVec4(0.77f, 0.77f, 0.77f, 1.0f);
|
||||
//ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.f, 0.f, 0.f, 1.0f));
|
||||
//use white text as the background switch to black
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 1.0f, 1.0f, 1.0f));
|
||||
ImGui::PushStyleColor(ImGuiCol_WindowBg, window_bg);
|
||||
ImGui::PushStyleColor(ImGuiCol_ScrollbarBg, window_bg);
|
||||
ImGui::PushStyleColor(ImGuiCol_ScrollbarBg, ImVec4(0.f, 0.f, 0.f, 0.f)); // ORCA using background color with opacity creates a second color. This prevents secondary color
|
||||
ImGui::PushStyleColor(ImGuiCol_ScrollbarGrabActive, scroll_col);
|
||||
ImGui::PushStyleColor(ImGuiCol_ScrollbarGrabHovered, scroll_col);
|
||||
ImGui::PushStyleColor(ImGuiCol_ScrollbarGrab, scroll_col);
|
||||
|
@ -7870,12 +7870,12 @@ void GLCanvas3D::_render_imgui_select_plate_toolbar()
|
|||
ImTextureID btn_texture_id;
|
||||
if (all_plates_stats_item->slice_state == IMToolbarItem::SliceState::UNSLICED || all_plates_stats_item->slice_state == IMToolbarItem::SliceState::SLICING || all_plates_stats_item->slice_state == IMToolbarItem::SliceState::SLICE_FAILED)
|
||||
{
|
||||
text_clr = ImVec4(0, 174.0f / 255.0f, 66.0f / 255.0f, 0.2f);
|
||||
text_clr = ImVec4(0.0f, 150.f / 255.0f, 136.0f / 255, 0.2f); // ORCA: All plates slicing NOT complete - Text color
|
||||
btn_texture_id = (ImTextureID)(intptr_t)(all_plates_stats_item->image_texture_transparent.get_id());
|
||||
}
|
||||
else
|
||||
{
|
||||
text_clr = ImVec4(0, 174.0f / 255.0f, 66.0f / 255.0f, 1);
|
||||
text_clr = ImGuiWrapper::COL_ORCA; // ORCA: All plates slicing complete - Text color
|
||||
btn_texture_id = (ImTextureID)(intptr_t)(all_plates_stats_item->image_texture.get_id());
|
||||
}
|
||||
|
||||
|
@ -8398,7 +8398,7 @@ void GLCanvas3D::_render_assemble_info() const
|
|||
ImGui::PopFont();
|
||||
float margin = 10.0f * get_scale();
|
||||
imgui->set_next_window_pos(canvas_w - margin, canvas_h - margin, ImGuiCond_Always, 1.0f, 1.0f);
|
||||
ImGuiWrapper::push_toolbar_style(get_scale());
|
||||
ImGuiWrapper::push_common_window_style(get_scale()); // ORCA use window style for popups with title
|
||||
imgui->begin(_L("Assembly Info"), ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoCollapse);
|
||||
font->Scale = origScale;
|
||||
ImGui::PushFont(font);
|
||||
|
@ -8414,7 +8414,7 @@ void GLCanvas3D::_render_assemble_info() const
|
|||
ImGui::Text("%.2f x %.2f x %.2f", size0, size1, size2);
|
||||
}
|
||||
imgui->end();
|
||||
ImGuiWrapper::pop_toolbar_style();
|
||||
ImGuiWrapper::pop_common_window_style();
|
||||
}
|
||||
|
||||
#if ENABLE_SHOW_CAMERA_TARGET
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue