- if (fullScreenBrowsingModeBoolean) {
- // Set the `fullScreenBrowsingModePreference` icon.
- fullScreenBrowsingModePreference.setIcon(R.drawable.full_screen_enabled);
-
- if (hideSystemBarsBoolean) {
- // Set `hideSystemBarsPreference` to use the enabled icon.
- hideSystemBarsPreference.setIcon(R.drawable.hide_system_bars_enabled);
-
- // Set `translucentNavigationBarPreference` to use the ghosted icon.
- translucentNavigationBarPreference.setIcon(R.drawable.translucent_bar_ghosted);
- } else { // `hideSystemBarsBoolean` is false.
- // Set `hideSystemBarsPreference` to use the disabled icon.
- hideSystemBarsPreference.setIcon(R.drawable.hide_system_bars_disabled);
-
- // Set the correct icon for `translucentNavigationBarPreference`.
- if (savedPreferences.getBoolean("translucent_navigation_bar", true)) {
- translucentNavigationBarPreference.setIcon(R.drawable.translucent_bar_enabled);
+ if (fullScreenBrowsingModeBoolean) { // `fullScreenBrowsingModeBoolean` is `true`.
+ // Set the `fullScreenBrowsingModePreference` icon according to the theme.
+ if (MainWebViewActivity.darkTheme) {
+ fullScreenBrowsingModePreference.setIcon(R.drawable.full_screen_enabled_dark);
+ } else {
+ fullScreenBrowsingModePreference.setIcon(R.drawable.full_screen_enabled_light);
+ }
+
+ if (hideSystemBarsBoolean) { // `hideSystemBarsBoolean` is `true`.
+ // Set the icons according to the theme.
+ if (MainWebViewActivity.darkTheme) {
+ hideSystemBarsPreference.setIcon(R.drawable.hide_system_bars_enabled_dark);
+ translucentNavigationBarPreference.setIcon(R.drawable.translucent_bar_ghosted_dark);
+ } else {
+ hideSystemBarsPreference.setIcon(R.drawable.hide_system_bars_enabled_light);
+ translucentNavigationBarPreference.setIcon(R.drawable.translucent_bar_ghosted_light);
+ }
+ } else { // `hideSystemBarsBoolean` is `false`.
+ // Set the `hideSystemBarsPreference` icon according to the theme.
+ if (MainWebViewActivity.darkTheme) {
+ // Set the icon for `hideSystemBarsPreference`.
+ hideSystemBarsPreference.setIcon(R.drawable.hide_system_bars_disabled_dark);
+
+ // Set the icon for `translucentNavigationBarPreference`.
+ if (savedPreferences.getBoolean("translucent_navigation_bar", true)) {
+ translucentNavigationBarPreference.setIcon(R.drawable.translucent_bar_enabled_dark);
+ } else {
+ translucentNavigationBarPreference.setIcon(R.drawable.translucent_bar_disabled_dark);
+ }