summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-17 18:36:27 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-17 18:36:38 +0200
commit3cb3af524117fc91afd5f0f878d9978d27048344 (patch)
tree636caa5bc9692081791e7f02659891c0704ff12f /src
parent8e590dc56f3d6e902a3d9f0c1c3b6c2f9e17c900 (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.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ios.m b/src/ios.m
index 5b811a57..dbe78fd6 100644
--- a/src/ios.m
+++ b/src/ios.m
@@ -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}