Updated the color constants to match material.
This commit is contained in:
@@ -419,7 +419,7 @@ public class SunshineSyncAdapter extends AbstractThreadedSyncAdapter {
|
||||
// notifications. Just throw in some data.
|
||||
NotificationCompat.Builder mBuilder =
|
||||
new NotificationCompat.Builder(getContext())
|
||||
.setColor(resources.getColor(R.color.sunshine_light_blue))
|
||||
.setColor(resources.getColor(R.color.primary_light))
|
||||
.setSmallIcon(iconId)
|
||||
.setLargeIcon(largeIcon)
|
||||
.setContentTitle(title)
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
</item>
|
||||
|
||||
<item android:state_activated="true"
|
||||
android:drawable="@color/sunshine_light_blue"/>
|
||||
android:drawable="@color/primary_light"/>
|
||||
|
||||
<item android:state_selected="true"
|
||||
android:drawable="@color/sunshine_light_blue"/>
|
||||
android:drawable="@color/primary_light"/>
|
||||
|
||||
<item android:drawable="@color/sunshine_blue" />
|
||||
<item android:drawable="@color/primary" />
|
||||
</selector>
|
||||
@@ -24,7 +24,7 @@
|
||||
<!-- When the view is "activated". In SINGLE_CHOICE_MODE, it flags the active row
|
||||
of a ListView -->
|
||||
<item android:state_activated="true"
|
||||
android:drawable="@color/sunshine_light_blue" />
|
||||
android:drawable="@color/primary_light" />
|
||||
|
||||
<!-- Default, "just hangin' out" state. -->
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@color/sunshine_light_blue"/>
|
||||
android:drawable="@color/primary_light"/>
|
||||
|
||||
<item android:state_activated="true"
|
||||
android:drawable="@color/sunshine_light_blue"/>
|
||||
android:drawable="@color/primary_light"/>
|
||||
|
||||
<item android:state_selected="true"
|
||||
android:drawable="@color/sunshine_light_blue"/>
|
||||
android:drawable="@color/primary_light"/>
|
||||
|
||||
<item android:drawable="@color/sunshine_blue" />
|
||||
<item android:drawable="@color/primary" />
|
||||
</selector>
|
||||
@@ -18,12 +18,12 @@
|
||||
|
||||
<!-- State when a row is being pressed, but hasn't yet been activated (finger down) -->
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@color/sunshine_light_blue" />
|
||||
android:drawable="@color/primary_light" />
|
||||
|
||||
<!-- When the view is "activated". In SINGLE_CHOICE_MODE, it flags the active row
|
||||
of a ListView -->
|
||||
<item android:state_activated="true"
|
||||
android:drawable="@color/sunshine_light_blue" />
|
||||
android:drawable="@color/primary_light" />
|
||||
|
||||
<!-- Default, "just hangin' out" state. -->
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<!-- Settings activity action bar styles -->
|
||||
<style name="ActionBar.V14.Sunshine.NoTitle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
|
||||
<item name="android:background">@color/sunshine_blue</item>
|
||||
<item name="android:background">@color/primary</item>
|
||||
<item name="android:height">56dp</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -17,8 +17,8 @@
|
||||
<resources>
|
||||
<!-- Settings activity theme. -->
|
||||
<style name="SettingsTheme" parent="@android:style/Theme.Material.Light.DarkActionBar">
|
||||
<item name="android:colorPrimary">@color/sunshine_blue</item>
|
||||
<item name="android:colorPrimaryDark">@color/sunshine_dark_blue</item>
|
||||
<item name="android:colorPrimary">@color/primary</item>
|
||||
<item name="android:colorPrimaryDark">@color/primary_dark</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
@@ -21,8 +21,10 @@
|
||||
<color name="grey_700">#646464</color>
|
||||
<color name="black">#000000</color>
|
||||
|
||||
<color name="sunshine_light_blue">#ff64c2f4</color>
|
||||
<color name="sunshine_blue">#ff1ca8f4</color>
|
||||
<color name="sunshine_dark_blue">#0288D1</color>
|
||||
<!-- using the "Light Blue" Material Palette -->
|
||||
<color name="primary">#03A9F4</color> <!-- 500 -->
|
||||
<color name="primary_dark">#0288D1</color> <!-- 700 -->
|
||||
<color name="primary_light">#B3E5FC</color> <!-- 100 -->
|
||||
<color name="accent">#FFD740</color>
|
||||
|
||||
</resources>
|
||||
@@ -17,8 +17,9 @@
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="colorPrimary">@color/sunshine_blue</item>
|
||||
<item name="colorPrimaryDark">@color/sunshine_dark_blue</item>
|
||||
<item name="colorPrimary">@color/primary</item>
|
||||
<item name="colorPrimaryDark">@color/primary_dark</item>
|
||||
<item name="colorAccent">@color/accent</item>
|
||||
</style>
|
||||
|
||||
<!-- Main activity theme. -->
|
||||
|
||||
Reference in New Issue
Block a user