diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-17 18:36:27 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-17 18:36:38 +0200 |
commit | 3cb3af524117fc91afd5f0f878d9978d27048344 (patch) | |
tree | 636caa5bc9692081791e7f02659891c0704ff12f /src | |
parent | 8e590dc56f3d6e902a3d9f0c1c3b6c2f9e17c900 (diff) |
iOS: System theme option
Trying to figure out why the system theme option is disabling itself.
Diffstat (limited to 'src')
-rw-r--r-- | src/ios.m | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -247,5 +247,13 @@ iBool processEvent_iOS(const SDL_Event *ev) { | |||
247 | } | 247 | } |
248 | } | 248 | } |
249 | } | 249 | } |
250 | else if (ev->type == SDL_USEREVENT && ev->user.code == command_UserEventCode) { | ||
251 | const char *cmd = command_UserEvent(ev); | ||
252 | if (equal_Command(cmd, "ostheme")) { | ||
253 | if (arg_Command(cmd)) { | ||
254 | postCommandf_App("os.theme.changed dark:%d contrast:1", isSystemDarkMode_ ? 1 : 0); | ||
255 | } | ||
256 | } | ||
257 | } | ||
250 | return iFalse; /* allow normal processing */ | 258 | return iFalse; /* allow normal processing */ |
251 | } | 259 | } |