瀏覽代碼

Use colorSecondary for text field cursor (fixes #2853)

arkon 5 年之前
父節點
當前提交
df625a998f
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/src/main/res/values/styles.xml

+ 5 - 0
app/src/main/res/values/styles.xml

@@ -227,7 +227,12 @@
     <!--Widgets.TextInputLayout-->
     <!--=======================-->
 
+    <style name="ThemeOverlay.Widget.TextInputEditText.OutlinedBox" parent="ThemeOverlay.MaterialComponents.TextInputEditText.OutlinedBox">
+        <item name="colorControlActivated">?attr/colorSecondary</item>
+    </style>
+
     <style name="Theme.Widget.TextInputLayout.OutlinedBox" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox">
+        <item name="materialThemeOverlay">@style/ThemeOverlay.Widget.TextInputEditText.OutlinedBox</item>
         <item name="boxStrokeColor">@color/text_input_stroke</item>
         <item name="hintTextColor">?attr/colorSecondary</item>
     </style>