Dividers for home screen conversation items.

Themed common/dialog button styles.
This commit is contained in:
Anton Chekulaev 2020-08-24 16:46:12 +10:00
parent 1191353fde
commit afe90200f1
48 changed files with 182 additions and 173 deletions

View File

@ -3,9 +3,9 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<solid android:color="@color/accent" /> <solid android:color="?colorAccent" />
<corners android:radius="22dp" /> <corners android:radius="@dimen/medium_button_corner_radius" />
<stroke android:width="@dimen/border_thickness" android:color="@color/accent" /> <stroke android:width="@dimen/border_thickness" android:color="?colorAccent" />
</shape> </shape>

View File

@ -5,7 +5,7 @@
<solid android:color="@color/transparent" /> <solid android:color="@color/transparent" />
<corners android:radius="22dp" /> <corners android:radius="@dimen/medium_button_corner_radius" />
<stroke android:width="@dimen/border_thickness" android:color="@color/accent" /> <stroke android:width="@dimen/border_thickness" android:color="?colorAccent" />
</shape> </shape>

View File

@ -5,7 +5,7 @@
<solid android:color="@color/unimportant_button_background" /> <solid android:color="@color/unimportant_button_background" />
<corners android:radius="22dp" /> <corners android:radius="@dimen/medium_button_corner_radius" />
<stroke android:width="@dimen/border_thickness" android:color="@color/unimportant_button_background" /> <stroke android:width="@dimen/border_thickness" android:color="@color/unimportant_button_background" />
</shape> </shape>

View File

@ -5,7 +5,7 @@
<solid android:color="@color/transparent" /> <solid android:color="@color/transparent" />
<corners android:radius="22dp" /> <corners android:radius="@dimen/medium_button_corner_radius" />
<stroke android:width="@dimen/border_thickness" android:color="@color/text" /> <stroke android:width="@dimen/border_thickness" android:color="?colorAccent" />
</shape> </shape>

View File

@ -49,7 +49,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/registerButton" android:id="@+id/registerButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -32,7 +32,7 @@
android:layout_weight="1" /> android:layout_weight="1" />
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/registerButton" android:id="@+id/registerButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -41,7 +41,7 @@
android:text="@string/activity_landing_register_button_title" /> android:text="@string/activity_landing_register_button_title" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/restoreButton" android:id="@+id/restoreButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -103,7 +103,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/registerButton" android:id="@+id/registerButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -46,7 +46,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/registerButton" android:id="@+id/registerButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -55,7 +55,7 @@
android:text="@string/continue_2" /> android:text="@string/continue_2" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/copyButton" android:id="@+id/copyButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -48,7 +48,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/restoreButton" android:id="@+id/restoreButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -66,7 +66,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/copyButton" android:id="@+id/copyButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -23,7 +23,7 @@
android:layout_weight="1" /> android:layout_weight="1" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/joinPublicChatButton" android:id="@+id/joinPublicChatButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -65,7 +65,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
style="@style/MediumUnimportantFilledButton" style="@style/Widget.Session.Button.Common.UnimportantFilled"
android:id="@+id/copyButton" android:id="@+id/copyButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -73,7 +73,7 @@
android:text="@string/copy" /> android:text="@string/copy" />
<Button <Button
style="@style/MediumUnimportantFilledButton" style="@style/Widget.Session.Button.Common.UnimportantFilled"
android:id="@+id/shareButton" android:id="@+id/shareButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -89,7 +89,7 @@
android:layout_weight="1" /> android:layout_weight="1" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/createPrivateChatButton" android:id="@+id/createPrivateChatButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -58,7 +58,7 @@
android:layout_marginLeft="4dp" /> android:layout_marginLeft="4dp" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/button" android:id="@+id/button"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="28dp" android:layout_height="28dp"

View File

@ -47,7 +47,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/requestDeviceLinkButton" android:id="@+id/requestDeviceLinkButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -49,7 +49,7 @@
android:text="@string/activity_create_closed_group_empty_state_message" /> android:text="@string/activity_create_closed_group_empty_state_message" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/btnCreateNewPrivateChat" android:id="@+id/btnCreateNewPrivateChat"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -47,7 +47,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/registerButton" android:id="@+id/registerButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -110,7 +110,7 @@
<Button <Button
android:id="@+id/addMembersClosedGroupButton" android:id="@+id/addMembersClosedGroupButton"
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"
android:layout_marginTop="@dimen/small_spacing" android:layout_marginTop="@dimen/small_spacing"
@ -131,7 +131,8 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView" android:id="@+id/recyclerView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"/> android:layout_height="match_parent"
tools:listitem="@layout/view_user"/>
</LinearLayout> </LinearLayout>

