Change summary
src/cheogram/res/values/themes.xml | 8
src/main/java/eu/siacs/conversations/services/NotificationService.java | 2
src/main/java/eu/siacs/conversations/ui/widget/UnreadCountCustomView.java | 4
src/main/res/values/colors.xml | 3
4 files changed, 9 insertions(+), 8 deletions(-)
Detailed changes
@@ -2,7 +2,7 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="ConversationsTheme" parent="Theme.AppCompat.Light.NoActionBar">
- <item name="colorPrimary">#7401CF</item>
+ <item name="colorPrimary">@color/perpy</item>
<item name="colorPrimaryDark">#1E0036</item>
<item name="colorAccent">#1E0036</item>
<item name="popupOverlayStyle">@style/ThemeOverlay.AppCompat.Light</item>
@@ -70,7 +70,7 @@
@drawable/message_bubble_received
</item>
- <item name="unread_count">@color/green700_desaturated</item>
+ <item name="unread_count">@color/perpy</item>
<item name="conversations_overview_background">@color/green700</item>
@@ -149,7 +149,7 @@
</style>
<style name="ConversationsTheme.Dark" parent="Theme.AppCompat.NoActionBar">
- <item name="colorPrimary">#7401CF</item>
+ <item name="colorPrimary">@color/perpy</item>
<item name="colorPrimaryDark">#1E0036</item>
<item name="colorAccent">#FFC700</item>
<item name="popupOverlayStyle">@style/ThemeOverlay.AppCompat.Dark</item>
@@ -226,7 +226,7 @@
@drawable/message_bubble_received_dark
</item>
- <item name="unread_count">@color/green900_desaturated</item>
+ <item name="unread_count">@color/perpy</item>
<item name="conversations_overview_background">@color/green900</item>
@@ -687,7 +687,7 @@ public class NotificationService {
}
private void setNotificationColor(final Builder mBuilder) {
- mBuilder.setColor(ContextCompat.getColor(mXmppConnectionService, R.color.green600));
+ mBuilder.setColor(ContextCompat.getColor(mXmppConnectionService, R.color.perpy));
}
public void updateNotification() {
@@ -38,7 +38,7 @@ public class UnreadCountCustomView extends View {
private void initXMLAttrs(Context context, AttributeSet attrs) {
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.UnreadCountCustomView);
- setBackgroundColor(a.getColor(a.getIndex(0), ContextCompat.getColor(context, R.color.green700_desaturated)));
+ setBackgroundColor(a.getColor(a.getIndex(0), ContextCompat.getColor(context, R.color.perpy)));
a.recycle();
}
@@ -74,4 +74,4 @@ public class UnreadCountCustomView extends View {
public void setBackgroundColor(int backgroundColor) {
this.backgroundColor = backgroundColor;
}
-}
+}
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
+ <color name="perpy">#7401CF</color>
<color name="black">#ff000000</color>
<color name="black87">#de000000</color>
<color name="black54">#8a000000</color>
@@ -44,4 +45,4 @@
<color name="splash_screen_status_bar">#ffe0e0e0</color> <!-- gray300 -->
<color name="blue500">#ff2196f3</color>
-</resources>
+</resources>