From fcd88b4b3b2151d9351adbab8d5ef371f18802a1 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 24 Nov 2020 00:01:44 +0100 Subject: [PATCH] Shrink the color picker to a bit more reasonable size --- source/views/view_tools.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/views/view_tools.cpp b/source/views/view_tools.cpp index 955c2ba84..5e2581c17 100644 --- a/source/views/view_tools.cpp +++ b/source/views/view_tools.cpp @@ -129,6 +129,7 @@ namespace hex { void ViewTools::drawColorPicker() { if (ImGui::CollapsingHeader("Color picker")) { + ImGui::SetNextItemWidth(300.0F); ImGui::ColorPicker4("Color Picker", this->m_pickedColor.data(), ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHex); ImGui::NewLine();