summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 14:58:58 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 14:58:58 +0300
commit54882a015e4ea880fb817f013609a3f8411db725 (patch)
treee932dae756fc304143f17d36e0f5a3059b6365d6
parentbf76c112bc5aaacdc52c13743d6624cb79c74e9b (diff)
App: Fixed init of UI palette on first run
IssueID #275
-rw-r--r--src/app.c1
-rw-r--r--src/ui/window.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 27ce93ce..526c7752 100644
--- a/src/app.c
+++ b/src/app.c
@@ -732,6 +732,7 @@ static void init_App_(iApp *d, int argc, char **argv) {
732 setupApplication_iOS(); 732 setupApplication_iOS();
733#endif 733#endif
734 init_Keys(); 734 init_Keys();
735 setThemePalette_Color(d->prefs.theme); /* default UI colors */
735 loadPrefs_App_(d); 736 loadPrefs_App_(d);
736 load_Keys(dataDir_App_()); 737 load_Keys(dataDir_App_());
737 d->window = new_Window(d->initialWindowRect); 738 d->window = new_Window(d->initialWindowRect);
diff --git a/src/ui/window.c b/src/ui/window.c
index abdc363d..5bf2aa53 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -59,7 +59,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
59 59
60static iWindow *theWindow_ = NULL; 60static iWindow *theWindow_ = NULL;
61 61
62#if defined (iPlatformApple) || defined (iPlatformLinux) 62#if defined (iPlatformApple) || defined (iPlatformLinux) || defined (iPlatformOther)
63static float initialUiScale_ = 1.0f; 63static float initialUiScale_ = 1.0f;
64#else 64#else
65static float initialUiScale_ = 1.1f; 65static float initialUiScale_ = 1.1f;