Skip to main content

isDarkTheme

Description

Returns whether the theme currently applied in the app is the dark theme. It looks at the app's own theme setting, not the device OS setting — for the device setting, see isDeviceDarkTheme.

Parameters

None

Returns

bool

Example

if ($app.isDarkTheme()) {
$log.i("다크 테마가 적용되어 있습니다");
}
  • $app.changeTheme(type) — switch the app's theme
  • $app.isDeviceDarkTheme() — whether the device OS is set to dark mode