aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-08 11:42:08 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-08 11:42:08 +0200
commitda0b4261252b44af793523864d1185cdedd8d3c4 (patch)
tree19b88f128e42b3bab31eb31caf275c045408f1e5 /src/eu
parent3ac70d4b868df47d14aedc104d1691b8597c5e1f (diff)
contact tiles follow material colors as well
Diffstat (limited to 'src/eu')
-rw-r--r--src/eu/siacs/conversations/ui/ConversationFragment.java10
-rw-r--r--src/eu/siacs/conversations/utils/UIHelper.java9
2 files changed, 13 insertions, 6 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java
index 1e703b48c..300b6c4c1 100644
--- a/src/eu/siacs/conversations/ui/ConversationFragment.java
+++ b/src/eu/siacs/conversations/ui/ConversationFragment.java
@@ -60,6 +60,9 @@ public class ConversationFragment extends Fragment {
protected ArrayAdapter<Message> messageListAdapter;
protected Contact contact;
protected BitmapCache mBitmapCache = new BitmapCache();
+
+ protected int mPrimaryTextColor;
+ protected int mSecondaryTextColor;
protected String queuedPqpMessage = null;
@@ -177,6 +180,9 @@ public class ConversationFragment extends Fragment {
this.inflater = inflater;
+ mPrimaryTextColor = getResources().getColor(R.color.primarytext);
+ mSecondaryTextColor = getResources().getColor(R.color.secondarytext);
+
final View view = inflater.inflate(R.layout.fragment_conversation,
container, false);
chatMsg = (EditText) view.findViewById(R.id.textinput);
@@ -264,7 +270,7 @@ public class ConversationFragment extends Fragment {
if (error) {
viewHolder.time.setTextColor(0xFFe92727);
} else {
- viewHolder.time.setTextColor(0xFF8e8e8e);
+ viewHolder.time.setTextColor(mSecondaryTextColor);
}
if (message.getEncryption() == Message.ENCRYPTION_NONE) {
viewHolder.indicator.setVisibility(View.GONE);
@@ -341,7 +347,7 @@ public class ConversationFragment extends Fragment {
} else {
viewHolder.messageBody.setText("");
}
- viewHolder.messageBody.setTextColor(0xff333333);
+ viewHolder.messageBody.setTextColor(mPrimaryTextColor);
viewHolder.messageBody.setTypeface(null, Typeface.NORMAL);
viewHolder.messageBody.setTextIsSelectable(true);
}
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java
index 529d2b4cb..ddd5e1bea 100644
--- a/src/eu/siacs/conversations/utils/UIHelper.java
+++ b/src/eu/siacs/conversations/utils/UIHelper.java
@@ -51,7 +51,7 @@ import android.widget.TextView;
public class UIHelper {
private static final int BG_COLOR = 0xFF181818;
- private static final int FG_COLOR = 0xFFE5E5E5;
+ private static final int FG_COLOR = 0xFFFAFAFA;
private static final int TRANSPARENT = 0x00000000;
private static final int DATE_NO_YEAR_FLAGS = DateUtils.FORMAT_SHOW_DATE
| DateUtils.FORMAT_NO_YEAR | DateUtils.FORMAT_ABBREV_ALL;
@@ -120,8 +120,9 @@ public class UIHelper {
}
private static int getNameColor(String name) {
- int holoColors[] = { 0xFF1da9da, 0xFFb368d9, 0xFF83b600, 0xFFffa713,
- 0xFFe92727 };
+ /*int holoColors[] = { 0xFF1da9da, 0xFFb368d9, 0xFF83b600, 0xFFffa713,
+ 0xFFe92727 };*/
+ int holoColors[] = {0xFFe91e63, 0xFF9c27b0, 0xFF673ab7, 0xFF3f51b5, 0xFF5677fc, 0xFF03a9f4, 0xFF00bcd4, 0xFF009688, 0xFFff5722, 0xFF795548, 0xFF607d8b};
return holoColors[(int) ((name.hashCode() & 0xffffffffl) % holoColors.length)];
}
@@ -165,7 +166,7 @@ public class UIHelper {
if (names.length > 4) {
letters[3] = "\u2026"; // Unicode ellipsis
- colors[3] = 0xFF444444;
+ colors[3] = 0xFF202020;
}
}