Skip to content

Commit 11edf0c

Browse files
committed
Rename example vars
1 parent e56990f commit 11edf0c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

imgui-lwjgl3/src/test/java/ExampleUi.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
final class ExampleUi {
2020
private static final String IMGUI_DEMO_LINK = "https://raw.githubusercontent.com/ocornut/imgui/v1.76/imgui_demo.cpp";
2121

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");
2525

2626
// Test data for payload
2727
private String dropTargetText = "Drop Here";
@@ -90,19 +90,19 @@ void render() {
9090
ImGui.inputText("Resizable input", resizableStr, ImGuiInputTextFlags.CallbackResize);
9191
ImGui.text("text len:");
9292
ImGui.sameLine();
93-
ImGui.textColored(DODGERBLUE_COLOR, Integer.toString(resizableStr.getLength()));
93+
ImGui.textColored(COLOR_DODGERBLUE, Integer.toString(resizableStr.getLength()));
9494
ImGui.sameLine();
9595
ImGui.text("| buffer size:");
9696
ImGui.sameLine();
97-
ImGui.textColored(CORAL_COLOR, Integer.toString(resizableStr.getBufferSize()));
97+
ImGui.textColored(COLOR_CORAL, Integer.toString(resizableStr.getBufferSize()));
9898

9999
ImGui.separator();
100100
ImGui.newLine();
101101

102102
// Link to the original demo file
103103
ImGui.text("Consider to look the original ImGui demo: ");
104104
ImGui.setNextItemWidth(500);
105-
ImGui.textColored(LIMEGREEN_COLOR, IMGUI_DEMO_LINK);
105+
ImGui.textColored(COLOR_LIMEGREEN, IMGUI_DEMO_LINK);
106106
ImGui.sameLine();
107107
if (ImGui.button("Copy")) {
108108
ImGui.setClipboardText(IMGUI_DEMO_LINK);

0 commit comments

Comments
 (0)