-
Notifications
You must be signed in to change notification settings - Fork 855
Jump to unread: implement new design #3547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
121fd9a
c3ef036
d1ab116
1ba97fa
ab37984
cccf5de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Implements new design for Jump to unread and quick fix visibility issues. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
|
|
||
| <attr name="jumpToUnreadStyle" format="reference" /> | ||
|
|
||
| <style name="Widget.Vector.JumpToUnread.Base" parent="Widget.MaterialComponents.Chip.Action"> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would have called this style: |
||
| <item name="android:textAppearance">@style/TextAppearance.Vector.Body.Medium</item> | ||
| <item name="chipEndPadding">12dp</item> | ||
| <item name="chipIconSize">24dp</item> | ||
| <item name="chipMinHeight">44dp</item> | ||
| <item name="chipStartPadding">12dp</item> | ||
| <item name="closeIconVisible">true</item> | ||
| <item name="android:elevation">6dp</item> | ||
| <item name="closeIconSize">24dp</item> | ||
| </style> | ||
|
|
||
| <style name="Widget.Vector.JumpToUnread.Light" parent="Widget.Vector.JumpToUnread.Base"> | ||
| <item name="chipBackgroundColor">@color/element_background_light</item> | ||
| <item name="closeIconTint">?vctr_content_secondary</item> | ||
| </style> | ||
|
|
||
| <style name="Widget.Vector.JumpToUnread.Dark" parent="Widget.Vector.JumpToUnread.Base"> | ||
| <item name="chipBackgroundColor">@color/element_system_dark</item> | ||
| <item name="closeIconTint">?vctr_content_quaternary</item> | ||
| </style> | ||
|
|
||
| </resources> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,6 +86,7 @@ | |
| <item name="snackbarButtonStyle">@style/Widget.Vector.SnackBar.Button</item> | ||
| <item name="snackbarTextViewStyle">@style/Widget.Vector.SnackBar.TextView</item> | ||
| <item name="actionModeStyle">@style/Widget.Vector.ActionMode</item> | ||
| <item name="jumpToUnreadStyle">@style/Widget.Vector.JumpToUnread.Dark</item> | ||
|
||
|
|
||
| <!-- Default theme --> | ||
| <item name="bottomSheetDialogTheme">@style/Theme.Vector.BottomSheetDialog.Dark</item> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,6 +86,7 @@ | |
| <item name="snackbarButtonStyle">@style/Widget.Vector.SnackBar.Button</item> | ||
| <item name="snackbarTextViewStyle">@style/Widget.Vector.SnackBar.TextView</item> | ||
| <item name="actionModeStyle">@style/Widget.Vector.ActionMode</item> | ||
| <item name="jumpToUnreadStyle">@style/Widget.Vector.JumpToUnread.Light</item> | ||
|
||
|
|
||
| <!-- Default theme --> | ||
| <item name="bottomSheetDialogTheme">@style/Theme.Vector.BottomSheetDialog.Light</item> | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="24dp" | ||
| android:height="24dp" | ||
| android:viewportWidth="24" | ||
| android:viewportHeight="24"> | ||
| <path | ||
| android:pathData="M12,2C6.4771,2 2,6.4771 2,12C2,17.5228 6.4771,22 12,22C17.5228,22 22,17.5228 22,12C22,6.4771 17.5228,2 12,2ZM11.2929,6.2929C11.3888,6.197 11.4993,6.1247 11.6172,6.0759L12.7071,6.2929L12.7075,6.2933L16.7071,10.2929C17.0976,10.6834 17.0976,11.3166 16.7071,11.7071C16.3166,12.0976 15.6834,12.0976 15.2929,11.7071L13,9.4142L13,17C13,17.5523 12.5523,18 12,18C11.4477,18 11,17.5523 11,17L11,9.4142L8.7071,11.7071C8.3166,12.0976 7.6834,12.0976 7.2929,11.7071C6.9024,11.3166 6.9024,10.6834 7.2929,10.2929L11.2929,6.2929ZM11.6172,6.0759L12.705,6.2908C12.5242,6.1111 12.2751,6 12,6C11.8644,6 11.7351,6.027 11.6172,6.0759Z" | ||
| android:fillColor="#0DBD8B" | ||
| android:fillType="evenOdd"/> | ||
| </vector> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,32 +127,22 @@ | |
| app:layout_constraintTop_toBottomOf="@id/activeConferenceView" | ||
| tools:listitem="@layout/item_timeline_event_base" /> | ||
|
|
||
| <FrameLayout | ||
| android:id="@+id/bannersContainer" | ||
| android:layout_width="0dp" | ||
| <com.google.android.material.chip.Chip | ||
| android:id="@+id/jumpToReadMarkerView" | ||
| style="?attr/jumpToUnreadStyle" | ||
|
||
| app:chipIcon="@drawable/ic_jump_to_unread" | ||
| app:closeIcon="@drawable/ic_close_24dp" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="center" | ||
| android:layout_marginTop="24dp" | ||
| android:text="@string/room_jump_to_first_unread" | ||
| android:visibility="invisible" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toBottomOf="@id/activeConferenceView"> | ||
|
|
||
| <!-- <im.vector.app.features.home.room.detail.widget.RoomWidgetsBannerView--> | ||
| <!-- android:id="@+id/roomWidgetsBannerView"--> | ||
| <!-- android:layout_width="match_parent"--> | ||
| <!-- android:layout_height="wrap_content"--> | ||
| <!-- android:layout_marginStart="8dp"--> | ||
| <!-- android:layout_marginTop="8dp"--> | ||
| <!-- android:layout_marginEnd="8dp"--> | ||
| <!-- android:visibility="gone"--> | ||
| <!-- tools:visibility="visible" />--> | ||
|
|
||
| <im.vector.app.core.ui.views.JumpToReadMarkerView | ||
| android:id="@+id/jumpToReadMarkerView" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:visibility="invisible" | ||
| tools:visibility="visible" /> | ||
| app:layout_constraintTop_toBottomOf="@id/activeConferenceView" | ||
| tools:visibility="visible" /> | ||
|
|
||
| </FrameLayout> | ||
|
|
||
| <im.vector.app.core.ui.views.NotificationAreaView | ||
| android:id="@+id/notificationAreaView" | ||
|
|
@@ -213,7 +203,7 @@ | |
| android:focusable="true" | ||
| app:cardCornerRadius="16dp" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintTop_toBottomOf="@id/activeConferenceView"> | ||
| app:layout_constraintTop_toBottomOf="@id/jumpToReadMarkerView"> | ||
|
|
||
| <org.webrtc.SurfaceViewRenderer | ||
| android:id="@+id/activeCallPiP" | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename to
vctr_jump_to_unread_styleto follow the current naming convention of custom attributes of this project?