aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/Notify.java
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-02-22 21:28:57 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2015-02-22 21:28:57 +0100
commite46fa777abebaa70847d625b704cf1bef77458f5 (patch)
tree10a34255d0ff2d4c06fe819740ab198beb51b9d8 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/Notify.java
parent04740121a5a964718664436a4a7548c2a2f6ec39 (diff)
downloadopen-keychain-e46fa777abebaa70847d625b704cf1bef77458f5.tar.gz
open-keychain-e46fa777abebaa70847d625b704cf1bef77458f5.tar.bz2
open-keychain-e46fa777abebaa70847d625b704cf1bef77458f5.zip
Use right colors in snackbars and logs
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/Notify.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/Notify.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/Notify.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/Notify.java
index 66d6bf9e3..6f8c477c0 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/Notify.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/Notify.java
@@ -26,6 +26,8 @@ import com.nispok.snackbar.Snackbar.SnackbarDuration;
import com.nispok.snackbar.SnackbarManager;
import com.nispok.snackbar.listeners.ActionClickListener;
+import org.sufficientlysecure.keychain.R;
+
/**
* Notify wrapper which allows a more easy use of different notification libraries
*/
@@ -52,10 +54,10 @@ public class Notify {
case OK:
break;
case WARN:
- bar.textColor(Color.YELLOW);
+ bar.textColor(activity.getResources().getColor(R.color.android_orange_light));
break;
case ERROR:
- bar.textColor(Color.RED);
+ bar.textColor(activity.getResources().getColor(R.color.android_red_light));
break;
}
@@ -74,13 +76,13 @@ public class Notify {
switch (style) {
case OK:
- bar.actionColor(Color.GREEN);
+ bar.actionColor(activity.getResources().getColor(R.color.android_green_light));
break;
case WARN:
- bar.textColor(Color.YELLOW);
+ bar.textColor(activity.getResources().getColor(R.color.android_orange_light));
break;
case ERROR:
- bar.textColor(Color.RED);
+ bar.textColor(activity.getResources().getColor(R.color.android_red_light));
break;
}
@@ -116,13 +118,13 @@ public class Notify {
switch (style) {
case OK:
- bar.actionColor(Color.GREEN);
+ bar.actionColor(activity.getResources().getColor(R.color.android_green_light));
break;
case WARN:
- bar.textColor(Color.YELLOW);
+ bar.textColor(activity.getResources().getColor(R.color.android_orange_light));
break;
case ERROR:
- bar.textColor(Color.RED);
+ bar.textColor(activity.getResources().getColor(R.color.android_red_light));
break;
}