View File

@ -74,7 +74,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingBottom="172dp" android:paddingBottom="172dp"
android:clipToPadding="false" /> android:clipToPadding="false"
tools:listitem="@layout/view_conversation"/>
<View <View
android:id="@+id/gradientView" android:id="@+id/gradientView"
@ -106,7 +107,7 @@
android:text="@string/activity_home_empty_state_message" /> android:text="@string/activity_home_empty_state_message" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/btnCreateNewPrivateChat" android:id="@+id/btnCreateNewPrivateChat"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -32,7 +32,7 @@
android:layout_weight="1" /> android:layout_weight="1" />
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/registerButton" android:id="@+id/registerButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -41,7 +41,7 @@
android:text="@string/activity_landing_register_button_title" /> android:text="@string/activity_landing_register_button_title" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/restoreButton" android:id="@+id/restoreButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -25,7 +25,7 @@
android:text="@string/activity_linked_devices_empty_state_message" /> android:text="@string/activity_linked_devices_empty_state_message" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/linkDeviceButton" android:id="@+id/linkDeviceButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -43,7 +43,7 @@
</RelativeLayout> </RelativeLayout>
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/learnMoreButton" android:id="@+id/learnMoreButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -103,7 +103,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/registerButton" android:id="@+id/registerButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -47,7 +47,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/registerButton" android:id="@+id/registerButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -56,7 +56,7 @@
android:text="@string/continue_2" /> android:text="@string/continue_2" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/copyButton" android:id="@+id/copyButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -46,7 +46,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentFilledButton" style="@style/Widget.Session.Button.Common.ProminentFilled"
android:id="@+id/restoreButton" android:id="@+id/restoreButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -67,7 +67,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/copyButton" android:id="@+id/copyButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -87,7 +87,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/copyButton" android:id="@+id/copyButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -95,7 +95,7 @@
android:text="@string/copy" /> android:text="@string/copy" />
<Button <Button
style="@style/MediumUnimportantOutlineButton" style="@style/Widget.Session.Button.Common.UnimportantOutline"
android:id="@+id/shareButton" android:id="@+id/shareButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -36,7 +36,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
style="@style/UnimportantDialogButton" style="@style/Widget.Session.Button.Dialog.Unimportant"
android:id="@+id/cancelButton" android:id="@+id/cancelButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"
@ -44,7 +44,7 @@
android:text="@string/cancel" /> android:text="@string/cancel" />
<Button <Button
style="@style/DestructiveDialogButton" style="@style/Widget.Session.Button.Dialog.Destructive"
android:id="@+id/clearAllDataButton" android:id="@+id/clearAllDataButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"

View File

@ -39,7 +39,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
style="@style/UnimportantDialogButton" style="@style/Widget.Session.Button.Dialog.Unimportant"
android:id="@+id/cancelButton" android:id="@+id/cancelButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"
@ -47,7 +47,7 @@
android:text="@string/cancel" /> android:text="@string/cancel" />
<Button <Button
style="@style/UnimportantDialogButton" style="@style/Widget.Session.Button.Dialog.Unimportant"
android:id="@+id/okButton" android:id="@+id/okButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"

View File

@ -74,7 +74,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
style="@style/UnimportantDialogButton" style="@style/Widget.Session.Button.Dialog.Unimportant"
android:id="@+id/cancelButton" android:id="@+id/cancelButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"
@ -82,7 +82,7 @@
android:text="@string/cancel" /> android:text="@string/cancel" />
<Button <Button
style="@style/ProminentDialogButton" style="@style/Widget.Session.Button.Dialog.Prominent"
android:id="@+id/authorizeButton" android:id="@+id/authorizeButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"

View File

@ -51,7 +51,7 @@
android:textAlignment="center" /> android:textAlignment="center" />
<Button <Button
style="@style/UnimportantDialogButton" style="@style/Widget.Session.Button.Dialog.Unimportant"
android:id="@+id/cancelButton" android:id="@+id/cancelButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"

