From 156b2687b89964ef4d807a5915ad210d79f694d0 Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Tue, 1 Sep 2020 16:58:30 +1000 Subject: [PATCH] Better brand button style for the light mode. QR code fragment themed. Minor adjustments to the brand colors for light mode. --- AndroidManifest.xml | 3 +- ...inent_outline_button_medium_background.xml | 11 +++++ res/layout/fragment_scan_qr_code.xml | 25 ++++++------ .../fragment_scan_qr_code_placeholder.xml | 1 - res/layout/fragment_scan_qr_code_v2.xml | 40 ------------------- res/values-notnight-v21/colors.xml | 4 +- res/values-notnight-v21/styles.xml | 5 +++ res/values/styles.xml | 2 - res/values/themes.xml | 3 +- .../activities/PrivacySettingsActivity.kt | 1 - .../loki/fragments/ScanQRCodeFragment.kt | 4 +- .../fragments/ScanQRCodeWrapperFragment.kt | 2 +- 12 files changed, 37 insertions(+), 64 deletions(-) create mode 100644 res/drawable-notnight/prominent_outline_button_medium_background.xml delete mode 100644 res/layout/fragment_scan_qr_code_v2.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 729f9f2d92..67a18de2a0 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -148,7 +148,8 @@ android:screenOrientation="portrait" /> + android:label="@string/activity_privacy_settings_title" + android:screenOrientation="portrait"/> diff --git a/res/drawable-notnight/prominent_outline_button_medium_background.xml b/res/drawable-notnight/prominent_outline_button_medium_background.xml new file mode 100644 index 0000000000..6e0de35a5b --- /dev/null +++ b/res/drawable-notnight/prominent_outline_button_medium_background.xml @@ -0,0 +1,11 @@ + + + + + + + + + \ No newline at end of file diff --git a/res/layout/fragment_scan_qr_code.xml b/res/layout/fragment_scan_qr_code.xml index 4a3aa5fe79..e511a9f50e 100644 --- a/res/layout/fragment_scan_qr_code.xml +++ b/res/layout/fragment_scan_qr_code.xml @@ -1,9 +1,9 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent"> + android:weightSum="3" > + android:layout_height="0dp"/> + android:text="Scan a user’s QR code to start a session. QR codes can be found by tapping the QR code icon in account settings." + android:background="?android:windowBackground" + android:textSize="@dimen/small_font_size" + android:textColor="?android:textColorTertiary" /> diff --git a/res/layout/fragment_scan_qr_code_placeholder.xml b/res/layout/fragment_scan_qr_code_placeholder.xml index acf7260cce..0e32676d54 100644 --- a/res/layout/fragment_scan_qr_code_placeholder.xml +++ b/res/layout/fragment_scan_qr_code_placeholder.xml @@ -14,7 +14,6 @@ - - - - - - - - - - - - - diff --git a/res/values-notnight-v21/colors.xml b/res/values-notnight-v21/colors.xml index 96352240d9..5bbff4afac 100644 --- a/res/values-notnight-v21/colors.xml +++ b/res/values-notnight-v21/colors.xml @@ -2,14 +2,14 @@ -#00E97B +#5df299 #000000 #606060 #FCFCFC #DFDFDF #FCFCFC #B0B0B0 -@color/transparent +#1000 @color/dialog_background #FCFCFC #212121 diff --git a/res/values-notnight-v21/styles.xml b/res/values-notnight-v21/styles.xml index a7940849a2..6d74a06b4b 100644 --- a/res/values-notnight-v21/styles.xml +++ b/res/values-notnight-v21/styles.xml @@ -12,4 +12,9 @@ + + \ No newline at end of file diff --git a/res/values/styles.xml b/res/values/styles.xml index 26fc33d1e1..455729f480 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -49,8 +49,6 @@