diff --git a/library/ui-styles/src/main/res/color/edit_text_outline_dark.xml b/library/ui-styles/src/main/res/color/edit_text_outline_dark.xml
new file mode 100644
index 0000000000..7e64f28951
--- /dev/null
+++ b/library/ui-styles/src/main/res/color/edit_text_outline_dark.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/vector/src/main/res/values/attrs_sc.xml b/library/ui-styles/src/main/res/values/attrs_sc.xml
similarity index 88%
rename from vector/src/main/res/values/attrs_sc.xml
rename to library/ui-styles/src/main/res/values/attrs_sc.xml
index 9bce4f35f6..09454e6e69 100644
--- a/vector/src/main/res/values/attrs_sc.xml
+++ b/library/ui-styles/src/main/res/values/attrs_sc.xml
@@ -7,13 +7,14 @@
-
+
+
diff --git a/library/ui-styles/src/main/res/values/colors_sc.xml b/library/ui-styles/src/main/res/values/colors_sc.xml
index 70954b28e0..8d1accc342 100644
--- a/library/ui-styles/src/main/res/values/colors_sc.xml
+++ b/library/ui-styles/src/main/res/values/colors_sc.xml
@@ -27,7 +27,8 @@
#ff424242
#bf000000
- #80ffffff
+ #1fffffff
+ #1f000000
#ffffff
#80000000
diff --git a/library/ui-styles/src/main/res/values/styles_sc.xml b/library/ui-styles/src/main/res/values/styles_sc.xml
index 950cfbfd78..bc6bd1bfd2 100644
--- a/library/ui-styles/src/main/res/values/styles_sc.xml
+++ b/library/ui-styles/src/main/res/values/styles_sc.xml
@@ -4,7 +4,7 @@
@@ -15,16 +15,16 @@
-
+
+
+
+
diff --git a/library/ui-styles/src/main/res/values/styles_text_view.xml b/library/ui-styles/src/main/res/values/styles_text_view.xml
index 77e32da345..89c5e08a60 100644
--- a/library/ui-styles/src/main/res/values/styles_text_view.xml
+++ b/library/ui-styles/src/main/res/values/styles_text_view.xml
@@ -10,7 +10,9 @@
\ No newline at end of file
diff --git a/library/ui-styles/src/main/res/values/styles_timeline.xml b/library/ui-styles/src/main/res/values/styles_timeline.xml
index 7fd7eac0ec..56554ac0b1 100644
--- a/library/ui-styles/src/main/res/values/styles_timeline.xml
+++ b/library/ui-styles/src/main/res/values/styles_timeline.xml
@@ -4,12 +4,12 @@
\ No newline at end of file
diff --git a/library/ui-styles/src/main/res/values/styles_toolbar.xml b/library/ui-styles/src/main/res/values/styles_toolbar.xml
index 9f6ba102ed..9a543cc5f9 100644
--- a/library/ui-styles/src/main/res/values/styles_toolbar.xml
+++ b/library/ui-styles/src/main/res/values/styles_toolbar.xml
@@ -35,4 +35,4 @@
- 12sp
-
\ No newline at end of file
+
diff --git a/library/ui-styles/src/main/res/values/text_appearances.xml b/library/ui-styles/src/main/res/values/text_appearances.xml
index 88192f70e6..e81b20b432 100644
--- a/library/ui-styles/src/main/res/values/text_appearances.xml
+++ b/library/ui-styles/src/main/res/values/text_appearances.xml
@@ -47,8 +47,10 @@
diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerView.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerView.kt
index b23c53cdd0..fb6827d7e2 100644
--- a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerView.kt
+++ b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerView.kt
@@ -17,6 +17,7 @@
package im.vector.app.features.home.room.detail.composer
import android.content.Context
+import android.content.res.ColorStateList
import android.net.Uri
import android.text.Editable
import android.util.AttributeSet
@@ -33,6 +34,7 @@ import androidx.transition.TransitionManager
import androidx.transition.TransitionSet
import im.vector.app.R
import im.vector.app.databinding.ComposerLayoutBinding
+import im.vector.app.features.themes.ThemeUtils
/**
* Encapsulate the timeline composer UX.
@@ -72,6 +74,7 @@ class TextComposerView @JvmOverloads constructor(
override fun onTextBlankStateChanged(isBlank: Boolean) {
callback?.onTextBlankStateChanged(isBlank)
+ /*
val shouldBeVisible = currentConstraintSetId == R.layout.composer_layout_constraint_set_expanded || !isBlank
TransitionManager.endTransitions(this@TextComposerView)
if (views.sendButton.isVisible != shouldBeVisible) {
@@ -81,6 +84,8 @@ class TextComposerView @JvmOverloads constructor(
)
views.sendButton.isVisible = shouldBeVisible
}
+ */
+ updateSendButtonColor(isBlank)
}
}
views.composerRelatedMessageCloseButton.setOnClickListener {
@@ -98,6 +103,11 @@ class TextComposerView @JvmOverloads constructor(
}
}
+ private fun updateSendButtonColor(isBlank: Boolean) {
+ val color = ThemeUtils.getColor(views.sendButton.context, if (isBlank) R.attr.vctr_content_tertiary else R.attr.colorAccent)
+ views.sendButton.imageTintList = ColorStateList.valueOf(color)
+ }
+
fun collapse(animate: Boolean = true, transitionComplete: (() -> Unit)? = null) {
if (currentConstraintSetId == R.layout.composer_layout_constraint_set_compact) {
// ignore we good
@@ -105,7 +115,7 @@ class TextComposerView @JvmOverloads constructor(
}
currentConstraintSetId = R.layout.composer_layout_constraint_set_compact
applyNewConstraintSet(animate, transitionComplete)
- views.sendButton.isVisible = !views.composerEditText.text.isNullOrEmpty()
+ //views.sendButton.isVisible = !views.composerEditText.text.isNullOrEmpty()
}
fun expand(animate: Boolean = true, transitionComplete: (() -> Unit)? = null) {
@@ -115,7 +125,7 @@ class TextComposerView @JvmOverloads constructor(
}
currentConstraintSetId = R.layout.composer_layout_constraint_set_expanded
applyNewConstraintSet(animate, transitionComplete)
- views.sendButton.isVisible = true
+ //views.sendButton.isVisible = true
}
private fun applyNewConstraintSet(animate: Boolean, transitionComplete: (() -> Unit)?) {
diff --git a/vector/src/main/res/drawable/ic_radio_off.xml b/vector/src/main/res/drawable/ic_radio_off.xml
index 90524c7ac2..54ffa02363 100644
--- a/vector/src/main/res/drawable/ic_radio_off.xml
+++ b/vector/src/main/res/drawable/ic_radio_off.xml
@@ -2,9 +2,10 @@
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
- android:viewportHeight="24">
+ android:viewportHeight="24"
+ android:tint="?android:attr/textColorHint">
diff --git a/vector/src/main/res/drawable/ic_radio_on.xml b/vector/src/main/res/drawable/ic_radio_on.xml
index 5cda8285e6..14d33bcf80 100644
--- a/vector/src/main/res/drawable/ic_radio_on.xml
+++ b/vector/src/main/res/drawable/ic_radio_on.xml
@@ -2,13 +2,14 @@
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
- android:viewportHeight="24">
+ android:viewportHeight="24"
+ android:tint="?android:attr/colorAccent">
+ android:fillColor="#808080" />
diff --git a/vector/src/main/res/drawable/line_divider_sc.xml b/vector/src/main/res/drawable/line_divider_sc.xml
deleted file mode 100644
index 7c37b022e3..0000000000
--- a/vector/src/main/res/drawable/line_divider_sc.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/vector/src/main/res/layout/composer_layout.xml b/vector/src/main/res/layout/composer_layout.xml
index f85f51c462..118a23a73a 100644
--- a/vector/src/main/res/layout/composer_layout.xml
+++ b/vector/src/main/res/layout/composer_layout.xml
@@ -94,7 +94,7 @@
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/option_send_files"
android:src="@drawable/ic_attachment"
- android:tint="?android:textColorHint"
+ app:tint="?android:textColorHint"
tools:ignore="MissingConstraints" />
diff --git a/vector/src/main/res/layout/composer_layout_constraint_set_compact.xml b/vector/src/main/res/layout/composer_layout_constraint_set_compact.xml
index a1ddd62049..4d56b284c0 100644
--- a/vector/src/main/res/layout/composer_layout_constraint_set_compact.xml
+++ b/vector/src/main/res/layout/composer_layout_constraint_set_compact.xml
@@ -114,7 +114,7 @@
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/option_send_files"
android:src="@drawable/ic_attachment"
- android:tint="?android:textColorHint"
+ app:tint="?android:textColorHint"
app:layout_constraintBottom_toBottomOf="@id/sendButton"
app:layout_constraintEnd_toStartOf="@+id/sendButton"
app:layout_constraintStart_toEndOf="@id/composerEditText"
@@ -126,11 +126,12 @@
android:id="@+id/composerEditTextOuterBorder"
android:layout_width="0dp"
android:layout_height="0dp"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp"
+ android:layout_marginStart="4dp"
+ android:layout_marginTop="4dp"
+ android:layout_marginBottom="4dp"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@id/sendButton"
- app:layout_constraintStart_toEndOf="@id/attachmentButton"
+ app:layout_constraintStart_toEndOf="@id/composerEmojiButton"
+ app:layout_constraintEnd_toStartOf="@id/attachmentButton"
app:layout_constraintTop_toTopOf="parent"
app:layout_goneMarginEnd="12dp" />
@@ -157,7 +158,7 @@
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/a11y_open_emoji_picker"
android:src="@drawable/ic_insert_emoji"
- android:tint="?vctr_content_quaternary"
+ app:tint="?android:textColorHint"
app:layout_constraintBottom_toBottomOf="@id/sendButton"
app:layout_constraintEnd_toStartOf="@+id/composerEditText"
app:layout_constraintStart_toStartOf="parent"
@@ -172,7 +173,6 @@
android:contentDescription="@string/send"
android:scaleType="center"
android:src="@drawable/ic_send"
- android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/attachmentButton"
diff --git a/vector/src/main/res/layout/composer_layout_constraint_set_expanded.xml b/vector/src/main/res/layout/composer_layout_constraint_set_expanded.xml
index 73d4a3ad6a..7931cce2b3 100644
--- a/vector/src/main/res/layout/composer_layout_constraint_set_expanded.xml
+++ b/vector/src/main/res/layout/composer_layout_constraint_set_expanded.xml
@@ -127,7 +127,7 @@
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/option_send_files"
android:src="@drawable/ic_attachment"
- android:tint="?android:textColorHint"
+ app:tint="?android:textColorHint"
app:layout_constraintEnd_toStartOf="@+id/sendButton"
app:layout_constraintTop_toBottomOf="parent"
tools:ignore="MissingPrefix" />
@@ -136,12 +136,12 @@
android:id="@+id/composerEditTextOuterBorder"
android:layout_width="0dp"
android:layout_height="0dp"
- android:layout_marginStart="8dp"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp"
+ android:layout_marginStart="4dp"
+ android:layout_marginTop="4dp"
+ android:layout_marginBottom="4dp"
app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toEndOf="@id/composerEmojiButton"
app:layout_constraintEnd_toStartOf="@id/sendButton"
- app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/composer_preview_barrier"
app:layout_goneMarginEnd="12dp" />
@@ -171,7 +171,7 @@
app:layout_constraintBottom_toBottomOf="@+id/sendButton"
app:layout_constraintEnd_toStartOf="@+id/composerEditText"
app:layout_constraintStart_toStartOf="parent"
- app:tint="?vctr_content_quaternary"
+ app:tint="?android:textColorHint"
tools:ignore="MissingPrefix" />
@@ -14,4 +15,4 @@
android:gravity="center"
tools:text="Empty list, nothing here" />
-
\ No newline at end of file
+
diff --git a/vector/src/main/res/layout/item_timeline_event_day_separator.xml b/vector/src/main/res/layout/item_timeline_event_day_separator.xml
index 7b5e62dca2..dc4e158d7a 100644
--- a/vector/src/main/res/layout/item_timeline_event_day_separator.xml
+++ b/vector/src/main/res/layout/item_timeline_event_day_separator.xml
@@ -11,7 +11,7 @@
android:layout_gravity="center_vertical"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
- android:background="?vctr_content_tertiary" />
+ android:background="?vctr_list_separator" />
-
\ No newline at end of file
+
diff --git a/vector/src/main/res/layout/item_timeline_event_text_message_stub.xml b/vector/src/main/res/layout/item_timeline_event_text_message_stub.xml
index 464722a340..7408ca00ac 100644
--- a/vector/src/main/res/layout/item_timeline_event_text_message_stub.xml
+++ b/vector/src/main/res/layout/item_timeline_event_text_message_stub.xml
@@ -18,6 +18,7 @@
style="@style/Widget.Vector.TextView.Body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_margin="0dp"
android:textColor="?vctr_content_primary"
android:layout_gravity="left"
tools:text="@sample/messages.json/data/message"
diff --git a/vector/src/main/res/layout/item_verification_action.xml b/vector/src/main/res/layout/item_verification_action.xml
index 455c5ce9a4..c58d48d999 100644
--- a/vector/src/main/res/layout/item_verification_action.xml
+++ b/vector/src/main/res/layout/item_verification_action.xml
@@ -5,10 +5,9 @@
android:id="@+id/itemVerificationClickableZone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="?android:colorBackground"
android:clickable="true"
android:focusable="true"
- android:foreground="?attr/selectableItemBackground"
+ android:background="?attr/selectableItemBackground"
android:minHeight="64dp"
android:paddingStart="@dimen/layout_horizontal_margin"
android:paddingTop="8dp"