diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-18 14:58:58 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-18 14:58:58 +0300 |
commit | 54882a015e4ea880fb817f013609a3f8411db725 (patch) | |
tree | e932dae756fc304143f17d36e0f5a3059b6365d6 | |
parent | bf76c112bc5aaacdc52c13743d6624cb79c74e9b (diff) |
App: Fixed init of UI palette on first run
IssueID #275
-rw-r--r-- | src/app.c | 1 | ||||
-rw-r--r-- | src/ui/window.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 | ||
60 | static iWindow *theWindow_ = NULL; | 60 | static iWindow *theWindow_ = NULL; |
61 | 61 | ||
62 | #if defined (iPlatformApple) || defined (iPlatformLinux) | 62 | #if defined (iPlatformApple) || defined (iPlatformLinux) || defined (iPlatformOther) |
63 | static float initialUiScale_ = 1.0f; | 63 | static float initialUiScale_ = 1.0f; |
64 | #else | 64 | #else |
65 | static float initialUiScale_ = 1.1f; | 65 | static float initialUiScale_ = 1.1f; |