summaryrefslogtreecommitdiff
path: root/src/imgui_ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imgui_ui.cpp')
-rw-r--r--src/imgui_ui.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/imgui_ui.cpp b/src/imgui_ui.cpp
index aa09bfb..6bc6d85 100644
--- a/src/imgui_ui.cpp
+++ b/src/imgui_ui.cpp
@@ -749,6 +749,20 @@ ImGui_Menu(project_data *File, project_state *State, ui *UI, memory *Memory, ImG
}
if (ImGui::BeginMenu("Window"))
{
+ if (ImGui::BeginMenu("Background viewport color"))
+ {
+ ImGuiColorEditFlags flags_primary = ImGuiColorEditFlags_AlphaPreview |
+ ImGuiColorEditFlags_Float;
+ ImGuiColorEditFlags flags_picker = ImGuiColorEditFlags_PickerHueBar |
+ ImGuiColorEditFlags_AlphaBar |
+ ImGuiColorEditFlags_NoSmallPreview |
+ ImGuiColorEditFlags_NoSidePreview |
+ ImGuiColorEditFlags_DisplayRGB |
+ ImGuiColorEditFlags_DisplayHSV |
+ ImGuiColorEditFlags_DisplayHex;
+ ImGui::ColorPicker4("##bgcolorpicker", &UI->BGColor.r, flags_primary | flags_picker);
+ ImGui::EndMenu();
+ }
if (ImGui::Selectable("Standard view", UI->Mode == 0))
UI->Mode = 0;
if (ImGui::Selectable("Vector view", UI->Mode == 1))