系统dialog,seekbar颜色

dialog颜色

frameworks/base/core/res/res/values/styles_holo.xml
     <style name="Holo.ButtonBar.AlertDialog">
         <item name="background">@null</item>
         <item name="dividerPadding">0dp</item>
+                <item name="textColor">#E6333F</item>
     </style>
 
     <style name="Widget.Holo.TextView" parent="Widget.TextView" />
@@ -795,6 +796,7 @@ please see styles_device_defaults.xml.
     <style name="Holo.Light.ButtonBar.AlertDialog">
         <item name="background">@null</item>
         <item name="dividerPadding">0dp</item>
+               <item name="textColor">#E6333F</item>
frameworks/base/core/res/res/values/styles_material.xml
     <!-- Alert dialog button bar button -->
     <style name="Widget.Material.Button.ButtonBar.AlertDialog" parent="Widget.Material.Button.Borderless.Colored">
         <item name="minWidth">64dp</item>
+                <item name="textColor">#E6333F</item>
         <item name="minHeight">@dimen/alert_dialog_button_bar_height</item

seekbar颜色

diff --git a/frameworks/base/core/res/res/drawable/progress_horizontal_material.xml b/frameworks/base/core/res/res/drawable/progress_horizontal_material.xml
index 7978ff3..ce9c9f3 100755
--- a/frameworks/base/core/res/res/drawable/progress_horizontal_material.xml
+++ b/frameworks/base/core/res/res/drawable/progress_horizontal_material.xml
@@ -18,18 +18,18 @@
     <item android:id="@id/background"
           android:gravity="center_vertical|fill_horizontal">
         <shape android:shape="rectangle"
-               android:tint="#E6333F">
+               android:tint="?attr/colorControlNormal">
             <size android:height="@dimen/progress_bar_height_material" />
-            <solid android:color="#E6333F" />
+            <solid android:color="@color/white_disabled_material" />
         </shape>
     </item>
     <item android:id="@id/secondaryProgress"
           android:gravity="center_vertical|fill_horizontal">
         <scale android:scaleWidth="100%">
             <shape android:shape="rectangle"
-                   android:tint="#E6333F">
+                   android:tint="?attr/colorControlActivated">
                 <size android:height="@dimen/progress_bar_height_material" />
-                <solid android:color="#E6333F" />
+                <solid android:color="@color/white_disabled_material" />
             </shape>
         </scale>
     </item>
diff --git a/frameworks/base/core/res/res/drawable/seekbar_track_material.xml b/frameworks/base/core/res/res/drawable/seekbar_track_material.xml
index 0db60eb..a17f2be 100755
--- a/frameworks/base/core/res/res/drawable/seekbar_track_material.xml
+++ b/frameworks/base/core/res/res/drawable/seekbar_track_material.xml
@@ -18,9 +18,9 @@
     <item android:id="@id/background"
           android:gravity="center_vertical|fill_horizontal">
         <shape android:shape="rectangle"
-               android:tint="#E6333F">
+               android:tint="@color/control_nodisable_material">
             <size android:height="@dimen/seekbar_track_background_height_material" />
-            <solid android:color="#E6333F" />
+            <solid android:color="@color/white_disabled_material" />
         </shape>
     </item>
     <item android:id="@id/secondaryProgress"
@@ -31,9 +31,9 @@
                       android:drawable="@color/transparent" />
                 <item>
                     <shape android:shape="rectangle"
-                           android:tint="#E6333F">
+                           android:tint="?attr/colorControlActivated">
                         <size android:height="@dimen/seekbar_track_progress_height_material" />
-                        <solid android:color="#E6333F" />
+                        <solid android:color="@color/white_disabled_material" />
                     </shape>
                 </item>
             </selector>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

心有纤纤结

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值