Merge pull request #3530 from vector-im/feature/bma/prepare_release_1.1.10

Prepare release 1.1.10
This commit is contained in:
Benoit Marty 2021-06-18 21:04:27 +02:00 committed by GitHub
commit 71a8a948a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 99 additions and 75 deletions

View File

@ -21,12 +21,12 @@ import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import com.google.android.material.bottomsheet.BottomSheetDialogFragment import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import im.vector.lib.ui.styles.databinding.ActivityTestMaterialThemeBinding import im.vector.lib.ui.styles.databinding.ActivityDebugMaterialThemeBinding
class DebugBottomSheet : BottomSheetDialogFragment() { class DebugBottomSheet : BottomSheetDialogFragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
// Reuse tha Activity layout // Reuse tha Activity layout
val binding = ActivityTestMaterialThemeBinding.inflate(inflater, container, false) val binding = ActivityDebugMaterialThemeBinding.inflate(inflater, container, false)
return binding.root return binding.root
} }
} }

View File

@ -23,14 +23,14 @@ import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.dialog.MaterialAlertDialogBuilder import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.google.android.material.snackbar.Snackbar import com.google.android.material.snackbar.Snackbar
import im.vector.lib.ui.styles.R import im.vector.lib.ui.styles.R
import im.vector.lib.ui.styles.databinding.ActivityTestMaterialThemeBinding import im.vector.lib.ui.styles.databinding.ActivityDebugMaterialThemeBinding
// Rendering is not the same with VectorBaseActivity // Rendering is not the same with VectorBaseActivity
abstract class DebugMaterialThemeActivity : AppCompatActivity() { abstract class DebugMaterialThemeActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
val views = ActivityTestMaterialThemeBinding.inflate(layoutInflater) val views = ActivityDebugMaterialThemeBinding.inflate(layoutInflater)
setContentView(views.root) setContentView(views.root)
setSupportActionBar(views.debugToolbar) setSupportActionBar(views.debugToolbar)

View File

@ -263,10 +263,51 @@
style="@style/DebugTextColorDemo.Black" style="@style/DebugTextColorDemo.Black"
android:background="?android:textColorLink" android:background="?android:textColorLink"
android:text="android:textColorLink" /> android:text="android:textColorLink" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:colorBackground"
android:padding="8dp"
android:text="Background"
android:textColor="?colorOnBackground" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?colorPrimary"
android:padding="8dp"
android:text="Primary"
android:textColor="?colorOnPrimary" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?colorSecondary"
android:padding="8dp"
android:text="Secondary"
android:textColor="?colorOnSecondary" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?colorError"
android:padding="8dp"
android:text="Error"
android:textColor="?colorOnError" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?colorSurface"
android:padding="8dp"
android:text="Surface"
android:textColor="?colorOnSurface" />
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -43,7 +43,7 @@
<item name="vctr_spoiler_background_color">#FFFFFFFF</item> <item name="vctr_spoiler_background_color">#FFFFFFFF</item>
<!-- Some alias --> <!-- Some alias -->
<item name="vctr_header_background">?vctr_content_quinary</item> <item name="vctr_header_background">?vctr_system</item>
<item name="vctr_list_separator">?vctr_content_quinary</item> <item name="vctr_list_separator">?vctr_content_quinary</item>
<item name="vctr_list_separator_system">?vctr_system</item> <item name="vctr_list_separator_system">?vctr_system</item>
<item name="vctr_list_separator_on_surface">?vctr_system</item> <item name="vctr_list_separator_on_surface">?vctr_system</item>

View File

@ -43,7 +43,7 @@
<item name="vctr_spoiler_background_color">#FF000000</item> <item name="vctr_spoiler_background_color">#FF000000</item>
<!-- Some alias --> <!-- Some alias -->
<item name="vctr_header_background">?vctr_content_quinary</item> <item name="vctr_header_background">?vctr_system</item>
<item name="vctr_list_separator">?vctr_content_quinary</item> <item name="vctr_list_separator">?vctr_content_quinary</item>
<item name="vctr_list_separator_system">?vctr_system</item> <item name="vctr_list_separator_system">?vctr_system</item>
<item name="vctr_list_separator_on_surface">?vctr_system</item> <item name="vctr_list_separator_on_surface">?vctr_system</item>

View File

@ -71,7 +71,7 @@ class CallDialPadBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetCa
} else { } else {
setCallbackToFragment(callback) setCallbackToFragment(callback)
} }
views.callDialPadClose.setOnClickListener { views.callDialPadClose.debouncedClicks {
dismiss() dismiss()
} }
} }

View File

@ -128,7 +128,7 @@ class SpaceSettingsMenuBottomSheet : VectorBaseBottomSheetDialogFragment<BottomS
isLastAdmin = isAdmin && otherAdminCount == 0 isLastAdmin = isAdmin && otherAdminCount == 0
}.disposeOnDestroyView() }.disposeOnDestroyView()
views.spaceBetaTag.setOnClickListener { views.spaceBetaTag.debouncedClicks {
bugReporter.openBugReportScreen(requireActivity(), ReportType.SPACE_BETA_FEEDBACK) bugReporter.openBugReportScreen(requireActivity(), ReportType.SPACE_BETA_FEEDBACK)
} }

