Skip to content

Commit c643479

Browse files
AndrewLopezHerrerajamescr
authored andcommitted
feat: A border has been added to the contextual menus on the main screen and to the track detail spinner.
fix: It resolves the low contrast that existed between the contextual menus and the rest of the application. docs: Nothing
1 parent 9fc21ac commit c643479

4 files changed

Lines changed: 21 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android">
3+
<solid android:color="?android:attr/colorBackground" />
4+
<stroke
5+
android:width="2dp"
6+
android:color="#A4A4A4" /> <corners android:radius="4dp" />
7+
</shape>

app/src/main/res/layout/trackdetail_fields.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
android:layout_marginTop="8dp"
7272
android:minHeight="48dp"
7373
android:entries="@array/prefs_osm_visibility_keys"
74+
android:popupBackground="@drawable/menu_border_background"
7475
style="@style/Widget.AppCompat.Spinner.Underlined" />
7576

7677
</merge>

app/src/main/res/values-v14/theme_highcontrast.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<!-- item name="android:background">#ffffff</item -->
55
<item name="android:buttonStyle">@style/Widget.Button</item>
66
<item name="android:buttonStyleToggle">@style/Widget.Button.Toggle</item>
7+
<item name="actionOverflowMenuStyle">@style/PopupMenu</item>
78
</style>
89

910
<style name="Widget.Button" parent="@android:style/Widget.DeviceDefault.Button">
@@ -14,5 +15,9 @@
1415
<style name="Widget.Button.Toggle" parent="@android:style/Widget.DeviceDefault.Button.Toggle">
1516
<item name="android:textColor">#ffffff</item>
1617
</style>
18+
19+
<style name="PopupMenu" parent="Widget.AppCompat.PopupMenu.Overflow">
20+
<item name="android:popupBackground">@drawable/menu_border_background</item>
21+
</style>
1722

1823
</resources>

app/src/main/res/values/styles.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
99
<item name="colorAccent">@color/colorAccent</item>
1010
-->
11-
11+
<item name="actionOverflowMenuStyle">@style/PopupMenu</item>
12+
<item name="android:contextPopupMenuStyle">@style/PopupMenu</item>
13+
<item name="android:panelBackground">@drawable/menu_border_background</item>
1214
</style>
1315

1416
<!-- Base application theme. -->
@@ -20,4 +22,9 @@
2022
-->
2123
</style>
2224

25+
<style name="PopupMenu" parent="Widget.AppCompat.PopupMenu.Overflow">
26+
<item name="android:popupBackground">@drawable/menu_border_background</item>
27+
</style>
28+
29+
2330
</resources>

0 commit comments

Comments
 (0)