From 2c1335a2f5a2a67afa21c7cd45359b9c445f367d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 9 Jul 2021 20:58:56 +0200 Subject: [PATCH] Theme for Toast --- library/ui-styles/build.gradle | 2 ++ .../main/res/drawable/bg_round_corner_8dp.xml | 8 +++++ .../ui-styles/src/main/res/values/colors.xml | 4 +++ .../main/res/values/styles_voice_message.xml | 11 ++++++ .../src/main/res/values/theme_dark.xml | 1 + .../src/main/res/values/theme_light.xml | 1 + .../home/room/detail/RoomDetailFragment.kt | 8 +++-- .../composer/VoiceMessageRecorderView.kt | 35 ++++++++++++------- .../layout/view_voice_message_recorder.xml | 15 +++++++- 9 files changed, 69 insertions(+), 16 deletions(-) create mode 100644 library/ui-styles/src/main/res/drawable/bg_round_corner_8dp.xml diff --git a/library/ui-styles/build.gradle b/library/ui-styles/build.gradle index 47c4664636..3a8851784e 100644 --- a/library/ui-styles/build.gradle +++ b/library/ui-styles/build.gradle @@ -60,4 +60,6 @@ dependencies { implementation 'com.github.vector-im:PFLockScreen-Android:1.0.0-beta12' // dialpad dimen implementation 'im.dlg:android-dialer:1.2.5' + // AudioRecordView attr + implementation 'com.github.Armen101:AudioRecordView:1.0.5' } \ No newline at end of file diff --git a/library/ui-styles/src/main/res/drawable/bg_round_corner_8dp.xml b/library/ui-styles/src/main/res/drawable/bg_round_corner_8dp.xml new file mode 100644 index 0000000000..f44b146021 --- /dev/null +++ b/library/ui-styles/src/main/res/drawable/bg_round_corner_8dp.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/library/ui-styles/src/main/res/values/colors.xml b/library/ui-styles/src/main/res/values/colors.xml index bfe9a9a59c..927977431b 100644 --- a/library/ui-styles/src/main/res/values/colors.xml +++ b/library/ui-styles/src/main/res/values/colors.xml @@ -144,4 +144,8 @@ #FFE3E8F0 #FF394049 + + @color/palette_black_900 + @color/palette_gray_450 + diff --git a/library/ui-styles/src/main/res/values/styles_voice_message.xml b/library/ui-styles/src/main/res/values/styles_voice_message.xml index 29ba6e31d9..dff1d08d28 100644 --- a/library/ui-styles/src/main/res/values/styles_voice_message.xml +++ b/library/ui-styles/src/main/res/values/styles_voice_message.xml @@ -12,4 +12,15 @@ leftToRight + + \ No newline at end of file diff --git a/library/ui-styles/src/main/res/values/theme_dark.xml b/library/ui-styles/src/main/res/values/theme_dark.xml index 6dcf02139a..43693031a3 100644 --- a/library/ui-styles/src/main/res/values/theme_dark.xml +++ b/library/ui-styles/src/main/res/values/theme_dark.xml @@ -140,6 +140,7 @@ @color/vctr_voice_message_playback_background_dark @color/vctr_voice_message_play_pause_button_background_dark @color/vctr_voice_message_recording_playback_background_dark + @color/vctr_voice_message_toast_background_dark