aboutsummaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-08 11:41:19 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-08 11:41:19 +0200
commit3ac70d4b868df47d14aedc104d1691b8597c5e1f (patch)
treef6333cd8fc90b36c25de01a5909349b1ef1db25e /res/layout
parent37a8b87235f8c85a851976f5995c8c8c00c83fa5 (diff)
uniformed colors. made colors a little material
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/account_row.xml5
-rw-r--r--res/layout/activity_contact_details.xml26
-rw-r--r--res/layout/activity_muc_details.xml27
-rw-r--r--res/layout/contact.xml6
-rw-r--r--res/layout/contact_key.xml4
-rw-r--r--res/layout/conversation_list_row.xml11
-rw-r--r--res/layout/dialog_verify_otr.xml21
-rw-r--r--res/layout/edit_contact_name.xml2
-rw-r--r--res/layout/fragment_conversation.xml11
-rw-r--r--res/layout/manage_accounts.xml3
-rw-r--r--res/layout/message_recieved.xml12
-rw-r--r--res/layout/message_sent.xml12
12 files changed, 76 insertions, 64 deletions
diff --git a/res/layout/account_row.xml b/res/layout/account_row.xml
index 248b17f7..0c18d9b2 100644
--- a/res/layout/account_row.xml
+++ b/res/layout/account_row.xml
@@ -20,6 +20,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
+ android:textColor="@color/primarytext"
android:singleLine="true"
android:scrollHorizontally="false"/>
@@ -35,14 +36,14 @@
android:layout_height="wrap_content"
android:text="@string/account_status"
android:textStyle="bold"
- android:textSize="14sp" />
+ android:textSize="14sp"
+ android:textColor="@color/primarytext"/>
<TextView
android:id="@+id/account_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4dp"
- android:textColor="#669900"
android:text="@string/account_status_unknown"
android:textStyle="bold"
android:textSize="14sp"/>
diff --git a/res/layout/activity_contact_details.xml b/res/layout/activity_contact_details.xml
index ae3aaf7c..d55dcc9c 100644
--- a/res/layout/activity_contact_details.xml
+++ b/res/layout/activity_contact_details.xml
@@ -2,7 +2,7 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="#e5e5e5">
+ android:background="@color/primarybackground">
<LinearLayout
android:layout_width="match_parent"
@@ -14,7 +14,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp"
- android:text="@string/action_contact_details" />
+ android:text="@string/action_contact_details"
+ android:textColor="@color/primarytext"/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -43,8 +44,8 @@
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:singleLine="true"
- android:textColor="#5b5b5b"
- android:textSize="14sp" />
+ android:textSize="14sp"
+ android:textColor="@color/primarytext"/>
<TextView
android:id="@+id/details_contactstatus"
@@ -52,6 +53,7 @@
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:textSize="18sp"
+ android:textColor="@color/primarytext"
android:textStyle="bold" />
<TextView
android:id="@+id/details_lastseen"
@@ -59,8 +61,8 @@
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:singleLine="true"
- android:textColor="#5b5b5b"
- android:textSize="14sp" />
+ android:textSize="14sp"
+ android:textColor="@color/primarytext"/>
</LinearLayout>
</RelativeLayout>
@@ -71,20 +73,22 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp"
- android:text="@string/your_account" />
+ android:text="@string/your_account"
+ android:textColor="@color/primarytext"/>
<TextView
android:id="@+id/details_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:textSize="14sp"
- android:textColor="#5b5b5b" />
+ android:textColor="@color/primarytext" />
<TextView
style="@style/sectionHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp"
- android:text="@string/subscriptions" />
+ android:text="@string/subscriptions"
+ android:textColor="@color/primarytext"/>
<CheckBox
android:id="@+id/details_send_presence"
@@ -92,7 +96,7 @@
android:layout_height="wrap_content"
android:text="@string/send_presence_updates"
android:textSize="14sp"
- android:textColor="#5b5b5b" />
+ android:textColor="@color/primarytext" />
<CheckBox
android:id="@+id/details_receive_presence"
@@ -100,7 +104,7 @@
android:layout_height="wrap_content"
android:text="@string/receive_presence_updates"
android:textSize="14sp"
- android:textColor="#5b5b5b" />
+ android:textColor="@color/primarytext" />
<TextView
android:id="@+id/ask_again"
diff --git a/res/layout/activity_muc_details.xml b/res/layout/activity_muc_details.xml
index ebd3db0f..15f09c7c 100644
--- a/res/layout/activity_muc_details.xml
+++ b/res/layout/activity_muc_details.xml
@@ -2,7 +2,7 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="#e5e5e5">
+ android:background="@color/secondarybackground">
<LinearLayout
android:layout_width="wrap_content"
@@ -13,11 +13,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp"
- android:text="@string/muc_details_conference" />
+ android:text="@string/muc_details_conference"
+ android:textColor="@color/primarytext"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="#eee" >
+ android:background="@color/primarybackground" >
<EditText
@@ -26,7 +27,7 @@
android:layout_height="48dp"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/muc_edit_subject"
- android:background="#eee"
+ android:background="@color/primarybackground"
android:ems="10"
android:hint="@string/muc_details_conference_subject"
android:inputType="textAutoComplete"
@@ -52,8 +53,8 @@
android:layout_height="wrap_content"
android:padding="8dp"
android:singleLine="true"
- android:textColor="#5b5b5b"
- android:textSize="14sp"/>
+ android:textSize="14sp"
+ android:textColor="@color/primarytext"/>
<TextView
style="@style/sectionHeader"
@@ -62,12 +63,13 @@
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp"
- android:text="@string/muc_details_your_nickname" />
+ android:text="@string/muc_details_your_nickname"
+ android:textColor="@color/primarytext"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="#eee" >
+ android:background="@color/primarybackground" >
<EditText
@@ -76,7 +78,7 @@
android:layout_height="48dp"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/muc_edit_nick"
- android:background="#eee"
+ android:background="@color/primarybackground"
android:ems="10"
android:hint="@string/muc_details_your_nickname"
android:inputType="textEmailAddress"
@@ -103,7 +105,7 @@
android:padding="8dp"
android:singleLine="true"
android:textSize="14sp"
- android:textColor="#5b5b5b"/>
+ android:textColor="@color/primarytext"/>
<LinearLayout
android:id="@+id/muc_more_details"
@@ -119,12 +121,13 @@
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp"
- android:text="@string/muc_details_other_members" />
+ android:text="@string/muc_details_other_members"
+ android:textColor="@color/primarytext"/>
<LinearLayout
android:id="@+id/muc_members"
android:layout_width="fill_parent"
- android:layout_height="fill_parent"
+ android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical"
android:divider="?android:dividerHorizontal"
diff --git a/res/layout/contact.xml b/res/layout/contact.xml
index e637e4b1..8432c7a3 100644
--- a/res/layout/contact.xml
+++ b/res/layout/contact.xml
@@ -25,23 +25,23 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
- android:textColor="#5b5b5b"
+ android:textColor="@color/primarytext"
android:singleLine="true"
/>
<TextView
android:id="@+id/contact_jid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColor="#5b5b5b"
android:singleLine="true"
android:textSize="14sp"
+ android:textColor="@color/primarytext"
/>
<TextView
android:id="@+id/key"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
- android:textColor="#5b5b5b"
+ android:textColor="@color/primarytext"
android:typeface="monospace"
android:visibility="gone"
/>
diff --git a/res/layout/contact_key.xml b/res/layout/contact_key.xml
index dcac42e9..0c457c25 100644
--- a/res/layout/contact_key.xml
+++ b/res/layout/contact_key.xml
@@ -10,13 +10,13 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
- android:textColor="#5b5b5b"
+ android:textColor="@color/primarytext"
android:typeface="monospace"
/>
<TextView
android:id="@+id/key_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColor="#5b5b5b"
+ android:textColor="@color/secondarytext"
/>
</LinearLayout> \ No newline at end of file
diff --git a/res/layout/conversation_list_row.xml b/res/layout/conversation_list_row.xml
index 8b9c461d..97985737 100644
--- a/res/layout/conversation_list_row.xml
+++ b/res/layout/conversation_list_row.xml
@@ -25,8 +25,8 @@
android:layout_alignLeft="@+id/conversation_lastwrapper"
android:layout_toLeftOf="@+id/conversation_lastupdate"
android:singleLine="true"
- android:textColor="#636363"
android:textSize="18sp"
+ android:textColor="@color/primarytext"
android:typeface="sans" />
<LinearLayout
@@ -41,9 +41,8 @@
android:id="@+id/conversation_lastmsg"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
-
- android:textColor="#636363"
android:textSize="14sp"
+ android:textColor="@color/primarytext"
android:singleLine="true"
android:scrollHorizontally="false"
/>
@@ -52,7 +51,7 @@
android:id="@+id/conversation_lastimage"
android:layout_width="fill_parent"
android:layout_height="36dp"
- android:background="#333333"
+ android:background="@color/primarytext"
android:scaleType="centerCrop" />
</LinearLayout>
@@ -63,8 +62,8 @@
android:layout_alignBaseline="@+id/conversation_name"
android:layout_alignParentRight="true"
android:gravity="right"
- android:textColor="#636363"
- android:textSize="12sp" />
+ android:textSize="12sp"
+ android:textColor="@color/secondarytext"/>
</RelativeLayout>
diff --git a/res/layout/dialog_verify_otr.xml b/res/layout/dialog_verify_otr.xml
index a55dce01..c518c647 100644
--- a/res/layout/dialog_verify_otr.xml
+++ b/res/layout/dialog_verify_otr.xml
@@ -12,7 +12,7 @@
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:text="Jabber ID"
- android:textColor="#33B5E5"
+ android:textColor="@color/primarytext"
android:textSize="18sp"/>
<TextView
@@ -20,13 +20,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
- android:textSize="14sp" />
+ android:textSize="14sp"
+ android:textColor="@color/secondarytext"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="8dp"
- android:text="OTR fingerprint"
- android:textColor="#33B5E5"
+ android:text="@string/otr_fingerprint"
+ android:textColor="@color/primarytext"
android:textSize="18sp"/>
<TextView
@@ -35,14 +36,15 @@
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:textSize="14sp"
- android:typeface="monospace"/>
+ android:typeface="monospace"
+ android:textColor="@color/secondarytext"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="8dp"
- android:text="Your fingerprint"
- android:textColor="#33B5E5"
- android:textSize="18sp"/>
+ android:text="@string/your_fingerprint"
+ android:textSize="18sp"
+ android:textColor="@color/primarytext"/>
<TextView
android:id="@+id/verify_otr_yourprint"
@@ -50,5 +52,6 @@
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:textSize="14sp"
- android:typeface="monospace"/>
+ android:typeface="monospace"
+ android:textColor="@color/secondarytext"/>
</LinearLayout>
diff --git a/res/layout/edit_contact_name.xml b/res/layout/edit_contact_name.xml
index 206c7432..42f0fb88 100644
--- a/res/layout/edit_contact_name.xml
+++ b/res/layout/edit_contact_name.xml
@@ -10,7 +10,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/enter_new_name"
- android:textColor="#5b5b5b"
+ android:textColor="@color/primarytext"
android:textSize="18sp" />
<EditText
diff --git a/res/layout/fragment_conversation.xml b/res/layout/fragment_conversation.xml
index 4bf93eab..749d97b2 100644
--- a/res/layout/fragment_conversation.xml
+++ b/res/layout/fragment_conversation.xml
@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="#e5e5e5" >
+ android:background="@color/primarybackground" >
<RelativeLayout
android:id="@+id/textsend"
@@ -11,7 +11,7 @@
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
- android:background="#eee" >
+ android:background="@color/primarybackground" >
<EditText
android:id="@+id/textinput"
@@ -19,7 +19,7 @@
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/textSendButton"
- android:background="#eee"
+ android:background="@color/primarybackground"
android:ems="10"
android:inputType="textShortMessage|textMultiLine|textCapSentences"
android:minHeight="48dp"
@@ -27,7 +27,8 @@
android:paddingBottom="12dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
- android:paddingTop="12dp" >
+ android:paddingTop="12dp"
+ android:textColor="@color/primarytext">
<requestFocus />
</EditText>
@@ -49,7 +50,7 @@
android:layout_above="@+id/textsend"
android:layout_alignParentLeft="true"
android:layout_below="@+id/info_box"
- android:background="#e5e5e5"
+ android:background="@color/secondarybackground"
android:divider="@null"
android:dividerHeight="0dp"
android:listSelector="@android:color/transparent"
diff --git a/res/layout/manage_accounts.xml b/res/layout/manage_accounts.xml
index 0866477a..a2a01bf1 100644
--- a/res/layout/manage_accounts.xml
+++ b/res/layout/manage_accounts.xml
@@ -8,7 +8,8 @@
android:id="@+id/account_list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- tools:listitem="@layout/account_row">
+ android:divider="@color/divider"
+ android:dividerHeight="1dp">
</ListView>
</LinearLayout> \ No newline at end of file
diff --git a/res/layout/message_recieved.xml b/res/layout/message_recieved.xml
index 7949f2e1..563d730d 100644
--- a/res/layout/message_recieved.xml
+++ b/res/layout/message_recieved.xml
@@ -20,7 +20,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
- android:background="#ededed"
+ android:background="@color/primarybackground"
android:orientation="vertical"
android:gravity="center_vertical"
android:paddingTop="4dp"
@@ -35,7 +35,7 @@
android:adjustViewBounds="true"
android:paddingBottom="2dp"
android:scaleType="fitXY"
- android:background="#333333"
+ android:background="@color/primarytext"
/>
<TextView
@@ -44,8 +44,8 @@
android:layout_height="wrap_content"
android:autoLink="web"
android:textIsSelectable="true"
- android:textColor="#333333"
- android:textSize="14sp"/>
+ android:textSize="14sp"
+ android:textColor="@color/primarytext"/>
<Button
android:id="@+id/download_button"
@@ -79,8 +79,8 @@
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:text="@string/sending"
- android:textColor="#8e8e8e"
- android:textSize="12sp" />
+ android:textSize="12sp"
+ android:textColor="@color/secondarytext"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
diff --git a/res/layout/message_sent.xml b/res/layout/message_sent.xml
index b9c2ee10..d4970e6f 100644
--- a/res/layout/message_sent.xml
+++ b/res/layout/message_sent.xml
@@ -20,7 +20,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
- android:background="#ededed"
+ android:background="@color/primarybackground"
android:orientation="vertical"
android:gravity="center_vertical"
android:paddingTop="4dp"
@@ -35,7 +35,7 @@
android:adjustViewBounds="true"
android:paddingBottom="2dp"
android:scaleType="fitXY"
- android:background="#333333"
+ android:background="@color/primarytext"
/>
<TextView
@@ -44,8 +44,8 @@
android:layout_height="wrap_content"
android:autoLink="web"
android:textIsSelectable="true"
- android:textColor="#333333"
- android:textSize="14sp" />
+ android:textSize="14sp"
+ android:textColor="@color/primarytext"/>
<LinearLayout
android:layout_width="wrap_content"
@@ -61,8 +61,8 @@
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:text="@string/sending"
- android:textColor="#8e8e8e"
- android:textSize="12sp" />
+ android:textSize="12sp"
+ android:textColor="@color/secondarytext"/>
<ImageView
android:id="@+id/security_indicator"