diff --git a/LICENSE b/LICENSE
index 2e21e7d..7e848f9 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2019 Artem Chernyshev
+Copyright (c) 2019-2020 Artem Chernyshev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/imgui b/imgui
index dc66f83..388bf66 160000
--- a/imgui
+++ b/imgui
@@ -1 +1 @@
-Subproject commit dc66f83db8462e7837aec60fef86c025ac4c485b
+Subproject commit 388bf66247bc17cddb704d6e6421cf872bc3f964
diff --git a/samples/simple/layouts.xml b/samples/simple/layouts.xml
new file mode 100644
index 0000000..2eba696
--- /dev/null
+++ b/samples/simple/layouts.xml
@@ -0,0 +1,146 @@
+
+
+
+
+
+
+ Horizontal flex
+
+
+
+ Vertical flex (auto)
+
+ Vertical flex (scaled)
+
+ Flex in table mode
+
+ Dynamic flex
+
+
+
+
+
+
+
diff --git a/samples/simple/main.cpp b/samples/simple/main.cpp
index 1a5b1d3..adc7f8b 100644
--- a/samples/simple/main.cpp
+++ b/samples/simple/main.cpp
@@ -104,9 +104,11 @@ int main(int argc, char** argv)
ImGui::StyleColorsDark();
//ImGui::StyleColorsLight();
- float scale = 1.5f;
+ float scale = 1.0f;
ImGuiStyle& style = ImGui::GetStyle();
+ style.FrameRounding = 5.0f;
+ style.FrameBorderSize = 1.0f;
style.ScaleAllSizes(scale);
// Setup Platform/Renderer bindings
diff --git a/samples/simple/standard_controls.xml b/samples/simple/standard_controls.xml
new file mode 100644
index 0000000..9034474
--- /dev/null
+++ b/samples/simple/standard_controls.xml
@@ -0,0 +1,84 @@
+
+
+
+
+ Built-in elements showcase
+
+ slider angle
+ input int 1
+ input int 2
+ input int 3
+ input double
+ drag int 1
+ drag int 2
+ drag int 4
+ input float 1
+ input float 2
+ input float 3
+ input float 4
+ input text
+ Multiline text
+
+
+
+ option 1
+ option 2
+
+ input float 4
+ color edit 3
+ color edit 4
+ option 1
+ option 2
+ option 3
+ checkbox
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/simple/styled.xml b/samples/simple/styled.xml
index 2dc03f6..b4103db 100644
--- a/samples/simple/styled.xml
+++ b/samples/simple/styled.xml
@@ -25,10 +25,6 @@
padding: 5px;
}
- span {
- margin-right: 0.2rem;
- }
-
div:not(:last-of-type) {
margin-bottom: 0.5rem;
}
@@ -220,7 +216,7 @@
{{if self.toggle then return self.heartActive else return self.heartInactive end}}
- APPROVED
+ APPROVED
Forms
@@ -254,10 +250,10 @@
- {{c}}
+ {{index}}:{{c}}
No choices yet
-
+