Loading res/drawable/preview_seek_bar_outline.xml +2 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ android:shape="rectangle" > <stroke android:width="@dimen/preview_pager_padding" android:color="?android:attr/colorPrimary" /> android:color="?android:attr/colorBackground" /> </shape> </item> <item Loading @@ -35,7 +35,7 @@ android:shape="rectangle" android:height="?android:attr/actionBarSize" > <solid android:color="?android:attr/colorPrimary" /> android:color="?android:attr/colorBackground" /> </shape> </item> </layer-list> res/values-night/themes_suw.xml +3 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ <!-- SUW related themes --> <resources> <!-- This theme was applied to Settings pages which are running under SUW. --> <style name="SubSettings.SetupWizard" parent="SudThemeGlifV3" /> <!-- DayNight themes --> <style name="GlifTheme.DayNight" parent="GlifTheme" /> <style name="GlifV2Theme.DayNight" parent="GlifV2Theme" /> Loading res/values/themes.xml +0 −14 Original line number Diff line number Diff line Loading @@ -243,20 +243,6 @@ <item name="android:textColorSecondary">@*android:color/secondary_text_light</item> </style> <!-- Light theme for those pages inherit SubSettings and launched during setup flow --> <style name="LightTheme.SubSettings.SetupWizard" parent="@android:style/Theme.DeviceDefault.Light"> <item name="android:windowLightStatusBar">true</item> <item name="android:statusBarColor">@android:color/white</item> <item name="android:navigationBarColor">@android:color/white</item> <item name="android:windowLightNavigationBar">true</item> <item name="android:windowBackground">@android:color/white</item> <item name="android:navigationBarDividerColor">@*android:color/navigation_bar_divider_device_default_settings</item> <item name="android:colorPrimary">@android:color/white</item> <item name="android:colorBackground">@android:color/white</item> <item name="android:colorPrimaryDark">@android:color/white</item> <item name="android:colorAccent">@color/material_blue_700</item> </style> <!-- Material theme for the pages containing TabLayout and ViewPager --> <style name="Theme.TabTheme" parent="@style/Theme.MaterialComponents.DayNight"> <item name="colorPrimary">@*android:color/edge_effect_device_default_light</item> Loading res/values/themes_suw.xml +3 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,9 @@ <item name="dialogCornerRadius">@*android:dimen/config_dialogCornerRadius</item> </style> <!-- This theme was applied to Settings pages which are running under SUW. --> <style name="SubSettings.SetupWizard" parent="SudThemeGlifV3.Light" /> <!-- DayNight themes --> <style name="GlifTheme.DayNight" parent="GlifTheme.Light" /> <style name="GlifV2Theme.DayNight" parent="GlifV2Theme.Light" /> Loading src/com/android/settings/core/SettingsBaseActivity.java +5 −1 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ import com.android.settingslib.drawer.Tile; import com.google.android.material.appbar.CollapsingToolbarLayout; import com.google.android.setupcompat.util.WizardManagerHelper; import com.google.android.setupdesign.util.ThemeHelper; import java.util.ArrayList; import java.util.List; Loading Loading @@ -87,7 +88,9 @@ public class SettingsBaseActivity extends FragmentActivity { // Apply SetupWizard light theme during setup flow. This is for SubSettings pages. final boolean isAnySetupWizard = WizardManagerHelper.isAnySetupWizard(getIntent()); if (isAnySetupWizard && this instanceof SubSettings) { setTheme(R.style.LightTheme_SubSettings_SetupWizard); final int appliedTheme = ThemeHelper.isSetupWizardDayNightEnabled(this) ? R.style.SubSettings_SetupWizard : R.style.SudThemeGlifV3_Light; setTheme(appliedTheme); } if (FeatureFlagUtils.isEnabled(this, FeatureFlags.SILKY_HOME) Loading Loading @@ -197,6 +200,7 @@ public class SettingsBaseActivity extends FragmentActivity { /** * SubSetting page should show a toolbar by default. If the page wouldn't show a toolbar, * override this method and return false value. * * @return ture by default */ protected boolean isToolbarEnabled() { Loading Loading
res/drawable/preview_seek_bar_outline.xml +2 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ android:shape="rectangle" > <stroke android:width="@dimen/preview_pager_padding" android:color="?android:attr/colorPrimary" /> android:color="?android:attr/colorBackground" /> </shape> </item> <item Loading @@ -35,7 +35,7 @@ android:shape="rectangle" android:height="?android:attr/actionBarSize" > <solid android:color="?android:attr/colorPrimary" /> android:color="?android:attr/colorBackground" /> </shape> </item> </layer-list>
res/values-night/themes_suw.xml +3 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ <!-- SUW related themes --> <resources> <!-- This theme was applied to Settings pages which are running under SUW. --> <style name="SubSettings.SetupWizard" parent="SudThemeGlifV3" /> <!-- DayNight themes --> <style name="GlifTheme.DayNight" parent="GlifTheme" /> <style name="GlifV2Theme.DayNight" parent="GlifV2Theme" /> Loading
res/values/themes.xml +0 −14 Original line number Diff line number Diff line Loading @@ -243,20 +243,6 @@ <item name="android:textColorSecondary">@*android:color/secondary_text_light</item> </style> <!-- Light theme for those pages inherit SubSettings and launched during setup flow --> <style name="LightTheme.SubSettings.SetupWizard" parent="@android:style/Theme.DeviceDefault.Light"> <item name="android:windowLightStatusBar">true</item> <item name="android:statusBarColor">@android:color/white</item> <item name="android:navigationBarColor">@android:color/white</item> <item name="android:windowLightNavigationBar">true</item> <item name="android:windowBackground">@android:color/white</item> <item name="android:navigationBarDividerColor">@*android:color/navigation_bar_divider_device_default_settings</item> <item name="android:colorPrimary">@android:color/white</item> <item name="android:colorBackground">@android:color/white</item> <item name="android:colorPrimaryDark">@android:color/white</item> <item name="android:colorAccent">@color/material_blue_700</item> </style> <!-- Material theme for the pages containing TabLayout and ViewPager --> <style name="Theme.TabTheme" parent="@style/Theme.MaterialComponents.DayNight"> <item name="colorPrimary">@*android:color/edge_effect_device_default_light</item> Loading
res/values/themes_suw.xml +3 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,9 @@ <item name="dialogCornerRadius">@*android:dimen/config_dialogCornerRadius</item> </style> <!-- This theme was applied to Settings pages which are running under SUW. --> <style name="SubSettings.SetupWizard" parent="SudThemeGlifV3.Light" /> <!-- DayNight themes --> <style name="GlifTheme.DayNight" parent="GlifTheme.Light" /> <style name="GlifV2Theme.DayNight" parent="GlifV2Theme.Light" /> Loading
src/com/android/settings/core/SettingsBaseActivity.java +5 −1 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ import com.android.settingslib.drawer.Tile; import com.google.android.material.appbar.CollapsingToolbarLayout; import com.google.android.setupcompat.util.WizardManagerHelper; import com.google.android.setupdesign.util.ThemeHelper; import java.util.ArrayList; import java.util.List; Loading Loading @@ -87,7 +88,9 @@ public class SettingsBaseActivity extends FragmentActivity { // Apply SetupWizard light theme during setup flow. This is for SubSettings pages. final boolean isAnySetupWizard = WizardManagerHelper.isAnySetupWizard(getIntent()); if (isAnySetupWizard && this instanceof SubSettings) { setTheme(R.style.LightTheme_SubSettings_SetupWizard); final int appliedTheme = ThemeHelper.isSetupWizardDayNightEnabled(this) ? R.style.SubSettings_SetupWizard : R.style.SudThemeGlifV3_Light; setTheme(appliedTheme); } if (FeatureFlagUtils.isEnabled(this, FeatureFlags.SILKY_HOME) Loading Loading @@ -197,6 +200,7 @@ public class SettingsBaseActivity extends FragmentActivity { /** * SubSetting page should show a toolbar by default. If the page wouldn't show a toolbar, * override this method and return false value. * * @return ture by default */ protected boolean isToolbarEnabled() { Loading