View File

@ -47,7 +47,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
style="@style/UnimportantDialogButton" style="@style/Widget.Session.Button.Dialog.Unimportant"
android:id="@+id/cancelButton" android:id="@+id/cancelButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"
@ -55,7 +55,7 @@
android:text="@string/cancel" /> android:text="@string/cancel" />
<Button <Button
style="@style/UnimportantDialogButton" style="@style/Widget.Session.Button.Dialog.Unimportant"
android:id="@+id/copyButton" android:id="@+id/copyButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"

View File

@ -23,7 +23,7 @@
android:layout_weight="1" /> android:layout_weight="1" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/joinPublicChatButton" android:id="@+id/joinPublicChatButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -65,7 +65,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
style="@style/MediumUnimportantFilledButton" style="@style/Widget.Session.Button.Common.UnimportantFilled"
android:id="@+id/copyButton" android:id="@+id/copyButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -73,7 +73,7 @@
android:text="@string/copy" /> android:text="@string/copy" />
<Button <Button
style="@style/MediumUnimportantFilledButton" style="@style/Widget.Session.Button.Common.UnimportantFilled"
android:id="@+id/shareButton" android:id="@+id/shareButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -89,7 +89,7 @@
android:layout_weight="1" /> android:layout_weight="1" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/createPrivateChatButton" android:id="@+id/createPrivateChatButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -47,7 +47,7 @@
android:layout_weight="1"/> android:layout_weight="1"/>
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/requestDeviceLinkButton" android:id="@+id/requestDeviceLinkButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -31,7 +31,7 @@
android:textSize="@dimen/small_font_size" /> android:textSize="@dimen/small_font_size" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/okButton" android:id="@+id/okButton"
android:layout_width="240dp" android:layout_width="240dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -35,7 +35,7 @@
android:textAlignment="center" /> android:textAlignment="center" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/joinButton" android:id="@+id/joinButton"
android:layout_width="240dp" android:layout_width="240dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
@ -43,7 +43,7 @@
android:text="Join Public Chat" /> android:text="Join Public Chat" />
<Button <Button
style="@style/MediumUnimportantOutlineButton" style="@style/Widget.Session.Button.Common.UnimportantOutline"
android:id="@+id/dismissButton" android:id="@+id/dismissButton"
android:layout_width="240dp" android:layout_width="240dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -22,7 +22,7 @@
android:text="@string/fragment_scan_qr_code_camera_access_explanation" /> android:text="@string/fragment_scan_qr_code_camera_access_explanation" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/grantCameraAccessButton" android:id="@+id/grantCameraAccessButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -56,7 +56,7 @@
android:text="This is your QR code. Other users can scan it to start a session with you." /> android:text="This is your QR code. Other users can scan it to start a session with you." />
<Button <Button
style="@style/MediumUnimportantOutlineButton" style="@style/Widget.Session.Button.Common.UnimportantOutline"
android:id="@+id/shareButton" android:id="@+id/shareButton"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -69,7 +69,7 @@
tools:visibility="visible"/> tools:visibility="visible"/>
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/lock_screen_auth_container" android:id="@+id/lock_screen_auth_container"
android:layout_width="196dp" android:layout_width="196dp"
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"

View File

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/sessionRestoreBanner" android:id="@+id/sessionRestoreBanner"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/dialog_background" android:background="?dialog_background_color"
android:orientation="vertical" android:orientation="vertical"
android:elevation="10dp"> android:elevation="10dp">
@ -33,19 +34,19 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/small_spacing" android:layout_marginTop="@dimen/small_spacing"
android:text="@string/session_reset_banner_message"
android:textColor="@color/text" android:textColor="@color/text"
android:textSize="@dimen/small_font_size" android:textSize="@dimen/small_font_size"
android:textAlignment="center" /> android:textAlignment="center"
tools:text="@string/session_reset_banner_message"/>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/small_spacing" android:layout_marginTop="@dimen/medium_spacing"
android:orientation="horizontal"> android:orientation="horizontal">
<Button <Button
style="@style/UnimportantDialogButton" style="@style/Widget.Session.Button.Dialog.Unimportant"
android:id="@+id/dismissButton" android:id="@+id/dismissButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"
@ -53,7 +54,7 @@
android:text="@string/session_reset_banner_dismiss_button_title" /> android:text="@string/session_reset_banner_dismiss_button_title" />
<Button <Button
style="@style/ProminentDialogButton" style="@style/Widget.Session.Button.Dialog.Prominent"
android:id="@+id/restoreButton" android:id="@+id/restoreButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="@dimen/small_button_height" android:layout_height="@dimen/small_button_height"

