mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
GCodeViewer -> Tweaks in legend rendering
This commit is contained in:
parent
2aa1c2776c
commit
0c6f66eca6
3 changed files with 43 additions and 29 deletions
|
@ -50,11 +50,14 @@ static const std::map<const char, std::string> font_icons = {
|
|||
{ImGui::ErrorMarker , "flag_red" }
|
||||
};
|
||||
|
||||
const ImVec4 ImGuiWrapper::COL_WINDOW_BACKGROND = { 0.133f, 0.133f, 0.133f, 0.8f };
|
||||
const ImVec4 ImGuiWrapper::COL_GREY_DARK = { 0.333f, 0.333f, 0.333f, 1.0f };
|
||||
const ImVec4 ImGuiWrapper::COL_GREY_LIGHT = { 0.4f, 0.4f, 0.4f, 1.0f };
|
||||
const ImVec4 ImGuiWrapper::COL_ORANGE_DARK = { 0.757f, 0.404f, 0.216f, 1.0f };
|
||||
const ImVec4 ImGuiWrapper::COL_ORANGE_LIGHT = { 1.0f, 0.49f, 0.216f, 1.0f };
|
||||
const ImVec4 ImGuiWrapper::COL_GREY_DARK = { 0.333f, 0.333f, 0.333f, 1.0f };
|
||||
const ImVec4 ImGuiWrapper::COL_GREY_LIGHT = { 0.4f, 0.4f, 0.4f, 1.0f };
|
||||
const ImVec4 ImGuiWrapper::COL_ORANGE_DARK = { 0.757f, 0.404f, 0.216f, 1.0f };
|
||||
const ImVec4 ImGuiWrapper::COL_ORANGE_LIGHT = { 1.0f, 0.49f, 0.216f, 1.0f };
|
||||
const ImVec4 ImGuiWrapper::COL_WINDOW_BACKGROUND = { 0.133f, 0.133f, 0.133f, 0.8f };
|
||||
const ImVec4 ImGuiWrapper::COL_BUTTON_BACKGROUND = { 0.233f, 0.233f, 0.233f, 1.0f };
|
||||
const ImVec4 ImGuiWrapper::COL_BUTTON_HOVERED = { 0.433f, 0.433f, 0.433f, 1.8f };
|
||||
const ImVec4 ImGuiWrapper::COL_BUTTON_ACTIVE = ImGuiWrapper::COL_BUTTON_HOVERED;
|
||||
|
||||
ImGuiWrapper::ImGuiWrapper()
|
||||
: m_glyph_ranges(nullptr)
|
||||
|
@ -1031,7 +1034,7 @@ void ImGuiWrapper::init_style()
|
|||
|
||||
// Window
|
||||
style.WindowRounding = 4.0f;
|
||||
set_color(ImGuiCol_WindowBg, COL_WINDOW_BACKGROND);
|
||||
set_color(ImGuiCol_WindowBg, COL_WINDOW_BACKGROUND);
|
||||
set_color(ImGuiCol_TitleBgActive, COL_ORANGE_DARK);
|
||||
|
||||
// Generics
|
||||
|
@ -1043,9 +1046,9 @@ void ImGuiWrapper::init_style()
|
|||
set_color(ImGuiCol_TextSelectedBg, COL_ORANGE_DARK);
|
||||
|
||||
// Buttons
|
||||
set_color(ImGuiCol_Button, COL_ORANGE_DARK);
|
||||
set_color(ImGuiCol_ButtonHovered, COL_ORANGE_LIGHT);
|
||||
set_color(ImGuiCol_ButtonActive, COL_ORANGE_LIGHT);
|
||||
set_color(ImGuiCol_Button, COL_BUTTON_BACKGROUND);
|
||||
set_color(ImGuiCol_ButtonHovered, COL_BUTTON_HOVERED);
|
||||
set_color(ImGuiCol_ButtonActive, COL_BUTTON_ACTIVE);
|
||||
|
||||
// Checkbox
|
||||
set_color(ImGuiCol_CheckMark, COL_ORANGE_LIGHT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue