diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/food/FoodFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/food/FoodFragment.kt
index 7aa8aad9f3..3cba103783 100644
--- a/app/src/main/java/info/nightscout/androidaps/plugins/general/food/FoodFragment.kt
+++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/food/FoodFragment.kt
@@ -93,7 +93,7 @@ class FoodFragment : DaggerFragment() {
}
}
- binding.clearfilter.setOnClickListener {
+ binding.filterinputLayout.setEndIconOnClickListener {
binding.filter.setText("")
binding.categoryList.setText(rh.gs(R.string.none), false)
binding.subcategoryList.setText(rh.gs(R.string.none), false)
diff --git a/app/src/main/res/layout/food_fragment.xml b/app/src/main/res/layout/food_fragment.xml
index 4ff1de70d9..b27b57f88d 100644
--- a/app/src/main/res/layout/food_fragment.xml
+++ b/app/src/main/res/layout/food_fragment.xml
@@ -16,38 +16,32 @@
android:text="@string/refresheventsfromnightscout"
tools:visibility="visible" />
-
-
-
+ app:boxStrokeColor="@color/mtrl_textinput_default_box_stroke_color"
+ android:hint="@string/filter"
+ android:textColorHint="?attr/colorOnPrimary"
+ app:hintTextColor="?attr/colorOnPrimary"
+ app:startIconDrawable="@android:drawable/ic_menu_search"
+ app:endIconMode="clear_text">
-
+
-
-
+
#FFFFFF
#FFFBFE
#1C1B1F
- #FFFBFE
+ #FAF9F8
#1C1B1F
#E7E0EC
diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml
index 2da4b24680..a31aa056d1 100644
--- a/core/src/main/res/values/styles.xml
+++ b/core/src/main/res/values/styles.xml
@@ -23,7 +23,7 @@
- @color/primaryLightColorDefault
- @color/secondaryLightColorDefault
- - @color/white
+ - @color/aaps_theme_light_background
- @style/Widget.MaterialComponents.PopupMenu
- @style/Widget.MaterialComponents.PopupMenu.Overflow