View File

@ -64,8 +64,8 @@ class RoomWidgetPermissionBottomSheet :
} }
private fun setupViews() { private fun setupViews() {
views.widgetPermissionDecline.setOnClickListener { doDecline() } views.widgetPermissionDecline.debouncedClicks { doDecline() }
views.widgetPermissionContinue.setOnClickListener { doAccept() } views.widgetPermissionContinue.debouncedClicks { doAccept() }
} }
override fun invalidate() = withState(viewModel) { state -> override fun invalidate() = withState(viewModel) { state ->

View File

@ -4,6 +4,6 @@
android:viewportWidth="24" android:viewportWidth="24"
android:viewportHeight="24"> android:viewportHeight="24">
<path <path
android:fillColor="?colorControlNormal" android:fillColor="#F00"
android:pathData="M19,3h-1L18,1h-2v2L8,3L8,1L6,1v2L5,3c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,5c0,-1.1 -0.9,-2 -2,-2zM12,6c1.66,0 3,1.34 3,3s-1.34,3 -3,3 -3,-1.34 -3,-3 1.34,-3 3,-3zM18,18L6,18v-1c0,-2 4,-3.1 6,-3.1s6,1.1 6,3.1v1z"/> android:pathData="M19,3h-1L18,1h-2v2L8,3L8,1L6,1v2L5,3c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,5c0,-1.1 -0.9,-2 -2,-2zM12,6c1.66,0 3,1.34 3,3s-1.34,3 -3,3 -3,-1.34 -3,-3 1.34,-3 3,-3zM18,18L6,18v-1c0,-2 4,-3.1 6,-3.1s6,1.1 6,3.1v1z"/>
</vector> </vector>

View File

@ -4,6 +4,6 @@
android:viewportWidth="24" android:viewportWidth="24"
android:viewportHeight="24"> android:viewportHeight="24">
<path <path
android:fillColor="?colorControlNormal" android:fillColor="#F00"
android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z"/> android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z"/>
</vector> </vector>

View File

@ -4,6 +4,6 @@
android:viewportWidth="24" android:viewportWidth="24"
android:viewportHeight="24"> android:viewportHeight="24">
<path <path
android:fillColor="?colorControlNormal" android:fillColor="#F00"
android:pathData="M8,5v14l11,-7z"/> android:pathData="M8,5v14l11,-7z"/>
</vector> </vector>

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size android:width="40dp" android:height="40dp"/>
<solid android:color="?vctr_header_background" />
<corners android:radius="16dp" />
</shape>

View File

@ -4,7 +4,7 @@
<size android:width="40dp" android:height="40dp"/> <size android:width="40dp" android:height="40dp"/>
<solid android:color="?vctr_header_background" /> <solid android:color="?vctr_system" />
<corners android:radius="8dp" /> <corners android:radius="8dp" />

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size android:width="40dp" android:height="40dp"/>
<stroke android:width="1dp" android:color="?vctr_header_background" />
<corners android:radius="8dp" />
</shape>

View File

@ -55,6 +55,8 @@
<Button <Button
android:id="@+id/loginTermsSubmit" android:id="@+id/loginTermsSubmit"
style="@style/Widget.Vector.Button.Login" style="@style/Widget.Vector.Button.Login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="36dp" android:layout_marginEnd="36dp"
android:text="@string/accept" android:text="@string/accept"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"

View File

@ -59,6 +59,8 @@
<Button <Button
android:id="@+id/loginTermsSubmit" android:id="@+id/loginTermsSubmit"
style="@style/Widget.Vector.Button.Login" style="@style/Widget.Vector.Button.Login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="36dp" android:layout_marginEnd="36dp"
android:text="@string/accept" android:text="@string/accept"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"

View File

@ -5,6 +5,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<!-- Source: https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=2857%3A321 -->
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
@ -62,35 +63,14 @@
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
<ImageView
android:id="@+id/showUserCodeAvatar"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_marginStart="@dimen/layout_horizontal_margin"
android:contentDescription="@string/avatar"
android:elevation="4dp"
android:transitionName="profile"
app:layout_constraintBottom_toBottomOf="@id/showUserCodeCardTopBarrier"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/showUserCodeCardTopBarrier"
tools:src="@sample/user_round_avatars" />
<androidx.constraintlayout.widget.Barrier
android:id="@+id/showUserCodeCardTopBarrier"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:barrierDirection="top"
app:constraint_referenced_ids="showUserCodeCard" />
<com.google.android.material.card.MaterialCardView <com.google.android.material.card.MaterialCardView
android:id="@+id/showUserCodeCard" android:id="@+id/showUserCodeCard"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginTop="50dp" android:layout_marginTop="81dp"
android:padding="16dp" android:padding="16dp"
app:cardCornerRadius="20dp" app:cardCornerRadius="8dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/appBarLayout" app:layout_constraintTop_toBottomOf="@+id/appBarLayout"
@ -98,9 +78,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:minWidth="300dp"
android:paddingTop="40dp">
<TextView <TextView
android:id="@+id/showUserCodeCardNameText" android:id="@+id/showUserCodeCardNameText"
@ -108,6 +86,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_marginTop="50dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:maxLines="1" android:maxLines="1"
android:singleLine="true" android:singleLine="true"
@ -127,7 +106,7 @@
android:maxLines="1" android:maxLines="1"
android:singleLine="true" android:singleLine="true"
android:textAlignment="center" android:textAlignment="center"
android:textColor="?vctr_content_secondary" android:textColor="?vctr_content_tertiary"
app:layout_constraintTop_toBottomOf="@id/showUserCodeCardNameText" app:layout_constraintTop_toBottomOf="@id/showUserCodeCardNameText"
tools:text="@sample/users.json/data/id" /> tools:text="@sample/users.json/data/id" />
@ -139,23 +118,44 @@
<!-- android:contentDescription="@string/a11y_qr_code_for_verification"--> <!-- android:contentDescription="@string/a11y_qr_code_for_verification"-->
<!-- tools:src="@color/vctr_header_panel_background_black" />--> <!-- tools:src="@color/vctr_header_panel_background_black" />-->
<im.vector.app.core.ui.views.QrCodeImageView <com.google.android.material.card.MaterialCardView
android:id="@+id/showUserCodeQRImage" android:layout_width="200dp"
android:layout_width="260dp" android:layout_height="200dp"
android:layout_height="260dp" android:layout_marginTop="16dp"
android:layout_gravity="center" android:layout_marginBottom="32dp"
android:layout_marginTop="10dp" android:backgroundTint="@color/palette_white"
android:layout_marginBottom="@dimen/layout_vertical_margin" app:cardCornerRadius="8dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/showUserCodeCardUserIdText" app:layout_constraintTop_toBottomOf="@id/showUserCodeCardUserIdText"
app:layout_constraintWidth_percent="0.8">
<im.vector.app.core.ui.views.QrCodeImageView
android:id="@+id/showUserCodeQRImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:src="@drawable/ic_qr_code_add" /> tools:src="@drawable/ic_qr_code_add" />
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>
<ImageView
android:id="@+id/showUserCodeAvatar"
android:layout_width="76dp"
android:layout_height="76dp"
android:contentDescription="@string/avatar"
android:elevation="4dp"
android:transitionName="profile"
app:layout_constraintBottom_toTopOf="@id/showUserCodeCard"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/showUserCodeCard"
tools:src="@sample/user_round_avatars" />
<TextView <TextView
android:id="@+id/showUserCodeInfoText" android:id="@+id/showUserCodeInfoText"
style="@style/Widget.Vector.TextView.Body" style="@style/Widget.Vector.TextView.Body"
@ -166,7 +166,7 @@
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:text="@string/user_code_info_text" android:text="@string/user_code_info_text"
android:textAlignment="center" android:textAlignment="center"
android:textColor="?vctr_content_secondary" android:textColor="?vctr_content_primary"
app:layout_constraintEnd_toEndOf="@id/showUserCodeCard" app:layout_constraintEnd_toEndOf="@id/showUserCodeCard"
app:layout_constraintStart_toStartOf="@id/showUserCodeCard" app:layout_constraintStart_toStartOf="@id/showUserCodeCard"
app:layout_constraintTop_toBottomOf="@id/showUserCodeCard" /> app:layout_constraintTop_toBottomOf="@id/showUserCodeCard" />
@ -175,7 +175,7 @@
android:id="@+id/showUserCodeShareButton" android:id="@+id/showUserCodeShareButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" android:layout_marginTop="24dp"
android:minWidth="130dp" android:minWidth="130dp"
android:text="@string/user_code_share" android:text="@string/user_code_share"
app:icon="@drawable/ic_share" app:icon="@drawable/ic_share"

View File

@ -23,6 +23,7 @@
android:layout_width="32dp" android:layout_width="32dp"
android:layout_height="32dp" android:layout_height="32dp"
android:layout_gravity="center" android:layout_gravity="center"
android:alpha="0.75"
android:contentDescription="@string/a11y_video" android:contentDescription="@string/a11y_video"
app:srcCompat="@drawable/ic_play_arrow" app:srcCompat="@drawable/ic_play_arrow"
app:tint="@android:color/white" app:tint="@android:color/white"

View File

@ -18,7 +18,7 @@
android:importantForAccessibility="no" android:importantForAccessibility="no"
android:padding="10dp" android:padding="10dp"
app:tint="?vctr_content_secondary" app:tint="?vctr_content_secondary"
tools:src="@drawable/ic_invite_people" /> tools:src="@drawable/ic_baseline_perm_contact_calendar_24" />
<TextView <TextView
android:id="@+id/actionTitleText" android:id="@+id/actionTitleText"

View File

@ -5,7 +5,7 @@
style="@style/Widget.Vector.TextView.Title" style="@style/Widget.Vector.TextView.Title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="56dp" android:layout_height="56dp"
android:background="?vctr_list_separator_system" android:background="?vctr_header_background"
android:gravity="bottom" android:gravity="bottom"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="16dp" android:paddingEnd="16dp"