diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java index aace268af..0a6d64c64 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java @@ -98,7 +98,7 @@ public class GB { .setContentText(text) .setSmallIcon(connected ? R.drawable.ic_notification : R.drawable.ic_notification_disconnected) .setContentIntent(getContentIntent(context)) - .setColor(context.getResources().getColor(R.color.accent)) + .setColor(context.getResources().getColor(connected ? R.color.accent : R.color.accent_disconnected)) .setOngoing(true); Intent deviceCommunicationServiceIntent = new Intent(context, DeviceCommunicationService.class); @@ -132,7 +132,7 @@ public class GB { .setContentText(text) .setSmallIcon(R.drawable.ic_notification_disconnected) .setContentIntent(getContentIntent(context)) - .setColor(context.getResources().getColor(R.color.accent)) + .setColor(context.getResources().getColor(R.color.accent_disconnected)) .setOngoing(true); if (GBApplication.getPrefs().getString("last_device_address", null) != null) { Intent deviceCommunicationServiceIntent = new Intent(context, DeviceCommunicationService.class); diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index cf32627f0..a64c8a2cb 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -7,6 +7,7 @@ #dd2c00 #0091ea + #ea0000 #000000 #ffffff