|
|
@ -5022,12 +5022,15 @@ void ImGui::ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags) |
|
|
|
ImFormatString(buf, IM_ARRAYSIZE(buf), "(%d,%d,%d,%d)", cr, cg, cb, ca); |
|
|
|
ImFormatString(buf, IM_ARRAYSIZE(buf), "(%d,%d,%d,%d)", cr, cg, cb, ca); |
|
|
|
if (Selectable(buf)) |
|
|
|
if (Selectable(buf)) |
|
|
|
SetClipboardText(buf); |
|
|
|
SetClipboardText(buf); |
|
|
|
if (flags & ImGuiColorEditFlags_NoAlpha) |
|
|
|
ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", cr, cg, cb); |
|
|
|
ImFormatString(buf, IM_ARRAYSIZE(buf), "0x%02X%02X%02X", cr, cg, cb); |
|
|
|
if (Selectable(buf)) |
|
|
|
else |
|
|
|
SetClipboardText(buf); |
|
|
|
ImFormatString(buf, IM_ARRAYSIZE(buf), "0x%02X%02X%02X%02X", cr, cg, cb, ca); |
|
|
|
if (!(flags & ImGuiColorEditFlags_NoAlpha)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", cr, cg, cb, ca); |
|
|
|
if (Selectable(buf)) |
|
|
|
if (Selectable(buf)) |
|
|
|
SetClipboardText(buf); |
|
|
|
SetClipboardText(buf); |
|
|
|
|
|
|
|
} |
|
|
|
EndPopup(); |
|
|
|
EndPopup(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|