View File

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/conversation_view_background" android:background="@drawable/conversation_view_background"
android:orientation="horizontal" android:gravity="center_vertical"
android:gravity="center_vertical"> android:orientation="horizontal">
<View <View
android:id="@+id/accentView" android:id="@+id/accentView"
android:layout_width="@dimen/accent_line_thickness" android:layout_width="@dimen/accent_line_thickness"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/accent" /> android:background="@color/accent" />
<org.thoughtcrime.securesms.loki.views.ProfilePictureView <org.thoughtcrime.securesms.loki.views.ProfilePictureView
android:id="@+id/profilePictureView" android:id="@+id/profilePictureView"
android:layout_width="@dimen/medium_profile_picture_size" android:layout_width="@dimen/medium_profile_picture_size"
@ -21,97 +21,111 @@
android:layout_marginStart="@dimen/medium_spacing" android:layout_marginStart="@dimen/medium_spacing"
android:layout_marginBottom="@dimen/medium_spacing" /> android:layout_marginBottom="@dimen/medium_spacing" />
<LinearLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent">
android:layout_marginStart="@dimen/medium_spacing"
android:layout_marginEnd="@dimen/medium_spacing"
android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:layout_marginStart="@dimen/medium_spacing"
android:gravity="center_vertical"> android:layout_marginEnd="@dimen/medium_spacing"
android:layout_gravity="center_vertical"
android:orientation="vertical">
<TextView <LinearLayout
android:id="@+id/btnGroupNameDisplay" android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:orientation="horizontal"
android:maxLines="1" android:gravity="center_vertical">
android:ellipsize="end"
android:textAlignment="viewStart"
android:textSize="@dimen/medium_font_size"
android:textStyle="bold"
android:textColor="@color/text"
android:text="I'm a very long display name. What are you going to do about it?" />
<TextView
android:id="@+id/timestampTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/medium_spacing"
android:maxLines="1"
android:ellipsize="end"
android:textSize="@dimen/small_font_size"
android:textColor="@color/text"
android:alpha="0.4"
android:text="9:41 AM" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<ImageView
android:id="@+id/muteIndicatorImageView"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_gravity="center"
android:src="@drawable/ic_outline_notifications_off_24"
android:layout_marginTop="1dp"
android:layout_marginEnd="6dp" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView <TextView
android:id="@+id/snippetTextView" android:id="@+id/btnGroupNameDisplay"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:maxLines="1" android:maxLines="1"
android:ellipsize="end" android:ellipsize="end"
android:textAlignment="viewStart"
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textStyle="bold"
android:textColor="@color/text" android:textColor="@color/text"
android:text="Sorry, gotta go fight crime again" /> android:text="I'm a very long display name. What are you going to do about it?" />
<org.thoughtcrime.securesms.components.TypingIndicatorView <TextView
android:id="@+id/typingIndicatorView" android:id="@+id/timestampTextView"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginStart="@dimen/medium_spacing"
app:typingIndicator_tint="@color/text" /> android:maxLines="1"
android:ellipsize="end"
android:textSize="@dimen/small_font_size"
android:textColor="@color/text"
android:alpha="0.4"
android:text="9:41 AM" />
</RelativeLayout> </LinearLayout>
<View <LinearLayout
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content"
android:layout_weight="1" /> android:orientation="horizontal"
android:gravity="center_vertical">
<ImageView <ImageView
android:id="@+id/statusIndicatorImageView" android:id="@+id/muteIndicatorImageView"
android:layout_width="@dimen/conversation_view_status_indicator_size" android:layout_width="18dp"
android:layout_height="@dimen/conversation_view_status_indicator_size" android:layout_height="18dp"
android:layout_marginStart="@dimen/medium_spacing" /> android:layout_gravity="center"
android:src="@drawable/ic_outline_notifications_off_24"
android:layout_marginTop="1dp"
android:layout_marginEnd="6dp" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/snippetTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:textSize="@dimen/medium_font_size"
android:textColor="@color/text"
android:text="Sorry, gotta go fight crime again" />
<org.thoughtcrime.securesms.components.TypingIndicatorView
android:id="@+id/typingIndicatorView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
app:typingIndicator_tint="@color/text" />
</RelativeLayout>
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<ImageView
android:id="@+id/statusIndicatorImageView"
android:layout_width="@dimen/conversation_view_status_indicator_size"
android:layout_height="@dimen/conversation_view_status_indicator_size"
android:layout_marginStart="@dimen/medium_spacing" />
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> <View
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_gravity="bottom"
android:layout_marginStart="@dimen/medium_spacing"
android:background="?android:dividerHorizontal" />
</FrameLayout>
</LinearLayout> </LinearLayout>

View File

@ -58,7 +58,7 @@
android:layout_marginLeft="4dp" /> android:layout_marginLeft="4dp" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/Widget.Session.Button.Common.ProminentOutline"
android:id="@+id/button" android:id="@+id/button"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="28dp" android:layout_height="28dp"

View File

@ -30,7 +30,6 @@
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textStyle="bold" android:textStyle="bold"
android:layout_weight="1" android:layout_weight="1"
android:textColor="?android:textColorPrimary"
tools:text="Spiderman" /> tools:text="Spiderman" />
<ImageView <ImageView
@ -38,8 +37,7 @@
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:layout_marginStart="@dimen/medium_spacing" android:layout_marginStart="@dimen/medium_spacing"
android:src="@drawable/ic_circle" android:src="@drawable/ic_circle"/>
android:tint="?android:textColorPrimary"/>
</LinearLayout> </LinearLayout>

View File

@ -10,6 +10,7 @@
<color name="navigation_bar_background">#FCFCFC</color> <color name="navigation_bar_background">#FCFCFC</color>
<color name="separator">#B0B0B0</color> <color name="separator">#B0B0B0</color>
<color name="unimportant_button_background">@color/transparent</color> <color name="unimportant_button_background">@color/transparent</color>
<color name="unimportant_dialog_button_background">@color/dialog_background</color>
<color name="dialog_background">#FCFCFC</color> <color name="dialog_background">#FCFCFC</color>
<color name="dialog_border">#212121</color> <color name="dialog_border">#212121</color>
<color name="compose_view_background">#FCFCFC</color> <color name="compose_view_background">#FCFCFC</color>
@ -26,7 +27,6 @@
<color name="action_bar_background">#fcfcfd</color> <color name="action_bar_background">#fcfcfd</color>
<color name="unimportant_dialog_button_background">#1B1B1B</color>
<color name="app_icon_background">#333132</color> <color name="app_icon_background">#333132</color>
<color name="progress_bar_background">#0AFFFFFF</color> <color name="progress_bar_background">#0AFFFFFF</color>
<color name="quote_not_found_background">#99FFFFFF</color> <color name="quote_not_found_background">#99FFFFFF</color>

View File

@ -14,6 +14,7 @@
<!-- Element Sizes --> <!-- Element Sizes -->
<dimen name="small_button_height">34dp</dimen> <dimen name="small_button_height">34dp</dimen>
<dimen name="medium_button_height">38dp</dimen> <dimen name="medium_button_height">38dp</dimen>
<dimen name="medium_button_corner_radius">22dp</dimen>
<dimen name="accent_line_thickness">4dp</dimen> <dimen name="accent_line_thickness">4dp</dimen>
<dimen name="very_small_profile_picture_size">26dp</dimen> <dimen name="very_small_profile_picture_size">26dp</dimen>
<dimen name="small_profile_picture_size">36dp</dimen> <dimen name="small_profile_picture_size">36dp</dimen>

View File

@ -73,57 +73,49 @@
<item name="textAllCaps">false</item> <item name="textAllCaps">false</item>
</style> </style>
<style name="MediumProminentFilledButton"> <!-- TODO These button styles require proper background selectors for up/down visual state. -->
<item name="android:background">@drawable/prominent_filled_button_medium_background</item> <style name="Widget.Session.Button.Common" parent="">
<item name="android:textAllCaps">false</item> <item name="android:textAllCaps">false</item>
<item name="android:textSize">@dimen/medium_font_size</item> <item name="android:textSize">@dimen/medium_font_size</item>
<item name="android:fontFamily">sans-serif-medium</item> <item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textColor">@color/text</item>
</style> </style>
<style name="MediumProminentOutlineButton"> <style name="Widget.Session.Button.Common.ProminentFilled">
<item name="android:background">@drawable/prominent_filled_button_medium_background</item>
<item name="android:textColor">?colorPrimary</item>
</style>
<style name="Widget.Session.Button.Common.ProminentOutline">
<item name="android:background">@drawable/prominent_outline_button_medium_background</item> <item name="android:background">@drawable/prominent_outline_button_medium_background</item>
<item name="android:textAllCaps">false</item>
<item name="android:textSize">@dimen/medium_font_size</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textColor">@color/accent</item> <item name="android:textColor">@color/accent</item>
</style> </style>
<style name="MediumUnimportantFilledButton"> <style name="Widget.Session.Button.Common.UnimportantFilled">
<item name="android:background">@drawable/unimportant_filled_button_medium_background</item> <item name="android:background">@drawable/unimportant_filled_button_medium_background</item>
<item name="android:textAllCaps">false</item> <item name="android:textColor">?colorPrimary</item>
<item name="android:textSize">@dimen/medium_font_size</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textColor">@color/text</item>
</style> </style>
<style name="MediumUnimportantOutlineButton"> <style name="Widget.Session.Button.Common.UnimportantOutline">
<item name="android:background">@drawable/unimportant_outline_button_medium_background</item> <item name="android:background">@drawable/unimportant_outline_button_medium_background</item>
<item name="android:textAllCaps">false</item> <item name="android:textColor">?colorPrimary</item>
<item name="android:textSize">@dimen/medium_font_size</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textColor">@color/text</item>
</style> </style>
<style name="UnimportantDialogButton"> <style name="Widget.Session.Button.Dialog" parent="">
<item name="android:textAllCaps">false</item>
<item name="android:textSize">@dimen/small_font_size</item>
<item name="android:textColor">?android:textColorPrimary</item>
</style>
<style name="Widget.Session.Button.Dialog.Unimportant">
<item name="android:background">@drawable/unimportant_dialog_button_background</item> <item name="android:background">@drawable/unimportant_dialog_button_background</item>
<item name="android:textAllCaps">false</item>
<item name="android:textSize">@dimen/small_font_size</item>
<item name="android:textColor">@color/text</item>
</style> </style>
<style name="ProminentDialogButton"> <style name="Widget.Session.Button.Dialog.Prominent">
<item name="android:background">@drawable/prominent_dialog_button_background</item> <item name="android:background">@drawable/prominent_dialog_button_background</item>
<item name="android:textAllCaps">false</item>
<item name="android:textSize">@dimen/small_font_size</item>
<item name="android:textColor">@color/text</item>
</style> </style>
<style name="DestructiveDialogButton"> <style name="Widget.Session.Button.Dialog.Destructive">
<item name="android:background">@drawable/destructive_dialog_button_background</item> <item name="android:background">@drawable/destructive_dialog_button_background</item>
<item name="android:textAllCaps">false</item>
<item name="android:textSize">@dimen/small_font_size</item>
<item name="android:textColor">@color/text</item>
</style> </style>
<style name="SessionIDTextView"> <style name="SessionIDTextView">

View File

@ -13,6 +13,7 @@ class EditClosedGroupMembersAdapter(
private val glide: GlideRequests, private val glide: GlideRequests,
private val memberClickListener: ((String) -> Unit)? = null private val memberClickListener: ((String) -> Unit)? = null
) : RecyclerView.Adapter<EditClosedGroupMembersAdapter.ViewHolder>() { ) : RecyclerView.Adapter<EditClosedGroupMembersAdapter.ViewHolder>() {
private val members = ArrayList<String>() private val members = ArrayList<String>()
private val lockedMembers = HashSet<String>() private val lockedMembers = HashSet<String>()

View File

@ -39,7 +39,7 @@ class UserView : LinearLayout {
} }
private fun setUpViewHierarchy() { private fun setUpViewHierarchy() {
val inflater = context.applicationContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater val inflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
val contentView = inflater.inflate(R.layout.view_user, null) val contentView = inflater.inflate(R.layout.view_user, null)
addView(contentView) addView(contentView)
} }