From 9f689c56dc6e2a667492a3cd0b1b34ee3e2d3f6b Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Tue, 25 Aug 2020 23:52:42 +1000 Subject: [PATCH] Consistent action bar styles. --- res/layout-sw400dp/activity_register.xml | 4 +- res/layout-sw400dp/activity_restore.xml | 4 +- res/layout/activity_home.xml | 90 ++++++++++--------- res/layout/activity_register.xml | 4 +- res/layout/conversation_activity.xml | 1 - res/layout/media_overview_activity.xml | 2 +- res/layout/share_activity.xml | 2 +- res/values-notnight-v28/styles.xml | 16 ++-- res/values/styles.xml | 37 +++----- res/values/themes.xml | 16 ++-- .../securesms/loki/views/DeviceView.kt | 2 +- .../securesms/loki/views/FakeChatView.kt | 2 +- .../loki/views/ProfilePictureView.kt | 2 +- .../securesms/loki/views/SeedReminderView.kt | 2 +- 14 files changed, 90 insertions(+), 94 deletions(-) diff --git a/res/layout-sw400dp/activity_register.xml b/res/layout-sw400dp/activity_register.xml index eaac89bcf9..8cc432c160 100644 --- a/res/layout-sw400dp/activity_register.xml +++ b/res/layout-sw400dp/activity_register.xml @@ -71,9 +71,9 @@ android:layout_marginLeft="@dimen/massive_spacing" android:layout_marginRight="@dimen/massive_spacing" android:gravity="center" - android:textColorLink="@color/text" + android:textColor="?android:textColorTertiary" + android:textColorLink="?colorAccent" android:textSize="@dimen/very_small_font_size" - android:textColor="@color/text" android:text="By using this service, you agree to our Terms of Service and Privacy Policy" /> \ No newline at end of file diff --git a/res/layout-sw400dp/activity_restore.xml b/res/layout-sw400dp/activity_restore.xml index 1025380523..bb241b9abf 100644 --- a/res/layout-sw400dp/activity_restore.xml +++ b/res/layout-sw400dp/activity_restore.xml @@ -63,9 +63,9 @@ android:layout_marginLeft="@dimen/massive_spacing" android:layout_marginRight="@dimen/massive_spacing" android:gravity="center" - android:textColorLink="@color/text" + android:textColor="?android:textColorTertiary" + android:textColorLink="?colorAccent" android:textSize="@dimen/very_small_font_size" - android:textColor="@color/text" android:text="By using this service, you agree to our Terms of Service and Privacy Policy" /> \ No newline at end of file diff --git a/res/layout/activity_home.xml b/res/layout/activity_home.xml index f164a88708..ed1ac2526d 100644 --- a/res/layout/activity_home.xml +++ b/res/layout/activity_home.xml @@ -12,59 +12,67 @@ + android:layout_height="wrap_content" + android:background="?colorPrimary" + android:elevation="1dp"> - - - - - + android:layout_height="wrap_content" + android:orientation="vertical"> + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + android:layout_marginLeft="20dp" + android:layout_marginRight="20dp"> - + android:layout_marginLeft="9dp" /> + + + + + + + + - + + + - - diff --git a/res/layout/activity_register.xml b/res/layout/activity_register.xml index 7340e9d825..57a64e2fb3 100644 --- a/res/layout/activity_register.xml +++ b/res/layout/activity_register.xml @@ -72,9 +72,9 @@ android:layout_marginLeft="@dimen/massive_spacing" android:layout_marginRight="@dimen/massive_spacing" android:gravity="center" - android:textColorLink="@color/text" + android:textColor="?android:textColorTertiary" + android:textColorLink="?colorAccent" android:textSize="@dimen/very_small_font_size" - android:textColor="@color/text" android:text="By using this service, you agree to our Terms of Service and Privacy Policy" /> \ No newline at end of file diff --git a/res/layout/conversation_activity.xml b/res/layout/conversation_activity.xml index b2279351a1..5a3f3aaed3 100644 --- a/res/layout/conversation_activity.xml +++ b/res/layout/conversation_activity.xml @@ -9,7 +9,6 @@ + android:theme="@style/Widget.Session.ActionBar"> - + + + - + + + \ No newline at end of file diff --git a/res/values/styles.xml b/res/values/styles.xml index f41bee2265..61113f181f 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -2,39 +2,24 @@ - - - - - - - @@ -227,7 +212,7 @@ parent="@style/Widget.AppCompat.ActionBar"> @color/core_grey_90 @style/ThemeOverlay.AppCompat.Dark - 4dp + 1dp @style/ThemeOverlay.AppCompat.Dark @style/TextSecure.TitleTextStyle @style/TextSecure.SubtitleTextStyle @@ -237,7 +222,7 @@