Improved creation of source: selection of file generates a new source,

displayed in preview, and inserted when validated.
This commit is contained in:
brunoherbelin
2020-05-23 19:13:05 +02:00
parent 2cc45edfbd
commit 614fa1247d
9 changed files with 146 additions and 76 deletions

View File

@@ -792,6 +792,11 @@ ImVec4 ImGuiToolkit::GetHighlightColor()
void ImGuiToolkit::SetAccentColor(accent_color color)
{
// hack : preload texture icon to prevent slow-down of rendering when creating a new icon for the first time
if (textureicons == 0)
textureicons = Resource::getTextureDDS("images/icons.dds");
ImVec4* colors = ImGui::GetStyle().Colors;
if (color == ImGuiToolkit::ACCENT_ORANGE) {