]> git.ktnx.net Git - mobile-ledger.git/commitdiff
explicit pop-up background color for auto-complete text views in dark
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 7 May 2021 16:47:23 +0000 (19:47 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 7 May 2021 16:47:23 +0000 (19:47 +0300)
can't find a way to reference the theme-wide color for pop-up menus and
the app drawer

without this, the background is black, which is a problem some times
because the main windows background is also black

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

index 2e93dd12618ad0620d6f719eb1fd0620e52e2429..c34427f11c54a64d5456772f7a624c85e5f2789f 100644 (file)
     <!-- Base application theme. -->
     <!-- base hue: 261.2245° -->
     <!-- target primary color: #935FF2 -->
+    <style name="MoLeAutoCompleteTextViewStyle" parent="Widget.AppCompat.AutoCompleteTextView">
+        <item name="android:popupBackground">#272727</item>
+    </style>
+
     <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
         <item name="colorOnPrimary">@android:color/white</item>
         <item name="drawer_background">?android:attr/popupBackground</item>
@@ -33,6 +37,7 @@
         <item name="textInputStyle">
             @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense
         </item>
+        <item name="autoCompleteTextViewStyle">@style/MoLeAutoCompleteTextViewStyle</item>
         <item name="colorError">#FFE1E2</item>
         <item name="colorOnError">#CD1609</item>
         <item name="main_header_shadow_height">12dp</item>