use darker colors for actionbar on dark theme

This commit is contained in:
Daniel Gultsch 2016-06-10 20:15:09 +02:00
parent e2a803ee04
commit 4bf9a1e809
6 changed files with 15 additions and 13 deletions

View File

@ -170,7 +170,7 @@ public class NotificationService {
}
private void setNotificationColor(final Builder mBuilder) {
mBuilder.setColor(mXmppConnectionService.getResources().getColor(R.color.primary));
mBuilder.setColor(mXmppConnectionService.getResources().getColor(R.color.primary500));
}
public void updateNotification(final boolean notify) {

View File

@ -387,7 +387,7 @@ public abstract class XmppActivity extends Activity {
mColorRed = getResources().getColor(R.color.red800);
mColorOrange = getResources().getColor(R.color.orange500);
mColorGreen = getResources().getColor(R.color.green500);
mPrimaryColor = getResources().getColor(R.color.primary);
mPrimaryColor = getResources().getColor(R.color.primary500);
mPrimaryBackgroundColor = getResources().getColor(R.color.grey50);
mSecondaryBackgroundColor = getResources().getColor(R.color.grey200);

View File

@ -7,7 +7,7 @@
<View
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="@color/primary"/>
android:background="@color/primary500"/>
<FrameLayout
android:id="@+id/swipeable_item"

View File

@ -2,8 +2,8 @@
<resources>
<style name="ConversationsTheme" parent="@android:style/Theme.Material.Light.DarkActionBar">
<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/primary_dark</item>
<item name="android:colorPrimary">@color/primary500</item>
<item name="android:colorPrimaryDark">@color/primary700</item>
<item name="android:colorAccent">@color/accent</item>
<item name="attr/color_text_primary">@color/black87</item>
@ -62,8 +62,8 @@
</style>
<style name="ConversationsTheme.Dark" parent="android:Theme.Material">
<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/primary_dark</item>
<item name="android:colorPrimary">@color/primary800</item>
<item name="android:colorPrimaryDark">@color/primary900</item>
<item name="android:colorAccent">@color/accent</item>
<item name="attr/color_text_primary">@color/white</item>

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary">#ff259b24</color>
<color name="primary_dark">#ff0a7e07</color>
<color name="primary500">#ff259b24</color>
<color name="primary700">#ff0a7e07</color>
<color name="primary800">#ff026100</color>
<color name="primary900">#ff024500</color>
<color name="accent">#ff0091ea</color>
<color name="black87">#de000000</color>
<color name="black54">#8a000000</color>

View File

@ -128,15 +128,15 @@
</style>
<style name="ConversationsActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@color/primary</item>
<item name="android:backgroundStacked">@color/primary_dark</item>
<item name="android:background">@color/primary500</item>
<item name="android:backgroundStacked">@color/primary700</item>
<item name="android:displayOptions">showHome|homeAsUp|showTitle</item>
<item name="android:icon">@android:color/transparent</item>
</style>
<style name="ConversationsActionBar.Dark" parent="@android:style/Widget.Holo.ActionBar.Solid">
<item name="android:background">@color/primary</item>
<item name="android:backgroundStacked">@color/primary_dark</item>
<item name="android:background">@color/primary800</item>
<item name="android:backgroundStacked">@color/primary900</item>
<item name="android:displayOptions">showHome|homeAsUp|showTitle</item>
<item name="android:icon">@android:color/transparent</item>
</style>