Skip to content

Commit

Permalink
[Catalog] workaround for material-components#4139 ([TopAppBar] Color …
Browse files Browse the repository at this point in the history
…of ActionBar overflow menu background is incorrect)
  • Loading branch information
manabu-nakamura committed Jan 18, 2025
1 parent 690bbfc commit dd5ca40
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/java/io/material/catalog/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
android:name=".topappbar.TopAppBarActionBarDemoActivity"
android:exported="true"
android:label="@string/cat_topappbar_action_bar_title"
android:theme="@style/Theme.Material3.DayNight"/>
android:theme="@style/Theme.Catalog.DayNight"/>
<activity
android:name=".topappbar.TopAppBarScrollingTransparentStatusDemoActivity"
android:exported="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<item name="android:statusBarColor">@android:color/transparent</item>
</style>

<style name="Theme.Catalog.DayNight" parent="Theme.Material3.DayNight">
<item name="actionBarPopupTheme">@null</item>
</style>

<style name="CatalogPreferenceThemeOverlay" parent="PreferenceThemeOverlay">
<item name="switchPreferenceCompatStyle">@style/Preference.SwitchPreferenceCompat.Catalog</item>
</style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@
android:icon="@drawable/ic_favorite_vd_theme_24px"
android:title="@string/cat_topappbar_favorite_menu_item_title"
app:showAsAction="ifRoom"/>
<item
android:title="@string/cat_topappbar_settings_menu_item_title"
app:showAsAction="never"/>
<item
android:title="@string/cat_topappbar_help_and_feedback_menu_item_title"
app:showAsAction="never"/>
</menu>

0 comments on commit dd5ca40

Please sign in to comment.