|
19 | 19 | final class ExampleUi {
|
20 | 20 | private static final String IMGUI_DEMO_LINK = "https://raw.githubusercontent.com/ocornut/imgui/v1.76/imgui_demo.cpp";
|
21 | 21 |
|
22 |
| - private static final int DODGERBLUE_COLOR = ImColor.rgbToColor("#1E90FF"); |
23 |
| - private static final int CORAL_COLOR = ImColor.rgbToColor("#FF7F50"); |
24 |
| - private static final int LIMEGREEN_COLOR = ImColor.rgbToColor("#32CD32"); |
| 22 | + private static final int COLOR_DODGERBLUE = ImColor.rgbToColor("#1E90FF"); |
| 23 | + private static final int COLOR_CORAL = ImColor.rgbToColor("#FF7F50"); |
| 24 | + private static final int COLOR_LIMEGREEN = ImColor.rgbToColor("#32CD32"); |
25 | 25 |
|
26 | 26 | // Test data for payload
|
27 | 27 | private String dropTargetText = "Drop Here";
|
@@ -90,19 +90,19 @@ void render() {
|
90 | 90 | ImGui.inputText("Resizable input", resizableStr, ImGuiInputTextFlags.CallbackResize);
|
91 | 91 | ImGui.text("text len:");
|
92 | 92 | ImGui.sameLine();
|
93 |
| - ImGui.textColored(DODGERBLUE_COLOR, Integer.toString(resizableStr.getLength())); |
| 93 | + ImGui.textColored(COLOR_DODGERBLUE, Integer.toString(resizableStr.getLength())); |
94 | 94 | ImGui.sameLine();
|
95 | 95 | ImGui.text("| buffer size:");
|
96 | 96 | ImGui.sameLine();
|
97 |
| - ImGui.textColored(CORAL_COLOR, Integer.toString(resizableStr.getBufferSize())); |
| 97 | + ImGui.textColored(COLOR_CORAL, Integer.toString(resizableStr.getBufferSize())); |
98 | 98 |
|
99 | 99 | ImGui.separator();
|
100 | 100 | ImGui.newLine();
|
101 | 101 |
|
102 | 102 | // Link to the original demo file
|
103 | 103 | ImGui.text("Consider to look the original ImGui demo: ");
|
104 | 104 | ImGui.setNextItemWidth(500);
|
105 |
| - ImGui.textColored(LIMEGREEN_COLOR, IMGUI_DEMO_LINK); |
| 105 | + ImGui.textColored(COLOR_LIMEGREEN, IMGUI_DEMO_LINK); |
106 | 106 | ImGui.sameLine();
|
107 | 107 | if (ImGui.button("Copy")) {
|
108 | 108 | ImGui.setClipboardText(IMGUI_DEMO_LINK);
|
|
0 commit comments