Lines Matching refs:is

12 whether the device theme is dark or not. There are multiple ways you can allow
39 - MODE_NIGHT_AUTO_BATTERY. Dark when battery saver is enabled, light otherwise.
46 Smart Dark is a new feature in Android Q which can automatically theme a light app to
48 APIs. It is made for apps which do not have explicit Dark Theme support yet.
50 Smart Dark applies to any theme whose value of `android:isLightTheme=true`. This is set on
56 This feature is implemented in the `PreferencesFragment`. As you can see in the
59 (you can see it in `layout/fragment_preferences.xml#L19`). In this case, when Smart Dark is
67 can choose the Light theme, Dark theme, or System Default (when the app is running on
73 Also, it recommends that this user choice is stored and applied whenever the user opens
74 the app again. In the code sample, the user preference is automatically stored in
79 Notice that the PreferencesFragment will be only in Dark Mode when the Smart Dark is active.
87 - *Vectors using tints*. `drawable/ic_brightness_2.xml` is Dark-Mode friendly by
90 - *Vectors using hard-coded colours*. `drawable/ic_brightness.xml` is Dark-Mode friendly by
94 - *Tinted menu icons*. `R.id.action_more` is tinted programmatically in `MainActivity.java#L85`.
98 `@color/primary` is defined in both `values/colors.xml` and `values-night/colors.xml`.
100 - *Text color*. Same way as we did before, the text color is defined in `values/styles.xml`
103 - *Window background*. The window background is set in `values/styles.xml` with the
104 `"android:windowBackground"` attribute. The value is set to `@color/background` so if
105 Dark Mode is enabled the splash screen is black instead of white.
111 - *Enable Smart Dark*. The `PreferenceFragment` is not Dark-Mode friendly. It has all colours
162 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT