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

@@ -56,7 +56,7 @@ static void DisplayDIO() {
}
}
ImGui::PushItemWidth(100);
ImGui::PushItemWidth(ImGui::GetFontSize() * 8);
for (int i = 0; i < numDIO; ++i) {
if (HALSIM_GetDIOInitialized(i)) {
hasAny = true;