mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -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
|
@ -2512,7 +2512,7 @@ void ImGuiWrapper::push_confirm_button_style() {
|
|||
if (m_is_dark_mode) {
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.f / 255.f, 150.f / 255.f, 136.f / 255.f, 1.f));
|
||||
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0.f / 255.f, 150.f / 255.f, 136.f / 255.f, 1.f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(61.f / 255.f, 203.f / 255.f, 115.f / 255.f, 1.f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, to_ImVec4(decode_color_to_float_array("#267E73")));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(27.f / 255.f, 136.f / 255.f, 68.f / 255.f, 1.f));
|
||||
ImGui::PushStyleColor(ImGuiCol_CheckMark, ImVec4(1.f, 1.f, 1.f, 0.88f));
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.f, 1.f, 1.f, 0.88f));
|
||||
|
@ -2520,7 +2520,7 @@ void ImGuiWrapper::push_confirm_button_style() {
|
|||
else {
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.f / 255.f, 150.f / 255.f, 136.f / 255.f, 1.f));
|
||||
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0.f / 255.f, 150.f / 255.f, 136.f / 255.f, 1.f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(61.f / 255.f, 203.f / 255.f, 115.f / 255.f, 1.f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, to_ImVec4(decode_color_to_float_array("#26A69A")));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(27.f / 255.f, 136.f / 255.f, 68.f / 255.f, 1.f));
|
||||
ImGui::PushStyleColor(ImGuiCol_CheckMark, ImVec4(1.f, 1.f, 1.f, 1.f));
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.f, 1.f, 1.f, 1.f));
|
||||
|
@ -2605,9 +2605,9 @@ void ImGuiWrapper::pop_combo_style()
|
|||
void ImGuiWrapper::push_radio_style()
|
||||
{
|
||||
if (m_is_dark_mode) {
|
||||
ImGui::PushStyleColor(ImGuiCol_CheckMark, ImVec4(1.00f, 1.00f, 1.00f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_CheckMark, to_ImVec4(decode_color_to_float_array("#00675b"))); // ORCA use orca color for radio buttons
|
||||
} else {
|
||||
ImGui::PushStyleColor(ImGuiCol_CheckMark, ImVec4(0.00f, 0.00f, 0.00f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_CheckMark, to_ImVec4(decode_color_to_float_array("#009688"))); // ORCA use orca color for radio buttons
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2888,12 +2888,12 @@ void ImGuiWrapper::init_style()
|
|||
|
||||
// ComboBox items
|
||||
set_color(ImGuiCol_Header, COL_ORANGE_DARK);
|
||||
set_color(ImGuiCol_HeaderHovered, COL_BLUE_LIGHT);
|
||||
set_color(ImGuiCol_HeaderActive, COL_BLUE_LIGHT);
|
||||
set_color(ImGuiCol_HeaderHovered, to_ImVec4(to_rgba(ColorRGB::ORCA(), 0.50f))); // ORCA Use orca color for headers
|
||||
set_color(ImGuiCol_HeaderActive, to_ImVec4(to_rgba(ColorRGB::ORCA(), 0.75f))); // ORCA Use orca color for headers
|
||||
|
||||
// Slider
|
||||
set_color(ImGuiCol_SliderGrab, COL_BLUE_LIGHT);
|
||||
set_color(ImGuiCol_SliderGrabActive, COL_BLUE_LIGHT);
|
||||
set_color(ImGuiCol_SliderGrab, to_ImVec4(to_rgba(ColorRGB::ORCA(), 0.50f))); // ORCA Use orca color for slider thumbs
|
||||
set_color(ImGuiCol_SliderGrabActive, to_ImVec4(to_rgba(ColorRGB::ORCA(), 0.75f))); // ORCA Use orca color for slider thumbs
|
||||
|
||||
// Separator
|
||||
set_color(ImGuiCol_Separator, COL_BLUE_LIGHT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue