Skip to content

Commit

Permalink
Use GrapheneOS colors for popup menus
Browse files Browse the repository at this point in the history
  • Loading branch information
t895 authored and thestinger committed Apr 19, 2024
1 parent a29618f commit f74d9eb
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/popupmenu_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http:https://schemas.android.com/apk/res/android">
<solid android:color="?attr/colorSurfaceContainer"/>
<corners
android:radius="8dp"/>
<padding
android:bottom="8dp"
android:top="8dp"/>
</shape>
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_attestation.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http:https://schemas.android.com/apk/res/android"
xmlns:tools="http:https://schemas.android.com/tools"
xmlns:app="http:https://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/colorSurface"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
<color name="graphenePrimaryColor">#FCFCFC</color>
<color name="grapheneOnPrimaryColor">#2C2C2C</color>
<color name="grapheneSurfaceColor">#121212</color>
<color name="grapheneSurfaceContainerColor">#1F1F1F</color>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
<color name="graphenePrimaryColor">#252525</color>
<color name="grapheneOnPrimaryColor">#E6E6E6</color>
<color name="grapheneSurfaceColor">#f8f8f8</color>
<color name="grapheneSurfaceContainerColor">#E6E6E6</color>
</resources>
7 changes: 7 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@
<item name="colorPrimary">@color/graphenePrimaryColor</item>
<item name="colorOnPrimary">@color/grapheneOnPrimaryColor</item>
<item name="colorSurface">@color/grapheneSurfaceColor</item>
<item name="colorSurfaceContainer">@color/grapheneSurfaceContainerColor</item>

<item name="popupMenuStyle">@style/GraphenePopup</item>
</style>

<style name="GraphenePopup" parent="Widget.Material3.PopupMenu">
<item name="popupMenuBackground">@drawable/popupmenu_background</item>
</style>
</resources>

0 comments on commit f74d9eb

Please sign in to comment.