Sim GUI: Support High DPI monitors

Add user setting for scaling on top of DPI scaling.
Add user setting for visual style (light/dark/normal).
Save window position, size, maximized state, scale, and style to ini file.
This commit is contained in:
Peter Johnson
2019-10-13 23:25:21 -07:00
parent 46ad95512e
commit 07c86e0cd5
8 changed files with 190 additions and 33 deletions

View File

@@ -23,10 +23,12 @@ namespace halsimgui {
* @param numValues size of values array
* @param cols number of columns
* @param colors colors array
* @param size size of each LED (both horizontal and vertical)
* @param spacing spacing between each LED (both horizontal and vertical)
* @param size size of each LED (both horizontal and vertical);
* if 0, defaults to 1/2 of font size
* @param spacing spacing between each LED (both horizontal and vertical);
* if 0, defaults to 1/3 of font size
*/
void DrawLEDs(int* values, int numValues, int cols, const ImU32* colors,
float size = 8.0f, float spacing = 6.0f);
float size = 0.0f, float spacing = 0.0f);
} // namespace halsimgui