diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-02-07 20:15:56 +0100 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-02-07 20:15:56 +0100 |
commit | c91f28ea314bb9d8e2697adf0da878f4a9ee76d0 (patch) | |
tree | 1b9ba37e2eff64d64d02d6b0354e2cf93134fde1 | |
parent | 8dd82436bb831174334b7fbf12c2da1569f79451 (diff) |
update chat background
Diffstat (limited to '')
-rw-r--r-- | src/main/res/drawable/bg_dark_blue.png | bin | 0 -> 11208 bytes | |||
-rw-r--r-- | src/main/res/drawable/bg_dark_orange.png | bin | 0 -> 6376 bytes | |||
-rw-r--r-- | src/main/res/drawable/bg_light_blue.png | bin | 0 -> 11555 bytes | |||
-rw-r--r-- | src/main/res/drawable/bg_light_orange.png | bin | 0 -> 9140 bytes | |||
-rw-r--r-- | src/main/res/drawable/chatbg.xml | 4 | ||||
-rw-r--r-- | src/main/res/layout/fragment_conversation.xml | 8 | ||||
-rw-r--r-- | src/main/res/values/attrs.xml | 1 | ||||
-rw-r--r-- | src/main/res/values/themes.xml | 6 |
8 files changed, 14 insertions, 5 deletions
diff --git a/src/main/res/drawable/bg_dark_blue.png b/src/main/res/drawable/bg_dark_blue.png Binary files differnew file mode 100644 index 000000000..c72754fb1 --- /dev/null +++ b/src/main/res/drawable/bg_dark_blue.png diff --git a/src/main/res/drawable/bg_dark_orange.png b/src/main/res/drawable/bg_dark_orange.png Binary files differnew file mode 100644 index 000000000..ad20abfb5 --- /dev/null +++ b/src/main/res/drawable/bg_dark_orange.png diff --git a/src/main/res/drawable/bg_light_blue.png b/src/main/res/drawable/bg_light_blue.png Binary files differnew file mode 100644 index 000000000..77e0e6a8c --- /dev/null +++ b/src/main/res/drawable/bg_light_blue.png diff --git a/src/main/res/drawable/bg_light_orange.png b/src/main/res/drawable/bg_light_orange.png Binary files differnew file mode 100644 index 000000000..3feeba9f7 --- /dev/null +++ b/src/main/res/drawable/bg_light_orange.png diff --git a/src/main/res/drawable/chatbg.xml b/src/main/res/drawable/chatbg.xml new file mode 100644 index 000000000..1cf1d51b1 --- /dev/null +++ b/src/main/res/drawable/chatbg.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<bitmap xmlns:android="http://schemas.android.com/apk/res/android" + android:src="?attr/chat_bg" + android:tileMode="repeat" />
\ No newline at end of file diff --git a/src/main/res/layout/fragment_conversation.xml b/src/main/res/layout/fragment_conversation.xml index 46019a289..768c38647 100644 --- a/src/main/res/layout/fragment_conversation.xml +++ b/src/main/res/layout/fragment_conversation.xml @@ -5,7 +5,7 @@ <RelativeLayout xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?attr/color_background_tertiary" + android:background="@drawable/chatbg" android:clickable="false"> <ListView @@ -16,7 +16,6 @@ android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" - android:background="?attr/color_background_tertiary" android:divider="@null" android:dividerHeight="0dp" android:listSelector="@android:color/transparent" @@ -66,7 +65,6 @@ android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" - android:background="?attr/color_background_tertiary" android:clickable="true" android:paddingStart="2dp" android:paddingLeft="2dp" @@ -80,7 +78,7 @@ android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_centerVertical="true" - android:background="?attr/color_background_tertiary" + android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/attach_record_voice" android:src="@drawable/ic_send_voice_offline" android:visibility="gone" /> @@ -149,7 +147,7 @@ android:layout_alignParentEnd="true" android:layout_alignParentRight="true" android:layout_centerVertical="true" - android:background="?attr/color_background_tertiary" + android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/send_message" android:src="@drawable/ic_send_text_offline" /> </RelativeLayout> diff --git a/src/main/res/values/attrs.xml b/src/main/res/values/attrs.xml index 801b0742b..14e0b4f0f 100644 --- a/src/main/res/values/attrs.xml +++ b/src/main/res/values/attrs.xml @@ -26,6 +26,7 @@ <attr name="edit_text_color" format="reference|color" /> <attr name="color_warning" format="reference|color" /> <attr name="EmojiColor" format="reference|color" /> + <attr name="chat_bg" format="reference|color" /> <attr name="activity_background_search" format="reference" /> <attr name="activity_background_no_results" format="reference" /> diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml index d8e7caf82..7a17e5d92 100644 --- a/src/main/res/values/themes.xml +++ b/src/main/res/values/themes.xml @@ -10,6 +10,7 @@ <item name="colorControlActivated">@color/accent</item> <item name="text_Color_Main">@color/realblack</item> <item name="button_text_color_disabled">@color/grey500</item> + <item name="chat_bg">@drawable/bg_light_blue</item> <item name="color_background_primary">@color/grey50</item> <item name="color_background_secondary">@color/grey200</item> @@ -170,6 +171,7 @@ <item name="text_Color_Main">@color/realwhite</item> <item name="button_text_color_disabled">@color/grey500</item> <item name="android:navigationBarColor" tools:targetApi="21">@color/black</item> + <item name="chat_bg">@drawable/bg_dark_blue</item> <item name="color_background_primary">@color/grey700</item> <item name="color_background_secondary">@color/grey800</item> @@ -332,6 +334,8 @@ <item name="color_bubble_dark">@color/lightorange2</item> <item name="color_bubble_date">@color/lightgreen</item> <item name="color_bubble_warning">@color/lightred</item> + + <item name="chat_bg">@drawable/bg_light_orange</item> </style> <style name="ConversationsTheme.Orange.Dark" parent="ConversationsTheme.Dark"> @@ -345,6 +349,8 @@ <item name="color_bubble_dark">@color/darkorange</item> <item name="color_bubble_date">@color/darkgreen</item> <item name="color_bubble_warning">@color/darkred</item> + + <item name="chat_bg">@drawable/bg_dark_orange</item> </style> <style name="ConversationsTheme.Dialog" parent="Theme.MaterialComponents.Light.Dialog"> |