소스 검색

Set default colorAccent values for dialog

Aidan Follestad 10 년 전
부모
커밋
b6dba67a6f
3개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      library/src/main/res/values-v11/styles.xml
  2. 2 0
      library/src/main/res/values-v21/styles.xml
  3. 2 0
      library/src/main/res/values/styles.xml

+ 2 - 0
library/src/main/res/values-v11/styles.xml

@@ -8,6 +8,7 @@
         <item name="md_btn_positive_selector">@drawable/md_btn_selector</item>
         <item name="md_btn_neutral_selector">@drawable/md_btn_selector</item>
         <item name="md_btn_negative_selector">@drawable/md_btn_selector</item>
+        <item name="colorAccent">#000</item>
 
         <item name="android:windowBackground">@android:color/transparent</item>
     </style>
@@ -19,6 +20,7 @@
         <item name="md_btn_positive_selector">@drawable/md_btn_selector_dark</item>
         <item name="md_btn_neutral_selector">@drawable/md_btn_selector_dark</item>
         <item name="md_btn_negative_selector">@drawable/md_btn_selector_dark</item>
+        <item name="colorAccent">#fff</item>
 
         <item name="android:windowBackground">@android:color/transparent</item>
     </style>

+ 2 - 0
library/src/main/res/values-v21/styles.xml

@@ -8,6 +8,7 @@
         <item name="md_btn_positive_selector">@drawable/md_btn_selector_ripple</item>
         <item name="md_btn_neutral_selector">@drawable/md_btn_selector_ripple</item>
         <item name="md_btn_negative_selector">@drawable/md_btn_selector_ripple</item>
+        <item name="colorAccent">#000</item>
     </style>
 
     <style name="MD_Dark" parent="Theme.AppCompat.Dialog">
@@ -17,6 +18,7 @@
         <item name="md_btn_positive_selector">@drawable/md_btn_selector_ripple_dark</item>
         <item name="md_btn_neutral_selector">@drawable/md_btn_selector_ripple_dark</item>
         <item name="md_btn_negative_selector">@drawable/md_btn_selector_ripple_dark</item>
+        <item name="colorAccent">#fff</item>
     </style>
 
 </resources>

+ 2 - 0
library/src/main/res/values/styles.xml

@@ -7,6 +7,7 @@
         <item name="md_btn_positive_selector">@drawable/md_btn_selector</item>
         <item name="md_btn_neutral_selector">@drawable/md_btn_selector</item>
         <item name="md_btn_negative_selector">@drawable/md_btn_selector</item>
+        <item name="colorAccent">#000</item>
     </style>
 
     <style name="MD_Dark" parent="Theme.AppCompat.Dialog">
@@ -16,6 +17,7 @@
         <item name="md_btn_positive_selector">@drawable/md_btn_selector_dark</item>
         <item name="md_btn_neutral_selector">@drawable/md_btn_selector_dark</item>
         <item name="md_btn_negative_selector">@drawable/md_btn_selector_dark</item>
+        <item name="colorAccent">#fff</item>
 
         <item name="android:windowFrame">@null</item>
         <item name="android:windowBackground">@android:color/transparent</item>