From c2f50141233e4abb740ebfd40fee11c5c06c858f Mon Sep 17 00:00:00 2001 From: marcmuschko <marc.muschko@sap.com> Date: Sat, 6 Jun 2020 11:19:46 +0200 Subject: [PATCH] Style Adjustments, Risk Card Risk Level Storage (#219) * onboarding text styles * main overview text styles * information screen text styles * risk * fix * settings styling text * settings text * saved risk level display bound to model * fixed nullpointer * adjust settings styling / layout * main overview small design adjustment Co-authored-by: Luka Harambasic <luka.harambasic@sap.com> --- .../storage/RiskLevelRepository.kt | 4 +- .../ui/viewmodel/TracingViewModel.kt | 4 +- .../util/formatter/FormatterRiskHelper.kt | 29 +-- .../util/formatter/FormatterSettingsHelper.kt | 180 ++++++++++++------ .../ic_settings_notification_active.xml | 12 ++ .../ic_settings_notification_inactive.xml | 12 ++ .../res/drawable/ic_settings_reset_circle.xml | 58 +++--- .../drawable/ic_settings_tracing_active.xml | 44 ++--- .../ic_settings_tracing_bluetooth.xml | 26 ++- ...ic_settings_tracing_bluetooth_inactive.xml | 20 +- .../ic_settings_tracing_connection.xml | 26 ++- ...c_settings_tracing_connection_inactive.xml | 20 +- .../drawable/ic_settings_tracing_inactive.xml | 44 ++--- .../main/res/layout/fragment_information.xml | 2 +- .../res/layout/fragment_information_about.xml | 4 +- .../layout/fragment_information_contact.xml | 5 +- .../src/main/res/layout/fragment_main.xml | 2 +- .../res/layout/fragment_main_overview.xml | 154 ++++++++------- .../main/res/layout/fragment_risk_details.xml | 14 +- .../src/main/res/layout/fragment_settings.xml | 14 +- .../res/layout/fragment_settings_reset.xml | 1 + .../res/layout/fragment_settings_tracing.xml | 4 +- .../src/main/res/layout/include_header.xml | 2 +- .../layout/include_information_details.xml | 4 +- .../src/main/res/layout/include_main_card.xml | 3 +- .../layout/include_main_overview_glossary.xml | 4 +- .../layout/include_main_overview_segment.xml | 4 +- .../res/layout/include_navigation_row.xml | 2 +- .../main/res/layout/include_onboarding.xml | 8 +- .../src/main/res/layout/include_risk_card.xml | 13 +- .../res/layout/include_risk_card_header.xml | 2 +- .../main/res/layout/include_risk_card_row.xml | 2 +- .../include_risk_details_behavior_row.xml | 2 +- .../src/main/res/layout/include_row.xml | 2 +- .../main/res/layout/include_setting_row.xml | 4 +- .../layout/include_settings_switch_row.xml | 27 +-- .../layout/include_tracing_status_card.xml | 4 +- .../main/res/layout/view_circle_progress.xml | 1 + .../src/main/res/values-night/colors.xml | 1 - .../src/main/res/values/colors.xml | 3 - .../src/main/res/values/styles.xml | 14 +- .../transaction/RiskLevelTransactionTest.kt | 3 + 42 files changed, 436 insertions(+), 348 deletions(-) create mode 100644 Corona-Warn-App/src/main/res/drawable/ic_settings_notification_active.xml create mode 100644 Corona-Warn-App/src/main/res/drawable/ic_settings_notification_inactive.xml diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/RiskLevelRepository.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/RiskLevelRepository.kt index 61f9627f2..3b82b42cd 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/RiskLevelRepository.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/RiskLevelRepository.kt @@ -7,9 +7,10 @@ import de.rki.coronawarnapp.risk.RiskLevelConstants object RiskLevelRepository { /** - * LiveData variable that can be consumed in a ViewModel to observe RiskLevel changes + * LiveData variables that can be consumed in a ViewModel to observe RiskLevel changes */ val riskLevelScore = MutableLiveData(RiskLevelConstants.UNKNOWN_RISK_INITIAL) + val riskLevelScoreLastSuccessfulCalculated = MutableLiveData(LocalData.lastSuccessfullyCalculatedRiskLevel().raw) /** * Set the new calculated [RiskLevel] @@ -61,6 +62,7 @@ object RiskLevelRepository { private fun setLastSuccessfullyCalculatedScore(riskLevel: RiskLevel) { if (!RiskLevel.UNSUCCESSFUL_RISK_LEVELS.contains(riskLevel)) { LocalData.lastSuccessfullyCalculatedRiskLevel(riskLevel.raw) + riskLevelScoreLastSuccessfulCalculated.postValue(riskLevel.raw) } } } diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/viewmodel/TracingViewModel.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/viewmodel/TracingViewModel.kt index cba690c3f..ad8a5d362 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/viewmodel/TracingViewModel.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/viewmodel/TracingViewModel.kt @@ -32,6 +32,7 @@ class TracingViewModel : ViewModel() { // TODO: comments for variables // Values from RiskLevelRepository val riskLevel: LiveData<Int> = RiskLevelRepository.riskLevelScore + val riskLevelScoreLastSuccessfulCalculated = RiskLevelRepository.riskLevelScoreLastSuccessfulCalculated // Values from ExposureSummaryRepository val daysSinceLastExposure: LiveData<Int?> = ExposureSummaryRepository.daysSinceLastExposure @@ -44,9 +45,6 @@ class TracingViewModel : ViewModel() { val activeTracingDaysInRetentionPeriod = TracingRepository.activeTracingDaysInRetentionPeriod var isRefreshing: LiveData<Boolean> = TracingRepository.isRefreshing - // Todo exchange and get real stored risk level - val savedRiskLevel = 2 - // Todo exchange and get the real next update date val nextUpdate = Date() diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/formatter/FormatterRiskHelper.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/formatter/FormatterRiskHelper.kt index d5c825cb6..0af1aaeb0 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/formatter/FormatterRiskHelper.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/formatter/FormatterRiskHelper.kt @@ -82,21 +82,21 @@ fun formatRiskBody(riskLevelScore: Int?): String { * the persisted risk level is of importance * * @param riskLevelScore - * @param savedRiskLevelScore + * @param riskLevelScoreLastSuccessfulCalculated * @return */ -fun formatRiskSavedRisk(riskLevelScore: Int?, savedRiskLevelScore: Int?): String { +fun formatRiskSavedRisk(riskLevelScore: Int?, riskLevelScoreLastSuccessfulCalculated: Int?): String { val appContext = CoronaWarnApplication.getAppContext() return if ( riskLevelScore == RiskLevelConstants.NO_CALCULATION_POSSIBLE_TRACING_OFF || riskLevelScore == RiskLevelConstants.UNKNOWN_RISK_OUTDATED_RESULTS ) { - when (savedRiskLevelScore) { + when (riskLevelScoreLastSuccessfulCalculated) { RiskLevelConstants.LOW_LEVEL_RISK, RiskLevelConstants.INCREASED_RISK, RiskLevelConstants.UNKNOWN_RISK_INITIAL -> appContext.getString(R.string.risk_card_no_calculation_possible_body_saved_risk) - .format(formatRiskLevelHeadline(savedRiskLevelScore, false)) + .format(formatRiskLevelHeadline(riskLevelScoreLastSuccessfulCalculated, false)) else -> "" } } else { @@ -195,13 +195,13 @@ fun formatRiskActiveTracingDaysInRetentionPeriod( * successfully fetched from the server * * @param riskLevelScore - * @param savedRiskLevelScore + * @param riskLevelScoreLastSuccessfulCalculated * @param lastTimeDiagnosisKeysFetched * @return */ fun formatTimeFetched( riskLevelScore: Int?, - savedRiskLevelScore: Int?, + riskLevelScoreLastSuccessfulCalculated: Int?, lastTimeDiagnosisKeysFetched: Date? ): String { val appContext = CoronaWarnApplication.getAppContext() @@ -221,7 +221,7 @@ fun formatTimeFetched( } RiskLevelConstants.NO_CALCULATION_POSSIBLE_TRACING_OFF, RiskLevelConstants.UNKNOWN_RISK_OUTDATED_RESULTS -> { - when (savedRiskLevelScore) { + when (riskLevelScoreLastSuccessfulCalculated) { RiskLevelConstants.LOW_LEVEL_RISK, RiskLevelConstants.INCREASED_RISK, RiskLevelConstants.UNKNOWN_RISK_INITIAL -> { @@ -272,21 +272,6 @@ fun formatNextUpdate( } } -/** - * Formats the risk details subtitle text display depending on risk level - * - * @param riskLevelScore - * @return - */ -fun formatRiskDetailsRiskLevelSubtitle(riskLevelScore: Int?): String { - val appContext = CoronaWarnApplication.getAppContext() - return when (riskLevelScore) { - RiskLevelConstants.LOW_LEVEL_RISK, - RiskLevelConstants.INCREASED_RISK -> appContext.getString(R.string.risk_details_subtitle_infection_risk_past) - else -> appContext.getString(R.string.risk_details_subtitle_infection_risk) - } -} - /** * Formats the risk details text display for each risk level * diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/formatter/FormatterSettingsHelper.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/formatter/FormatterSettingsHelper.kt index 9194931d5..80c8a4b94 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/formatter/FormatterSettingsHelper.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/formatter/FormatterSettingsHelper.kt @@ -7,6 +7,7 @@ import de.rki.coronawarnapp.CoronaWarnApplication import de.rki.coronawarnapp.R /*Texter*/ + /** * Formats the text display of settings item status depending on flag provided * @@ -34,6 +35,43 @@ fun formatNotificationsStatusText( ): String = formatStatus((notifications && (notificationsRisk || notificationsTest))) +/** + * Formats the settings notifications title display depending on notifications status + * + * @param notifications + * @return + */ +fun formatNotificationsTitle(notifications: Boolean): String = formatText( + notifications, + R.string.settings_notifications_headline_active, + R.string.settings_notifications_headline_inactive +) + +/** + * Formats the settings notifications description text display depending on notifications status + * + * @param notifications + * @return + */ +fun formatNotificationsDescription(notifications: Boolean): String = formatText( + notifications, + R.string.settings_notifications_body_active, + R.string.settings_notifications_body_inactive +) + +/** + * Formats the settings notifications details illustration description depending on notifications status + * + * @param notifications + * @return + */ +fun formatNotificationIllustrationText(notifications: Boolean): String = + formatText( + notifications, + R.string.settings_notifications_illustration_description_active, + R.string.settings_notifications_illustration_description_inactive + ) + /** * Change the tracing text in the row based on the tracing status. * @@ -78,30 +116,6 @@ fun formatTracingDescription(tracing: Boolean, bluetooth: Boolean, connection: B } } -/** - * Formats the settings notifications title display depending on notifications status - * - * @param notifications - * @return - */ -fun formatNotificationsTitle(notifications: Boolean): String = formatText( - notifications, - R.string.settings_notifications_headline_active, - R.string.settings_notifications_headline_inactive -) - -/** - * Formats the settings notifications description text display depending on notifications status - * - * @param notifications - * @return - */ -fun formatNotificationsDescription(notifications: Boolean): String = formatText( - notifications, - R.string.settings_notifications_body_active, - R.string.settings_notifications_body_inactive -) - /** * Formats the tracing body depending on the tracing status and the days since last exposure. * @@ -116,19 +130,6 @@ fun formatTracingStatusBody(activeTracingDaysInRetentionPeriod: Long): String { return resources.getQuantityString(R.plurals.settings_tracing_status_body_active, days, days) } -/** - * Formats the settings notifications details illustration description depending on notifications status - * - * @param notifications - * @return - */ -fun formatNotificationIllustrationText(notifications: Boolean): String = - formatText( - notifications, - R.string.settings_notifications_illustration_description_active, - R.string.settings_notifications_illustration_description_inactive - ) - /** * Format the settings tracing content description for the header illustration * @@ -157,29 +158,103 @@ fun formatTracingIllustrationText( } /*Styler*/ + /** - * Formats the settings icon color depending on flag provided + * Formats the settings icon color for notifications depending on notification values * - * @param active + * @param notifications + * @param notificationsRisk + * @param notificationsTest * @return Int */ -fun formatIconColor(active: Boolean): Int = - formatColor(active, R.color.settingsIconActive, R.color.settingsIconInactive) +fun formatNotificationIconColor( + notifications: Boolean, + notificationsRisk: Boolean, + notificationsTest: Boolean +): Int = + formatColor( + (notifications && (notificationsRisk || notificationsTest)), + R.color.tracingIconActive, + R.color.tracingIconInactive + ) /** - * Formats the settings icon color for notifications depending on notification values + * Formats settings icon color for notifications depending on notification values * * @param notifications * @param notificationsRisk * @param notificationsTest - * @return Int + * @return */ -fun formatIconColor( +fun formatNotificationIcon( notifications: Boolean, notificationsRisk: Boolean, notificationsTest: Boolean -): Int = - formatIconColor((notifications && (notificationsRisk || notificationsTest))) +): Drawable? = + formatDrawable( + (notifications && (notificationsRisk || notificationsTest)), + R.drawable.ic_settings_notification_active, + R.drawable.ic_settings_notification_inactive + ) + +/** + * Formats the settings notifications details illustration depending on notifications status + * + * @param notifications + * @return + */ +fun formatNotificationImage(notifications: Boolean): Drawable? = + formatDrawable( + notifications, + R.drawable.ic_settings_illustration_notification_on, + R.drawable.ic_settings_illustration_notification_off + ) + +/** + * Formats the settings icon color for tracing depending on tracing values + * + * @param tracing + * @param bluetooth + * @param connection + * @return + */ +fun formatSettingsTracingIconColor(tracing: Boolean, bluetooth: Boolean, connection: Boolean): Int { + val appContext = CoronaWarnApplication.getAppContext() + return when (tracingStatusHelper(tracing, bluetooth, connection)) { + TracingStatusHelper.CONNECTION, TracingStatusHelper.BLUETOOTH -> + appContext.getColor(R.color.settingsIconInactive) + TracingStatusHelper.TRACING_ACTIVE -> + appContext.getColor(R.color.tracingIconActive) + TracingStatusHelper.TRACING_INACTIVE -> + appContext.getColor(R.color.tracingIconInactive) + else -> appContext.getColor(R.color.tracingIconInactive) + } +} + +/** + * Formats the settings icon for tracing depending on tracing values + * + * @param tracing + * @param bluetooth + * @param connection + * @return + */ +fun formatSettingsTracingIcon( + tracing: Boolean, + bluetooth: Boolean, + connection: Boolean +): Drawable? { + val appContext = CoronaWarnApplication.getAppContext() + return when (tracingStatusHelper(tracing, bluetooth, connection)) { + TracingStatusHelper.CONNECTION, + TracingStatusHelper.BLUETOOTH, + TracingStatusHelper.TRACING_ACTIVE -> + appContext.getDrawable(R.drawable.ic_settings_tracing_active) + TracingStatusHelper.TRACING_INACTIVE -> + appContext.getDrawable(R.drawable.ic_settings_tracing_inactive) + else -> appContext.getDrawable(R.drawable.ic_settings_tracing_inactive) + } +} /** * Formats the tracing switch status based on the tracing status @@ -330,16 +405,3 @@ fun formatTracingStatusVisibilityTracing( tracingStatus == TracingStatusHelper.TRACING_INACTIVE ) } - -/** - * Formats the settings notifications details illustration depending on notifications status - * - * @param notifications - * @return - */ -fun formatNotificationImage(notifications: Boolean): Drawable? = - formatDrawable( - notifications, - R.drawable.ic_settings_illustration_notification_on, - R.drawable.ic_settings_illustration_notification_off - ) diff --git a/Corona-Warn-App/src/main/res/drawable/ic_settings_notification_active.xml b/Corona-Warn-App/src/main/res/drawable/ic_settings_notification_active.xml new file mode 100644 index 000000000..5a989615c --- /dev/null +++ b/Corona-Warn-App/src/main/res/drawable/ic_settings_notification_active.xml @@ -0,0 +1,12 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="40dp" + android:height="40dp" + android:viewportWidth="40" + android:viewportHeight="40"> + <path + android:pathData="M20,10C19.172,10 18.5,10.672 18.5,11.5L18.5,12.1953C15.9132,12.8621 14,15.2048 14,18L14,24L12,26L12,27L18.2695,27C18.0934,27.3039 18.0005,27.6488 18,28C18,29.1046 18.8954,30 20,30C21.1046,30 22,29.1046 22,28C21.9989,27.6486 21.9053,27.3037 21.7285,27L28,27L28,26L26,24L26,18C26,15.2048 24.0868,12.8621 21.5,12.1953L21.5,11.5C21.5,10.672 20.828,10 20,10ZM20,14C22.206,14 24,15.794 24,18L24,24L24,24.8281L24.1719,25L15.8281,25L16,24.8281L16,24L16,18C16,15.794 17.794,14 20,14Z" + android:strokeWidth="1" + android:fillColor="#007FAD" + android:fillType="nonZero" + android:strokeColor="#00000000"/> +</vector> diff --git a/Corona-Warn-App/src/main/res/drawable/ic_settings_notification_inactive.xml b/Corona-Warn-App/src/main/res/drawable/ic_settings_notification_inactive.xml new file mode 100644 index 000000000..4285730c9 --- /dev/null +++ b/Corona-Warn-App/src/main/res/drawable/ic_settings_notification_inactive.xml @@ -0,0 +1,12 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="40dp" + android:height="41dp" + android:viewportWidth="40" + android:viewportHeight="41"> + <path + android:pathData="M14.2583,16.2546L15.9991,17.995L16,24.8281L15.8281,25L23.0031,25L25.0031,27L21.7285,27C21.8758,27.2531 21.9654,27.5348 21.9918,27.825L22,28C22,29.1046 21.1046,30 20,30C18.8954,30 18,29.1046 18,28C18.0005,27.6488 18.0934,27.3039 18.2695,27L18.2695,27L12,27L12,26L14,24L14,18C14,17.3927 14.0903,16.8067 14.2583,16.2546ZM12.7856,11.7951L12.8521,11.8538L28.1462,27.1479C28.4219,27.4236 28.4219,27.8705 28.1462,28.1462C27.8917,28.4007 27.4913,28.4202 27.2144,28.2049L27.1479,28.1462L11.8538,12.8521C11.5781,12.5764 11.5781,12.1295 11.8538,11.8538C12.1083,11.5993 12.5087,11.5798 12.7856,11.7951ZM20,10C20.828,10 21.5,10.672 21.5,11.5L21.5,11.5L21.5,12.1953C24.0868,12.8621 26,15.2048 26,18L26,18L26,24L28,26L27.9991,26.002L23.9991,22.002L24,18C24,15.8608 22.3131,14.1091 20.1994,14.0049L20,14C18.896,14 17.8952,14.4493 17.1708,15.1747L15.7578,13.7618C16.5042,13.0167 17.4462,12.4669 18.5,12.1953L18.5,12.1953L18.5,11.5C18.5,10.672 19.172,10 20,10Z" + android:strokeWidth="1" + android:fillColor="#C00F2D" + android:fillType="nonZero" + android:strokeColor="#00000000"/> +</vector> diff --git a/Corona-Warn-App/src/main/res/drawable/ic_settings_reset_circle.xml b/Corona-Warn-App/src/main/res/drawable/ic_settings_reset_circle.xml index b9f5b384b..0bfe1b0a0 100644 --- a/Corona-Warn-App/src/main/res/drawable/ic_settings_reset_circle.xml +++ b/Corona-Warn-App/src/main/res/drawable/ic_settings_reset_circle.xml @@ -1,28 +1,34 @@ <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24" - android:viewportHeight="24"> - <path - android:fillAlpha="0.14092727" - android:fillColor="#95B9CB" - android:fillType="evenOdd" - android:pathData="M3.6247,3.6245L8.5508,8.5516C7.6686,9.4342 7.1229,10.6533 7.1229,11.9998C7.1229,13.3114 7.6421,14.5391 8.5512,15.4483L8.5522,15.4493L3.6245,20.3755C1.5605,18.3107 0.2549,15.4886 0.161,12.3619L0.1555,11.9998C0.1555,8.729 1.4813,5.7679 3.6247,3.6245ZM20.3753,3.6245C22.5187,5.7679 23.8445,8.729 23.8445,11.9998C23.8445,15.2705 22.5187,18.2317 20.3753,20.3751L15.4481,15.4489C16.331,14.5663 16.8771,13.3468 16.8771,11.9998C16.8771,10.6533 16.3314,9.4342 15.4492,8.5516Z" - android:strokeWidth="1" - android:strokeAlpha="0.14092727" - android:strokeColor="#00000000" /> - <path - android:fillAlpha="0.36" - android:fillColor="#95B9CB" - android:fillType="evenOdd" - android:pathData="M5.5954,5.5952L8.5508,8.5517C7.6686,9.4343 7.1229,10.6533 7.1229,11.9999C7.1229,13.3115 7.6421,14.5392 8.5512,15.4484C8.5515,15.4487 8.5519,15.449 8.5522,15.4493L5.5955,18.4042C4.0274,16.8364 3.0318,14.6966 2.9482,12.3247L2.9425,11.9999C2.9425,9.4987 3.9563,7.2343 5.5954,5.5952ZM18.4046,5.5952C20.0437,7.2343 21.0575,9.4987 21.0575,11.9999C21.0575,14.501 20.0437,16.7654 18.4046,18.4045L15.4481,15.449C16.331,14.5664 16.8771,13.3469 16.8771,11.9999C16.8771,10.6533 16.3314,9.4343 15.4492,8.5517Z" - android:strokeWidth="1" - android:strokeAlpha="0.36" - android:strokeColor="#00000000" /> - <path - android:fillColor="#007FAD" - android:fillType="nonZero" - android:pathData="M12,5.7293C8.5368,5.7293 5.7294,8.5367 5.7294,11.9999C5.7294,13.6849 6.398,15.2657 7.5658,16.4336C8.7338,17.6017 10.3148,18.2704 12,18.2704C15.4632,18.2704 18.2706,15.463 18.2706,11.9999C18.2706,8.5367 15.4632,5.7293 12,5.7293ZM12,7.1227C14.6936,7.1227 16.8771,9.3063 16.8771,11.9999C16.8771,14.6934 14.6936,16.877 12,16.877C10.6882,16.877 9.4604,16.3576 8.5512,15.4484C7.6421,14.5392 7.1229,13.3115 7.1229,11.9999C7.1229,9.3063 9.3064,7.1227 12,7.1227Z" - android:strokeWidth="1" - android:strokeColor="#00000000" /> + android:width="40dp" + android:height="40dp" + android:viewportWidth="40" + android:viewportHeight="40"> + <path + android:pathData="M20,0L20,0A20,20 0,0 1,40 20L40,20A20,20 0,0 1,20 40L20,40A20,20 0,0 1,0 20L0,20A20,20 0,0 1,20 0z" + android:strokeWidth="1" + android:fillColor="#FFFFFF" + android:fillType="evenOdd" + android:strokeColor="#00000000"/> + <path + android:pathData="M11.5147,11.5007L12.513,12.499C10.5969,14.4151 9.4118,17.0622 9.4118,19.9861C9.4118,22.7197 10.4506,25.2854 12.2799,27.2326L12.5127,27.4727L11.5143,28.4709C9.343,26.2994 8,23.2995 8,19.986C8,16.6723 9.3431,13.6723 11.5147,11.5007ZM28.4853,11.5007C30.6569,13.6723 32,16.6723 32,19.986C32,23.2994 30.6571,26.2992 28.4858,28.4708L27.487,27.4731C29.4031,25.557 30.5882,22.9099 30.5882,19.9861C30.5882,17.0622 29.4031,14.4151 27.487,12.499Z" + android:strokeAlpha="0.24" + android:strokeWidth="1" + android:fillColor="#95B9CB" + android:fillType="evenOdd" + android:strokeColor="#00000000" + android:fillAlpha="0.24"/> + <path + android:pathData="M26.4882,13.4968C28.1492,15.1575 29.1765,17.4518 29.1765,19.9861C29.1765,22.5203 28.1492,24.8146 26.4882,26.4753L25.4905,25.4765C26.8956,24.0714 27.7647,22.1302 27.7647,19.9861C27.7647,17.8419 26.8956,15.9007 25.4905,14.4956ZM13.5118,13.4968L14.5095,14.4956C13.1044,15.9007 12.2353,17.8419 12.2353,19.9861C12.2353,21.9699 12.9813,23.833 14.2969,25.2554L14.5093,25.4763L13.511,26.4745C11.8505,24.8139 10.8235,22.5199 10.8235,19.9861C10.8235,17.4518 11.8508,15.1575 13.5118,13.4968Z" + android:strokeAlpha="0.6" + android:strokeWidth="1" + android:fillColor="#95B9CB" + android:fillType="evenOdd" + android:strokeColor="#00000000" + android:fillAlpha="0.6"/> + <path + android:pathData="M20,13.6331C16.4914,13.6331 13.6471,16.4774 13.6471,19.9861C13.6471,21.6932 14.3245,23.2948 15.5076,24.4781C16.6909,25.6614 18.2927,26.339 20,26.339C23.5086,26.339 26.3529,23.4947 26.3529,19.9861C26.3529,16.4774 23.5086,13.6331 20,13.6331ZM20,15.4379C22.5118,15.4379 24.5481,17.4742 24.5481,19.9861C24.5481,22.4979 22.5118,24.5342 20,24.5342C18.7767,24.5342 17.6317,24.0498 16.7839,23.2019C15.9361,22.3541 15.4519,21.2092 15.4519,19.9861C15.4519,17.4742 17.4882,15.4379 20,15.4379Z" + android:strokeWidth="1" + android:fillColor="#007FAD" + android:fillType="nonZero" + android:strokeColor="#00000000"/> </vector> diff --git a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_active.xml b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_active.xml index b543f752e..d8f8b595c 100644 --- a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_active.xml +++ b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_active.xml @@ -3,26 +3,26 @@ android:height="40dp" android:viewportWidth="40" android:viewportHeight="40"> - <path - android:fillAlpha="0.14092727" - android:fillColor="#95B9CB" - android:fillType="evenOdd" - android:pathData="M7.9792,7.9791L15.0503,15.0502C13.7835,16.3169 13,18.0669 13,19.9999C13,21.7779 13.6647,23.4484 14.8378,24.7278L15.05,24.9494C15.0504,24.9498 15.0507,24.9501 15.051,24.9504L7.979,32.0211C4.9958,29.0371 3.1164,24.9505 3.0052,20.4254L3,19.9999C3,15.3055 4.9028,11.0555 7.9792,7.9791ZM32.0208,7.9791C35.0972,11.0555 37,15.3055 37,19.9999C37,24.6943 35.0972,28.9443 32.0208,32.0207L24.9497,24.9497C26.2165,23.6829 27,21.9329 27,19.9999C27,18.0674 26.2169,16.3178 24.9507,15.0511Z" - android:strokeWidth="1" - android:strokeAlpha="0.14092727" - android:strokeColor="#00000000" /> - <path - android:fillAlpha="0.36" - android:fillColor="#95B9CB" - android:fillType="evenOdd" - android:pathData="M10.8076,10.8076L15.0503,15.0503C13.7835,16.317 13,18.067 13,20C13,21.8826 13.7452,23.6446 15.05,24.9495C15.0504,24.9499 15.0507,24.9502 15.051,24.9505L10.808,29.1926C8.5389,26.9235 7.1051,23.8206 7.0055,20.3833L7,20C7,16.4101 8.4551,13.1601 10.8076,10.8076ZM29.1934,10.8086C31.5453,13.1611 33,16.4107 33,20C33,23.5899 31.5449,26.8399 29.1924,29.1924L24.9497,24.9497C26.2165,23.683 27,21.933 27,20C27,18.0675 26.2169,16.3179 24.9507,15.0512Z" - android:strokeWidth="1" - android:strokeAlpha="0.36" - android:strokeColor="#00000000" /> - <path - android:fillColor="#007FAD" - android:fillType="nonZero" - android:pathData="M20,11C15.0294,11 11,15.0294 11,20C11,22.4184 11.9596,24.6874 13.6358,26.3637C15.3121,28.0401 17.5813,29 20,29C24.9706,29 29,24.9706 29,20C29,15.0294 24.9706,11 20,11ZM20,13C23.866,13 27,16.134 27,20C27,23.866 23.866,27 20,27C18.1172,27 16.355,26.2546 15.05,24.9495C13.7452,23.6446 13,21.8826 13,20C13,16.134 16.134,13 20,13Z" - android:strokeWidth="1" - android:strokeColor="#00000000" /> + <path + android:pathData="M7.9802,7.9781L9.3939,9.3929C6.6791,12.1074 5,15.8576 5,20C5,24.0341 6.5969,27.8099 9.3929,30.6061C9.3933,30.6065 9.3936,30.6068 9.3939,30.6071L7.979,32.0211C4.9958,29.0371 3.1164,24.9505 3.0052,20.4254L3,19.9999C3,15.305 4.9032,11.0546 7.9802,7.9781ZM32.0208,7.9791C35.0972,11.0555 37,15.3055 37,19.9999C37,24.6943 35.0972,28.9443 32.0208,32.0207L30.6066,30.6066C33.3211,27.8921 35,24.1421 35,20C35,15.8581 33.3213,12.1083 30.6071,9.3939Z" + android:strokeAlpha="0.24" + android:strokeWidth="1" + android:fillColor="#95B9CB" + android:fillType="evenOdd" + android:strokeColor="#00000000" + android:fillAlpha="0.24"/> + <path + android:pathData="M10.8076,10.8076L12.2218,12.2218C10.2312,14.2124 9,16.9624 9,20C9,22.84 10.0793,25.5054 11.9797,27.5284L12.2215,27.7778C12.2218,27.7782 12.2221,27.7785 12.2225,27.7788L10.808,29.1926C8.5389,26.9235 7.1051,23.8206 7.0055,20.3833L7,20C7,16.4101 8.4551,13.1601 10.8076,10.8076ZM29.1934,10.8086C31.5453,13.1611 33,16.4107 33,20C33,23.5899 31.5449,26.8399 29.1924,29.1924L27.7782,27.7782C29.7688,25.7876 31,23.0376 31,20C31,16.9629 29.7692,14.2134 27.7792,12.2228Z" + android:strokeAlpha="0.6" + android:strokeWidth="1" + android:fillColor="#95B9CB" + android:fillType="evenOdd" + android:strokeColor="#00000000" + android:fillAlpha="0.6"/> + <path + android:pathData="M20,11C15.0294,11 11,15.0294 11,20C11,22.4184 11.9596,24.6874 13.6358,26.3637C15.3121,28.0401 17.5813,29 20,29C24.9706,29 29,24.9706 29,20C29,15.0294 24.9706,11 20,11ZM20,13C23.866,13 27,16.134 27,20C27,23.866 23.866,27 20,27C18.1172,27 16.355,26.2546 15.05,24.9495C13.7452,23.6446 13,21.8826 13,20C13,16.134 16.134,13 20,13Z" + android:strokeWidth="1" + android:fillColor="#007FAD" + android:fillType="nonZero" + android:strokeColor="#00000000"/> </vector> diff --git a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_bluetooth.xml b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_bluetooth.xml index 66c42c5e8..5100ec034 100644 --- a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_bluetooth.xml +++ b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_bluetooth.xml @@ -1,12 +1,18 @@ <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="42dp" - android:height="42dp" - android:viewportWidth="42" - android:viewportHeight="42"> - <path - android:fillColor="#0071F0" - android:fillType="evenOdd" - android:pathData="M21,1C32.0457,1 41,9.9543 41,21C41,32.0457 32.0457,41 21,41C9.9543,41 1,32.0457 1,21C1,9.9543 9.9543,1 21,1ZM20.2935,10.586L20.2935,18.586L16.7245,15.016L15.3105,16.431L19.8795,21L15.2925,25.587L16.7065,27.001L20.2935,23.414L20.2935,31.414L26.7075,25L22.7075,21L26.7075,17L20.2935,10.586ZM22.2935,23.414L23.8795,25L22.2935,26.586L22.2935,23.414ZM22.2935,15.414L23.8795,17L22.2935,18.586L22.2935,15.414Z" - android:strokeWidth="1" - android:strokeColor="#00000000" /> + android:width="40dp" + android:height="40dp" + android:viewportWidth="40" + android:viewportHeight="40"> + <path + android:pathData="M20,0L20,0A20,20 0,0 1,40 20L40,20A20,20 0,0 1,20 40L20,40A20,20 0,0 1,0 20L0,20A20,20 0,0 1,20 0z" + android:strokeWidth="1" + android:fillColor="#0071F0" + android:fillType="evenOdd" + android:strokeColor="#00000000"/> + <path + android:pathData="M25.7075,16L19.2935,9.586L19.2935,17.586L19.2935,17.586L15.7245,14.016L14.3105,15.431L18.8795,20L14.2925,24.587L15.7065,26.001L19.2935,22.414L19.2935,30.414L25.7075,24L21.7075,20L25.7075,16ZM21.2935,14.414L22.8795,16L21.2935,17.586L21.2935,14.414ZM21.2935,25.586L21.2935,22.414L22.8795,24L21.2935,25.586Z" + android:strokeWidth="1" + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:strokeColor="#00000000"/> </vector> diff --git a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_bluetooth_inactive.xml b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_bluetooth_inactive.xml index c241107eb..5669ab489 100644 --- a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_bluetooth_inactive.xml +++ b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_bluetooth_inactive.xml @@ -1,12 +1,12 @@ <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="22dp" - android:height="22dp" - android:viewportWidth="22" - android:viewportHeight="22"> - <path - android:fillColor="#C00F2D" - android:fillType="nonZero" - android:pathData="M2.414,1.43L8.566,7.583L8.5655,7.5846L12.397,11.412L12.397,11.414L20.4068,19.4179L18.9816,20.8458L14.9877,16.8581L9.983,21.828L9.983,13.828L6.396,17.415L4.982,16.001L9.569,11.414L1,2.845L2.414,1.43ZM11.983,13.828L11.983,17L13.569,15.414L11.983,13.828ZM9.983,1L16.397,7.414L13.8225,9.9885L13.812,9.998L12.236,8.44L12.3872,8.5875L13.569,7.414L11.983,5.828L11.983,8.19L9.982,6.212L9.983,1Z" - android:strokeWidth="1" - android:strokeColor="#00000000" /> + android:width="41dp" + android:height="40dp" + android:viewportWidth="41" + android:viewportHeight="40"> + <path + android:pathData="M11.914,10.2096L18.066,16.3626L18.0655,16.3642L21.897,20.1916L21.897,20.1936L29.9068,28.1975L28.4816,29.6254L24.4877,25.6377L19.483,30.6076L19.483,22.6076L15.896,26.1946L14.482,24.7806L19.069,20.1936L10.5,11.6246L11.914,10.2096ZM21.483,22.6076L21.483,25.7796L23.069,24.1936L21.483,22.6076ZM19.483,9.7796L25.897,16.1936L23.3225,18.7681L23.312,18.7776L21.736,17.2196L21.8872,17.3671L23.069,16.1936L21.483,14.6076L21.483,16.9696L19.482,14.9916L19.483,9.7796Z" + android:strokeWidth="1" + android:fillColor="#C00F2D" + android:fillType="nonZero" + android:strokeColor="#00000000"/> </vector> diff --git a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_connection.xml b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_connection.xml index 734f6ebf8..85e7eb1cc 100644 --- a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_connection.xml +++ b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_connection.xml @@ -1,12 +1,18 @@ <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="42dp" - android:height="42dp" - android:viewportWidth="42" - android:viewportHeight="42"> - <path - android:fillColor="#0071F0" - android:fillType="evenOdd" - android:pathData="M21,1C32.0457,1 41,9.9543 41,21C41,32.0457 32.0457,41 21,41C9.9543,41 1,32.0457 1,21C1,9.9543 9.9543,1 21,1ZM21.001,23.5C19.601,23.5 18.3159,23.987 17.2939,24.793L21.001,28.5L24.708,24.793C23.686,23.987 22.401,23.5 21.001,23.5ZM21.001,18.5C18.222,18.5 15.688,19.543 13.749,21.248L15.8701,23.3691C17.2611,22.2041 19.05,21.5 21.001,21.5C22.952,21.5 24.7418,22.2031 26.1318,23.3691L28.251,21.25C26.313,19.544 23.78,18.5 21.001,18.5ZM21.001,13.5C16.859,13.5 13.1086,15.1786 10.3936,17.8926L12.3369,19.8359C14.6399,17.7699 17.671,16.5 21.001,16.5C24.331,16.5 27.363,17.7689 29.665,19.8359L31.6064,17.8945C28.8924,15.1795 25.143,13.5 21.001,13.5Z" - android:strokeWidth="1" - android:strokeColor="#00000000" /> + android:width="40dp" + android:height="40dp" + android:viewportWidth="40" + android:viewportHeight="40"> + <path + android:pathData="M20,0L20,0A20,20 0,0 1,40 20L40,20A20,20 0,0 1,20 40L20,40A20,20 0,0 1,0 20L0,20A20,20 0,0 1,20 0z" + android:strokeWidth="1" + android:fillColor="#2296F3" + android:fillType="evenOdd" + android:strokeColor="#00000000"/> + <path + android:pathData="M20.001,12.5C15.859,12.5 12.1086,14.1786 9.3936,16.8926L11.3369,18.8359C13.6399,16.7699 16.671,15.5 20.001,15.5C23.331,15.5 26.363,16.7689 28.665,18.8359L30.6064,16.8945C27.8924,14.1795 24.143,12.5 20.001,12.5ZM20.001,17.5C17.222,17.5 14.688,18.543 12.749,20.248L14.8701,22.3691C16.2611,21.2041 18.05,20.5 20.001,20.5C21.952,20.5 23.7418,21.2031 25.1318,22.3691L27.251,20.25C25.313,18.544 22.78,17.5 20.001,17.5ZM20.001,22.5C18.601,22.5 17.3159,22.987 16.2939,23.793L20.001,27.5L23.708,23.793C22.686,22.987 21.401,22.5 20.001,22.5Z" + android:strokeWidth="1" + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:strokeColor="#00000000"/> </vector> diff --git a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_connection_inactive.xml b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_connection_inactive.xml index 42e277ea0..5bcad91c3 100644 --- a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_connection_inactive.xml +++ b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_connection_inactive.xml @@ -1,12 +1,12 @@ <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="21dp" - android:height="21dp" - android:viewportWidth="21" - android:viewportHeight="21"> - <path - android:fillColor="#C00F2D" - android:fillType="nonZero" - android:pathData="M2.3145,1L0.9004,2.4141L3.8262,5.3398C2.4087,6.0602 1.1139,6.9866 0,8.0996L1.9434,10.043C3.1338,8.9748 4.5264,8.1366 6.0469,7.5605L7.623,9.1367C6.0257,9.5901 4.5707,10.3863 3.3555,11.4551L5.4766,13.5762C6.7722,12.4911 8.4155,11.8135 10.2109,11.7246L12.5137,14.0273C11.9142,13.8243 11.275,13.707 10.6074,13.707C9.2074,13.707 7.9224,14.194 6.9004,15L10.6074,18.707L13.9004,15.4141L18.9004,20.4141L20.3145,19L2.3145,1ZM10.6074,3.707C9.7544,3.707 8.9244,3.7946 8.1094,3.9316L10.8965,6.7207C14.1115,6.7927 17.0365,8.037 19.2715,10.043L21.2129,8.1016C18.4989,5.3866 14.7494,3.707 10.6074,3.707ZM13.209,9.0313L16.7461,12.5684L17.8574,11.457C16.5454,10.302 14.958,9.4602 13.209,9.0313Z" - android:strokeWidth="1" - android:strokeColor="#00000000" /> + android:width="41dp" + android:height="40dp" + android:viewportWidth="41" + android:viewportHeight="40"> + <path + android:pathData="M12.208,10.293L10.7939,11.707L13.7197,14.6328C12.3022,15.3532 11.0074,16.2795 9.8936,17.3926L11.8369,19.3359C13.0273,18.2677 14.42,17.4296 15.9404,16.8535L17.5166,18.4297C15.9193,18.883 14.4643,19.6793 13.249,20.748L15.3701,22.8691C16.6657,21.784 18.309,21.1064 20.1045,21.0176L22.4072,23.3203C21.8077,23.1173 21.1686,23 20.501,23C19.101,23 17.8159,23.487 16.7939,24.293L20.501,28L23.7939,24.707L28.7939,29.707L30.208,28.293L12.208,10.293ZM20.501,13C19.648,13 18.8179,13.0876 18.0029,13.2246L20.79,16.0137C24.005,16.0857 26.93,17.3299 29.165,19.3359L31.1064,17.3945C28.3924,14.6795 24.643,13 20.501,13ZM23.1025,18.3242L26.6396,21.8613L27.751,20.75C26.439,19.595 24.8515,18.7532 23.1025,18.3242Z" + android:strokeWidth="1" + android:fillColor="#C00F2D" + android:fillType="nonZero" + android:strokeColor="#00000000"/> </vector> diff --git a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_inactive.xml b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_inactive.xml index 947c3ba9c..58dd5566f 100644 --- a/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_inactive.xml +++ b/Corona-Warn-App/src/main/res/drawable/ic_settings_tracing_inactive.xml @@ -3,26 +3,26 @@ android:height="40dp" android:viewportWidth="40" android:viewportHeight="40"> - <path - android:fillAlpha="0.12" - android:fillColor="#C00F2D" - android:fillType="evenOdd" - android:pathData="M7.9792,7.9791L10.5233,10.5233C9.7422,11.3043 9.7422,12.5707 10.5233,13.3517L10.5233,13.3517L13.8414,16.6696C13.3048,17.66 13,18.7943 13,19.9999C13,21.7779 13.6647,23.4484 14.8378,24.7278L15.05,24.9494C15.0504,24.9498 15.0507,24.9501 15.051,24.9504L7.979,32.0211C4.9958,29.0371 3.1164,24.9505 3.0052,20.4254L3,19.9999C3,15.3055 4.9028,11.0555 7.9792,7.9791ZM32.0208,7.9791C35.0972,11.0555 37,15.3055 37,19.9999C37,24.6943 35.0972,28.9443 32.0208,32.0207L29.4767,29.4767C30.2578,28.6957 30.2578,27.4293 29.4767,26.6483L29.4767,26.6483L26.158,23.3312C26.695,22.3406 27,21.2059 27,19.9999C27,18.0674 26.2169,16.3178 24.9507,15.0511Z" - android:strokeWidth="1" - android:strokeAlpha="0.12" - android:strokeColor="#00000000" /> - <path - android:fillAlpha="0.28" - android:fillColor="#C00F2D" - android:fillType="evenOdd" - android:pathData="M9.9456,11.7571C9.8943,12.3273 10.0868,12.9153 10.5233,13.3517L10.5233,13.3517L13.8414,16.6697C13.3048,17.6601 13,18.7944 13,20C13,21.8826 13.7452,23.6446 15.05,24.9495C15.0504,24.9499 15.0507,24.9502 15.051,24.9505L10.808,29.1926C8.5389,26.9235 7.1051,23.8206 7.0055,20.3833L7,20C7,16.923 8.069,14.0957 9.856,11.8692ZM29.1924,10.8076C31.5449,13.1601 33,16.4101 33,20C33,23.1288 31.8947,25.9994 30.0533,28.2427C30.1056,27.6725 29.9131,27.0846 29.4767,26.6483L29.4767,26.6483L26.1586,23.3303C26.6952,22.3399 27,21.2056 27,20C27,18.0675 26.2169,16.3179 24.9507,15.0512Z" - android:strokeWidth="1" - android:strokeAlpha="0.28" - android:strokeColor="#00000000" /> - <path - android:fillColor="#C00F2D" - android:fillType="nonZero" - android:pathData="M12.3804,15.208L13.8411,16.6703C13.3046,17.6605 13,18.7947 13,20C13,21.8826 13.7452,23.6446 15.05,24.9495C16.355,26.2546 18.1172,27 20,27C21.2053,27 22.3395,26.6954 23.3297,26.1589L24.791,27.6202C23.4037,28.4943 21.7609,29 20,29C17.5813,29 15.3121,28.0401 13.6358,26.3637C11.9596,24.6874 11,22.4184 11,20C11,18.2387 11.506,16.5955 12.3804,15.208ZM12.5504,11.1472L12.6446,11.2304L28.6446,27.2304C29.0351,27.6209 29.0351,28.2541 28.6446,28.6446C28.2841,29.0051 27.7169,29.0328 27.3246,28.7278L27.2304,28.6446L11.2304,12.6446C10.8399,12.2541 10.8399,11.6209 11.2304,11.2304C11.5909,10.8699 12.1581,10.8422 12.5504,11.1472ZM20,11C24.9706,11 29,15.0294 29,20C29,21.7609 28.4943,23.4037 27.6202,24.791L26.1589,23.3297C26.6954,22.3395 27,21.2053 27,20C27,16.134 23.866,13 20,13C18.7947,13 17.6605,13.3046 16.6703,13.8411L15.208,12.3804C16.5955,11.506 18.2387,11 20,11Z" - android:strokeWidth="1" - android:strokeColor="#00000000" /> + <path + android:pathData="M7.9802,7.9781L9.3939,9.3929C6.6791,12.1074 5,15.8576 5,20C5,24.0341 6.5969,27.8099 9.3929,30.6061C9.3933,30.6065 9.3936,30.6068 9.3939,30.6071L7.979,32.0211C4.9958,29.0371 3.1164,24.9505 3.0052,20.4254L3,19.9999C3,15.305 4.9032,11.0546 7.9802,7.9781ZM32.0208,7.9791C35.0972,11.0555 37,15.3055 37,19.9999C37,24.6943 35.0972,28.9443 32.0208,32.0207L30.6066,30.6066C33.3211,27.8921 35,24.1421 35,20C35,15.8581 33.3213,12.1083 30.6071,9.3939Z" + android:strokeAlpha="0.12" + android:strokeWidth="1" + android:fillColor="#C00F2D" + android:fillType="evenOdd" + android:strokeColor="#00000000" + android:fillAlpha="0.12"/> + <path + android:pathData="M9.0937,12.9225L10.5452,14.3747C9.5638,16.0206 9,17.9445 9,20C9,22.84 10.0793,25.5054 11.9797,27.5284L12.2215,27.7778C12.2218,27.7782 12.2221,27.7785 12.2225,27.7788L10.808,29.1926C8.5389,26.9235 7.1051,23.8206 7.0055,20.3833L7,20C7,17.3897 7.7694,14.959 9.0937,12.9225ZM29.1924,10.8076C31.5449,13.1601 33,16.4101 33,20C33,22.6103 32.2306,25.041 30.9063,27.0775L29.4545,25.6257C30.4361,23.9797 31,22.0557 31,20C31,16.9629 29.7692,14.2134 27.7792,12.2228Z" + android:strokeAlpha="0.28" + android:strokeWidth="1" + android:fillColor="#C00F2D" + android:fillType="evenOdd" + android:strokeColor="#00000000" + android:fillAlpha="0.28"/> + <path + android:pathData="M12.5504,11.1472L12.6446,11.2304L28.6446,27.2304C29.0351,27.6209 29.0351,28.2541 28.6446,28.6446C28.2841,29.0051 27.7169,29.0328 27.3246,28.7278L27.2304,28.6446L25.6172,27.0323C24.0776,28.2637 22.1248,29 20,29C17.5813,29 15.3121,28.0401 13.6358,26.3637C11.9596,24.6874 11,22.4184 11,20C11,17.8752 11.7363,15.9224 12.9677,14.3828L11.2304,12.6446C10.8399,12.2541 10.8399,11.6209 11.2304,11.2304C11.5909,10.8699 12.1581,10.8422 12.5504,11.1472ZM14.3933,15.8083C13.5183,16.9768 13,18.4279 13,20C13,21.8826 13.7452,23.6446 15.05,24.9495C16.355,26.2546 18.1172,27 20,27C21.5721,27 23.0232,26.4817 24.1917,25.6067ZM20,11C24.9706,11 29,15.0294 29,20C29,21.4993 28.6334,22.913 27.9849,24.1563L26.4806,22.6511C26.8154,21.8334 27,20.9383 27,20C27,16.134 23.866,13 20,13C19.0617,13 18.1666,13.1846 17.3489,13.5194L15.8437,12.0151C17.087,11.3666 18.5007,11 20,11Z" + android:strokeWidth="1" + android:fillColor="#C00F2D" + android:fillType="nonZero" + android:strokeColor="#00000000"/> </vector> diff --git a/Corona-Warn-App/src/main/res/layout/fragment_information.xml b/Corona-Warn-App/src/main/res/layout/fragment_information.xml index 5c8d871ef..da08ae6e6 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_information.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_information.xml @@ -111,7 +111,7 @@ <TextView android:id="@+id/information_version" - style="@style/textMultiline" + style="@style/body2Medium" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" diff --git a/Corona-Warn-App/src/main/res/layout/fragment_information_about.xml b/Corona-Warn-App/src/main/res/layout/fragment_information_about.xml index 707b00daa..61e087242 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_information_about.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_information_about.xml @@ -46,7 +46,7 @@ <TextView android:id="@+id/information_about_body_emphasized" - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" @@ -57,7 +57,7 @@ <TextView android:id="@+id/information_about_body" - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" diff --git a/Corona-Warn-App/src/main/res/layout/fragment_information_contact.xml b/Corona-Warn-App/src/main/res/layout/fragment_information_contact.xml index 8e84d3bad..c11640c3c 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_information_contact.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_information_contact.xml @@ -57,7 +57,7 @@ <TextView android:id="@+id/information_contact_subtitle_phone" - style="@style/textLargeEmphasized" + style="@style/headline6" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" @@ -78,6 +78,7 @@ <TextView android:id="@+id/information_contact_body_phone" + style="@style/body2" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@string/information_contact_body_phone" @@ -87,6 +88,7 @@ <TextView android:id="@+id/information_contact_body_open" + style="@style/body2" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal" @@ -97,6 +99,7 @@ <TextView android:id="@+id/information_contact_body_other" + style="@style/body2" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal" diff --git a/Corona-Warn-App/src/main/res/layout/fragment_main.xml b/Corona-Warn-App/src/main/res/layout/fragment_main.xml index c1c6d292a..22d3ea2f8 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_main.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_main.xml @@ -92,7 +92,7 @@ <TextView android:id="@+id/main_tracing_headline" - style="@style/textLargeEmphasized" + style="@style/bodyButton" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@{FormatterSettingsHelper.formatTracingDescription(tracingViewModel.isTracingEnabled(), settingsViewModel.isBluetoothEnabled(), settingsViewModel.isConnectionEnabled())}" diff --git a/Corona-Warn-App/src/main/res/layout/fragment_main_overview.xml b/Corona-Warn-App/src/main/res/layout/fragment_main_overview.xml index 4bc3d8aef..de2d830e4 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_main_overview.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_main_overview.xml @@ -23,7 +23,7 @@ android:layout_width="0dp" android:layout_height="0dp" android:fillViewport="true" - app:layout_constraintBottom_toBottomOf="@+id/guideline_bottom" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/main_overview_header"> @@ -80,7 +80,7 @@ app:layout_constraintTop_toBottomOf="@+id/main_overview_risk"> <TextView - style="@style/textLargeEmphasized" + style="@style/headline6" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/guideline_body_title" @@ -96,7 +96,7 @@ layout="@layout/include_row" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/spacing_normal" + android:layout_marginTop="@dimen/spacing_small" app:iconStart="@{@drawable/ic_main_overview_circle}" app:iconTint="@{@color/colorRiskCardIncreasedRisk}" app:layout_constraintEnd_toEndOf="parent" @@ -152,93 +152,101 @@ app:layout_constraintTop_toBottomOf="@id/main_overview_test" /> <androidx.constraintlayout.widget.ConstraintLayout - android:id="@+id/main_overview_glossary_headline" - style="@style/row" - android:layout_width="0dp" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/spacing_small" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" + android:background="@color/colorSurface2" app:layout_constraintTop_toBottomOf="@+id/main_overview_divider"> - <TextView - style="@style/textLargeEmphasized" + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@+id/main_overview_glossary_headline" + style="@style/row" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/guideline_body_title" - android:text="@string/main_overview_headline_glossary" + android:paddingTop="@dimen/spacing_small" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> - - </androidx.constraintlayout.widget.ConstraintLayout> + app:layout_constraintTop_toTopOf="parent"> + + <TextView + style="@style/headline5" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/guideline_body_title" + android:text="@string/main_overview_headline_glossary" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + </androidx.constraintlayout.widget.ConstraintLayout> + + <include + android:id="@+id/main_overview_glossary_tracing" + layout="@layout/include_main_overview_glossary" + android:layout_width="0dp" + android:layout_height="wrap_content" + app:body="@{@string/main_overview_body_glossary_tracing}" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_headline" + app:subtitle="@{@string/main_overview_subtitle_glossary_tracing}" /> - <include - android:id="@+id/main_overview_glossary_tracing" - layout="@layout/include_main_overview_glossary" - android:layout_width="0dp" - android:layout_height="wrap_content" - app:body="@{@string/main_overview_body_glossary_tracing}" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_headline" - app:subtitle="@{@string/main_overview_subtitle_glossary_tracing}" /> + <include + android:id="@+id/main_overview_glossary_calculation" + layout="@layout/include_main_overview_glossary" + android:layout_width="0dp" + android:layout_height="wrap_content" + app:body="@{@string/main_overview_body_glossary_calculation}" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_tracing" + app:subtitle="@{@string/main_overview_subtitle_glossary_calculation}" /> - <include - android:id="@+id/main_overview_glossary_calculation" - layout="@layout/include_main_overview_glossary" - android:layout_width="0dp" - android:layout_height="wrap_content" - app:body="@{@string/main_overview_body_glossary_calculation}" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_tracing" - app:subtitle="@{@string/main_overview_subtitle_glossary_calculation}" /> + <include + android:id="@+id/main_overview_glossary_contact" + layout="@layout/include_main_overview_glossary" + android:layout_width="0dp" + android:layout_height="wrap_content" + app:body="@{@string/main_overview_body_glossary_contact}" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_calculation" + app:subtitle="@{@string/main_overview_subtitle_glossary_contact}" /> - <include - android:id="@+id/main_overview_glossary_contact" - layout="@layout/include_main_overview_glossary" - android:layout_width="0dp" - android:layout_height="wrap_content" - app:body="@{@string/main_overview_body_glossary_contact}" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_calculation" - app:subtitle="@{@string/main_overview_subtitle_glossary_contact}" /> + <include + android:id="@+id/main_overview_glossary_notification" + layout="@layout/include_main_overview_glossary" + android:layout_width="0dp" + android:layout_height="wrap_content" + app:body="@{@string/main_overview_body_glossary_notification}" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_contact" + app:subtitle="@{@string/main_overview_subtitle_glossary_notification}" /> - <include - android:id="@+id/main_overview_glossary_notification" - layout="@layout/include_main_overview_glossary" - android:layout_width="0dp" - android:layout_height="wrap_content" - app:body="@{@string/main_overview_body_glossary_notification}" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_contact" - app:subtitle="@{@string/main_overview_subtitle_glossary_notification}" /> + <include + android:id="@+id/main_overview_glossary_keys" + layout="@layout/include_main_overview_glossary" + android:layout_width="0dp" + android:layout_height="wrap_content" + app:body="@{@string/main_overview_body_glossary_keys}" + app:layout_constraintBottom_toBottomOf="@+id/guideline_bottom" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_notification" + app:subtitle="@{@string/main_overview_subtitle_glossary_keys}" /> - <include - android:id="@+id/main_overview_glossary_keys" - layout="@layout/include_main_overview_glossary" - android:layout_width="0dp" - android:layout_height="wrap_content" - app:body="@{@string/main_overview_body_glossary_keys}" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/main_overview_glossary_notification" - app:subtitle="@{@string/main_overview_subtitle_glossary_keys}" /> + <androidx.constraintlayout.widget.Guideline + android:id="@+id/guideline_bottom" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + app:layout_constraintGuide_end="@dimen/guideline_bottom" /> + </androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout> </ScrollView> - <androidx.constraintlayout.widget.Guideline - android:id="@+id/guideline_bottom" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:orientation="horizontal" - app:layout_constraintGuide_end="@dimen/guideline_bottom" /> - </androidx.constraintlayout.widget.ConstraintLayout> </layout> \ No newline at end of file diff --git a/Corona-Warn-App/src/main/res/layout/fragment_risk_details.xml b/Corona-Warn-App/src/main/res/layout/fragment_risk_details.xml index d639faf38..72b5d8ce5 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_risk_details.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_risk_details.xml @@ -53,7 +53,7 @@ <TextView android:id="@+id/risk_details_behavior_headline" - style="@style/textLargeEmphasized" + style="@style/headline5" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal" @@ -64,7 +64,7 @@ <TextView android:id="@+id/risk_details_behavior_subtitle" - style="@style/textMultiline" + style="@style/body2" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_tiny" @@ -118,7 +118,7 @@ <TextView android:id="@+id/risk_details_information_headline" - style="@style/textLargeEmphasized" + style="@style/headline5" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/risk_details_headline_infection_risk" @@ -128,18 +128,18 @@ <TextView android:id="@+id/risk_details_information_subtitle" - style="@style/textMultiline" + style="@style/body2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_tiny" - android:text="@{FormatterRiskHelper.formatRiskDetailsRiskLevelSubtitle(tracingViewModel.riskLevel)}" + android:text="@string/risk_details_subtitle_infection_risk" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/risk_details_information_headline" /> <TextView android:id="@+id/risk_details_information_body" - style="@style/textMultiline" + style="@style/body2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" @@ -151,7 +151,7 @@ <TextView android:id="@+id/risk_details_information_body_notice" - style="@style/textMultiline" + style="@style/body2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" diff --git a/Corona-Warn-App/src/main/res/layout/fragment_settings.xml b/Corona-Warn-App/src/main/res/layout/fragment_settings.xml index 677f97666..6810f17bb 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_settings.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_settings.xml @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools"> + xmlns:app="http://schemas.android.com/apk/res-auto"> <data> @@ -54,8 +53,8 @@ android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal" app:body="@{@string/settings_tracing_body_description}" - app:color="@{FormatterSettingsHelper.formatIconColor(tracingViewModel.isTracingEnabled())}" - app:icon="@{@drawable/ic_settings_tracing_active}" + app:color="@{FormatterSettingsHelper.formatSettingsTracingIconColor(tracingViewModel.isTracingEnabled(), settingsViewModel.isBluetoothEnabled(), settingsViewModel.isConnectionEnabled())}" + app:icon="@{FormatterSettingsHelper.formatSettingsTracingIcon(tracingViewModel.isTracingEnabled(), settingsViewModel.isBluetoothEnabled(), settingsViewModel.isConnectionEnabled())}" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" @@ -70,8 +69,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" app:body="@{@string/settings_notifications_body_description}" - app:color="@{FormatterSettingsHelper.formatIconColor(settingsViewModel.isNotificationsEnabled(), settingsViewModel.isNotificationsRiskEnabled(), settingsViewModel.isNotificationsTestEnabled())}" - app:icon="@{@drawable/ic_settings_notification}" + app:color="@{FormatterSettingsHelper.formatNotificationIconColor(settingsViewModel.isNotificationsEnabled(), settingsViewModel.isNotificationsRiskEnabled(), settingsViewModel.isNotificationsTestEnabled())}" + app:icon="@{FormatterSettingsHelper.formatNotificationIcon(settingsViewModel.isNotificationsEnabled(), settingsViewModel.isNotificationsRiskEnabled(), settingsViewModel.isNotificationsTestEnabled())}" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/settings_tracing" @@ -99,7 +98,7 @@ <TextView android:id="@+id/settings_reset_subtitle" - style="@style/textDanger" + style="@style/subtitleSemanticRed" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@string/settings_reset_button_positive" @@ -109,6 +108,7 @@ <TextView android:id="@+id/settings_reset_body" + style="@style/body2Medium" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@string/settings_reset_body_description" diff --git a/Corona-Warn-App/src/main/res/layout/fragment_settings_reset.xml b/Corona-Warn-App/src/main/res/layout/fragment_settings_reset.xml index 0c76491c6..b0ed452fa 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_settings_reset.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_settings_reset.xml @@ -22,6 +22,7 @@ style="@style/fadingScrollView" android:layout_width="0dp" android:layout_height="0dp" + android:layout_marginBottom="@dimen/spacing_normal" android:fillViewport="true" app:layout_constraintBottom_toTopOf="@+id/settings_reset_button_delete" app:layout_constraintEnd_toEndOf="parent" diff --git a/Corona-Warn-App/src/main/res/layout/fragment_settings_tracing.xml b/Corona-Warn-App/src/main/res/layout/fragment_settings_tracing.xml index 5859c7b3e..8512a25e6 100644 --- a/Corona-Warn-App/src/main/res/layout/fragment_settings_tracing.xml +++ b/Corona-Warn-App/src/main/res/layout/fragment_settings_tracing.xml @@ -124,7 +124,7 @@ <TextView android:id="@+id/settings_tracing_status_tracing_body" - style="@style/textMultiline" + style="@style/body2Medium" android:layout_width="@dimen/match_constraint" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/spacing_small" @@ -163,7 +163,7 @@ <TextView android:id="@+id/settings_tracing_body" - style="@style/textMultiline" + style="@style/body1" android:layout_width="@dimen/match_constraint" android:layout_height="wrap_content" android:text="@string/settings_tracing_body_text" diff --git a/Corona-Warn-App/src/main/res/layout/include_header.xml b/Corona-Warn-App/src/main/res/layout/include_header.xml index 9c5112d53..6e9a9fe87 100644 --- a/Corona-Warn-App/src/main/res/layout/include_header.xml +++ b/Corona-Warn-App/src/main/res/layout/include_header.xml @@ -30,7 +30,7 @@ <TextView android:id="@+id/header_title" - style="@style/textTitle" + style="@style/headline6" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/guideline_body_title" diff --git a/Corona-Warn-App/src/main/res/layout/include_information_details.xml b/Corona-Warn-App/src/main/res/layout/include_information_details.xml index 51369af74..83abb7ab3 100644 --- a/Corona-Warn-App/src/main/res/layout/include_information_details.xml +++ b/Corona-Warn-App/src/main/res/layout/include_information_details.xml @@ -41,7 +41,7 @@ <TextView android:id="@+id/information_details_header_headline" - style="@style/textTitle" + style="@style/headline6" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@{headline}" @@ -53,7 +53,7 @@ <TextView android:id="@+id/information_details_header_body" - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_tiny" diff --git a/Corona-Warn-App/src/main/res/layout/include_main_card.xml b/Corona-Warn-App/src/main/res/layout/include_main_card.xml index e91c38562..51c774e2b 100644 --- a/Corona-Warn-App/src/main/res/layout/include_main_card.xml +++ b/Corona-Warn-App/src/main/res/layout/include_main_card.xml @@ -68,7 +68,7 @@ <TextView android:id="@+id/main_card_header_headline" - style="@style/textLargeEmphasized" + style="@style/headline5" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/spacing_small" @@ -103,6 +103,7 @@ <TextView android:id="@+id/main_card_content_body" + style="@style/subtitleMedium" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_tiny" diff --git a/Corona-Warn-App/src/main/res/layout/include_main_overview_glossary.xml b/Corona-Warn-App/src/main/res/layout/include_main_overview_glossary.xml index 9f8203e2e..034ca8655 100644 --- a/Corona-Warn-App/src/main/res/layout/include_main_overview_glossary.xml +++ b/Corona-Warn-App/src/main/res/layout/include_main_overview_glossary.xml @@ -29,7 +29,7 @@ <TextView android:id="@+id/main_overview_glossary_subtitle" - style="@style/textLargeEmphasized" + style="@style/headline6" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@{subtitle}" @@ -39,7 +39,7 @@ <TextView android:id="@+id/main_overview_glossary_body" - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" diff --git a/Corona-Warn-App/src/main/res/layout/include_main_overview_segment.xml b/Corona-Warn-App/src/main/res/layout/include_main_overview_segment.xml index 58ad4f382..25644c52e 100644 --- a/Corona-Warn-App/src/main/res/layout/include_main_overview_segment.xml +++ b/Corona-Warn-App/src/main/res/layout/include_main_overview_segment.xml @@ -42,7 +42,7 @@ <TextView android:id="@+id/main_overview_segment_subtitle" - style="@style/textLargeEmphasized" + style="@style/headline5" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@{subtitle}" @@ -52,7 +52,7 @@ <TextView android:id="@+id/main_overview_segment_body" - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" diff --git a/Corona-Warn-App/src/main/res/layout/include_navigation_row.xml b/Corona-Warn-App/src/main/res/layout/include_navigation_row.xml index 798262222..0092de70b 100644 --- a/Corona-Warn-App/src/main/res/layout/include_navigation_row.xml +++ b/Corona-Warn-App/src/main/res/layout/include_navigation_row.xml @@ -51,7 +51,7 @@ <TextView android:id="@+id/navigation_row_subtitle" - style="@style/textLink" + style="@style/headline5Tint" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@{subtitle}" diff --git a/Corona-Warn-App/src/main/res/layout/include_onboarding.xml b/Corona-Warn-App/src/main/res/layout/include_onboarding.xml index aecd930e4..6ab7be454 100644 --- a/Corona-Warn-App/src/main/res/layout/include_onboarding.xml +++ b/Corona-Warn-App/src/main/res/layout/include_onboarding.xml @@ -54,7 +54,7 @@ <TextView android:id="@+id/onboarding_headline" - style="@style/textTitle" + style="@style/headline4" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal" @@ -66,7 +66,7 @@ <TextView android:id="@+id/onboarding_subtitle" - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" @@ -78,7 +78,7 @@ <TextView android:id="@+id/onboarding_body" - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal" @@ -90,7 +90,7 @@ <TextView android:id="@+id/onboarding_body_emphasized" - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal" diff --git a/Corona-Warn-App/src/main/res/layout/include_risk_card.xml b/Corona-Warn-App/src/main/res/layout/include_risk_card.xml index 6c7e4acf0..113793809 100644 --- a/Corona-Warn-App/src/main/res/layout/include_risk_card.xml +++ b/Corona-Warn-App/src/main/res/layout/include_risk_card.xml @@ -63,6 +63,7 @@ app:layout_constraintTop_toTopOf="parent" /> <TextView + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacing_small" @@ -85,6 +86,7 @@ <TextView android:id="@+id/risk_card_body" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal" @@ -102,8 +104,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_normal" - android:visibility="@{FormatterHelper.formatVisibilityText(FormatterRiskHelper.formatRiskSavedRisk(tracingViewModel.riskLevel, tracingViewModel.savedRiskLevel))}" - app:body="@{FormatterRiskHelper.formatRiskSavedRisk(tracingViewModel.riskLevel, tracingViewModel.savedRiskLevel)}" + android:visibility="@{FormatterHelper.formatVisibilityText(FormatterRiskHelper.formatRiskSavedRisk(tracingViewModel.riskLevel, tracingViewModel.riskLevelScoreLastSuccessfulCalculated))}" + app:body="@{FormatterRiskHelper.formatRiskSavedRisk(tracingViewModel.riskLevel, tracingViewModel.riskLevelScoreLastSuccessfulCalculated)}" app:icon="@{@drawable/ic_risk_card_saved_risk}" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -176,7 +178,7 @@ <TextView android:id="@+id/risk_card_row_saved_days_body" - style="@style/cardText" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacing_small" @@ -195,8 +197,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" - android:visibility="@{FormatterHelper.formatVisibilityText(FormatterRiskHelper.formatTimeFetched(tracingViewModel.riskLevel, tracingViewModel.savedRiskLevel, tracingViewModel.lastTimeDiagnosisKeysFetched))}" - app:body="@{FormatterRiskHelper.formatTimeFetched(tracingViewModel.riskLevel, tracingViewModel.savedRiskLevel, tracingViewModel.lastTimeDiagnosisKeysFetched)}" + android:visibility="@{FormatterHelper.formatVisibilityText(FormatterRiskHelper.formatTimeFetched(tracingViewModel.riskLevel, tracingViewModel.riskLevelScoreLastSuccessfulCalculated, tracingViewModel.lastTimeDiagnosisKeysFetched))}" + app:body="@{FormatterRiskHelper.formatTimeFetched(tracingViewModel.riskLevel, tracingViewModel.riskLevelScoreLastSuccessfulCalculated, tracingViewModel.lastTimeDiagnosisKeysFetched)}" app:icon="@{@drawable/ic_risk_card_time_fetched}" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -224,6 +226,7 @@ app:layout_constraintTop_toTopOf="parent" /> <TextView + style="@style/body2" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_small" diff --git a/Corona-Warn-App/src/main/res/layout/include_risk_card_header.xml b/Corona-Warn-App/src/main/res/layout/include_risk_card_header.xml index dbf30e558..ee0b7536a 100644 --- a/Corona-Warn-App/src/main/res/layout/include_risk_card_header.xml +++ b/Corona-Warn-App/src/main/res/layout/include_risk_card_header.xml @@ -50,7 +50,7 @@ <TextView android:id="@+id/risk_card_header_headline" - style="@style/cardHeadline" + style="@style/headline5" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/spacing_normal" diff --git a/Corona-Warn-App/src/main/res/layout/include_risk_card_row.xml b/Corona-Warn-App/src/main/res/layout/include_risk_card_row.xml index 86b08d0cf..5182c4d51 100644 --- a/Corona-Warn-App/src/main/res/layout/include_risk_card_row.xml +++ b/Corona-Warn-App/src/main/res/layout/include_risk_card_row.xml @@ -39,7 +39,7 @@ <TextView android:id="@+id/risk_card_row_body" - style="@style/cardText" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacing_small" diff --git a/Corona-Warn-App/src/main/res/layout/include_risk_details_behavior_row.xml b/Corona-Warn-App/src/main/res/layout/include_risk_details_behavior_row.xml index 3f25ee1b1..82bfcf512 100644 --- a/Corona-Warn-App/src/main/res/layout/include_risk_details_behavior_row.xml +++ b/Corona-Warn-App/src/main/res/layout/include_risk_details_behavior_row.xml @@ -49,7 +49,7 @@ </androidx.constraintlayout.widget.ConstraintLayout> <TextView - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/spacing_normal" diff --git a/Corona-Warn-App/src/main/res/layout/include_row.xml b/Corona-Warn-App/src/main/res/layout/include_row.xml index 2141885a8..8de928fde 100644 --- a/Corona-Warn-App/src/main/res/layout/include_row.xml +++ b/Corona-Warn-App/src/main/res/layout/include_row.xml @@ -64,7 +64,7 @@ <TextView android:id="@+id/main_row_item_headline" - style="@style/textMultiline" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@{title}" diff --git a/Corona-Warn-App/src/main/res/layout/include_setting_row.xml b/Corona-Warn-App/src/main/res/layout/include_setting_row.xml index 303bc36e8..42d3408f1 100644 --- a/Corona-Warn-App/src/main/res/layout/include_setting_row.xml +++ b/Corona-Warn-App/src/main/res/layout/include_setting_row.xml @@ -72,7 +72,7 @@ <TextView android:id="@+id/settings_row_header_subtitle" - style="@style/textLargeEmphasized" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@{subtitle}" @@ -81,6 +81,7 @@ app:layout_constraintTop_toTopOf="parent" /> <TextView + style="@style/body2Medium" android:layout_width="0dp" android:layout_height="wrap_content" android:paddingTop="@dimen/spacing_mega_tiny" @@ -93,6 +94,7 @@ <TextView android:id="@+id/settings_row_body" + style="@style/body2Medium" android:layout_width="0dp" android:layout_height="wrap_content" android:paddingTop="@dimen/spacing_tiny" diff --git a/Corona-Warn-App/src/main/res/layout/include_settings_switch_row.xml b/Corona-Warn-App/src/main/res/layout/include_settings_switch_row.xml index f332d875c..1b8527107 100644 --- a/Corona-Warn-App/src/main/res/layout/include_settings_switch_row.xml +++ b/Corona-Warn-App/src/main/res/layout/include_settings_switch_row.xml @@ -26,10 +26,6 @@ name="statusText" type="String" /> - <variable - name="body" - type="String" /> - <variable name="showDivider" type="Boolean" /> @@ -61,7 +57,7 @@ <TextView android:id="@+id/settings_switch_row_header_subtitle" - style="@style/textLargeEmphasized" + style="@style/subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@{subtitle}" @@ -71,6 +67,7 @@ <TextView android:id="@+id/settings_switch_row_header_body" + style="@style/body2Medium" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_mega_tiny" @@ -105,26 +102,6 @@ app:layout_constraintStart_toStartOf="@id/guideline_start" app:layout_constraintTop_toBottomOf="@+id/settings_switch_row" /> - <androidx.constraintlayout.widget.ConstraintLayout - style="@style/row" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:visibility="@{FormatterHelper.formatVisibilityText(body)}" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/divider"> - - <TextView - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/spacing_mega_tiny" - android:text="@{body}" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> - </androidx.constraintlayout.widget.ConstraintLayout> - <androidx.constraintlayout.widget.Guideline android:id="@+id/guideline_start" android:layout_width="wrap_content" diff --git a/Corona-Warn-App/src/main/res/layout/include_tracing_status_card.xml b/Corona-Warn-App/src/main/res/layout/include_tracing_status_card.xml index 13f9ddcf6..2523df6df 100644 --- a/Corona-Warn-App/src/main/res/layout/include_tracing_status_card.xml +++ b/Corona-Warn-App/src/main/res/layout/include_tracing_status_card.xml @@ -47,7 +47,7 @@ <TextView android:id="@+id/tracing_status_card_header_headline" - style="@style/textLargeEmphasized" + style="@style/headline6" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/spacing_small" @@ -59,7 +59,6 @@ <ImageView android:id="@+id/tracing_status_card_header_icon" - style="@style/iconTracingStatus" android:layout_width="@dimen/icon_size_main_card_end" android:layout_height="@dimen/icon_size_main_card_end" android:importantForAccessibility="no" @@ -73,6 +72,7 @@ <TextView android:id="@+id/tracing_status_card_body" + style="@style/subtitle" android:layout_width="@dimen/match_constraint" android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_tiny" diff --git a/Corona-Warn-App/src/main/res/layout/view_circle_progress.xml b/Corona-Warn-App/src/main/res/layout/view_circle_progress.xml index d530834bf..5fe8cdc29 100644 --- a/Corona-Warn-App/src/main/res/layout/view_circle_progress.xml +++ b/Corona-Warn-App/src/main/res/layout/view_circle_progress.xml @@ -7,6 +7,7 @@ <TextView android:id="@+id/circle_progress_body" + style="@style/body2Medium" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="parent" diff --git a/Corona-Warn-App/src/main/res/values-night/colors.xml b/Corona-Warn-App/src/main/res/values-night/colors.xml index 6a95e8dcc..1d4f67758 100644 --- a/Corona-Warn-App/src/main/res/values-night/colors.xml +++ b/Corona-Warn-App/src/main/res/values-night/colors.xml @@ -79,7 +79,6 @@ <color name="tracingIconInactive">#DE4355</color> <!-- Settings Icon --> - <color name="settingsIconActive">#2C79A9</color> <color name="settingsIconInactive">#C3C3C3</color> </resources> diff --git a/Corona-Warn-App/src/main/res/values/colors.xml b/Corona-Warn-App/src/main/res/values/colors.xml index 87d18f60c..020f7711a 100644 --- a/Corona-Warn-App/src/main/res/values/colors.xml +++ b/Corona-Warn-App/src/main/res/values/colors.xml @@ -81,9 +81,6 @@ <!-- Tracing Icon --> <color name="tracingIconActive">#007FAD</color> <color name="tracingIconInactive">#C00F2D</color> - - <!-- Settings Icon --> - <color name="settingsIconActive">#2C79A9</color> <color name="settingsIconInactive">#C3C3C3</color> <!-- Tan Input --> diff --git a/Corona-Warn-App/src/main/res/values/styles.xml b/Corona-Warn-App/src/main/res/values/styles.xml index bc5ac0396..cff746d8d 100644 --- a/Corona-Warn-App/src/main/res/values/styles.xml +++ b/Corona-Warn-App/src/main/res/values/styles.xml @@ -158,6 +158,10 @@ <item name="android:textColor">@color/colorTextPrimary1</item> </style> + <style name="headline5Tint" parent="@style/headline5"> + <item name="android:textColor">@color/colorTextTint</item> + </style> + <style name="headline6" parent="@style/TextAppearance.MaterialComponents.Headline6"> <item name="android:textColor">@color/colorTextPrimary1</item> <item name="android:textStyle">bold</item> @@ -167,6 +171,10 @@ <item name="android:textColor">@color/colorTextPrimary1</item> </style> + <style name="subtitleSemanticRed" parent="@style/subtitle"> + <item name="android:textColor">@color/colorTextSemanticRed</item> + </style> + <style name="subtitleMedium" parent="@style/TextAppearance.MaterialComponents.Subtitle1"> <item name="android:textColor">@color/colorTextPrimary2</item> </style> @@ -256,10 +264,6 @@ <item name="android:tint">@color/stableIconColor</item> </style> - <style name="iconTracingStatus"> - <item name="android:tint">@color/colorPrimary</item> - </style> - <!-- #################################### Progress Bar ###################################### --> @@ -278,7 +282,7 @@ <style name="fadingScrollView"> <item name="android:requiresFadingEdge">vertical</item> - <item name="android:fadingEdgeLength">150dp</item> + <item name="android:fadingEdgeLength">50dp</item> </style> diff --git a/Corona-Warn-App/src/test/java/de/rki/coronawarnapp/transaction/RiskLevelTransactionTest.kt b/Corona-Warn-App/src/test/java/de/rki/coronawarnapp/transaction/RiskLevelTransactionTest.kt index db67511c3..e38eecbc2 100644 --- a/Corona-Warn-App/src/test/java/de/rki/coronawarnapp/transaction/RiskLevelTransactionTest.kt +++ b/Corona-Warn-App/src/test/java/de/rki/coronawarnapp/transaction/RiskLevelTransactionTest.kt @@ -15,6 +15,7 @@ import de.rki.coronawarnapp.server.protocols.ApplicationConfigurationOuterClass. import de.rki.coronawarnapp.server.protocols.ApplicationConfigurationOuterClass.RiskScoreClassification import de.rki.coronawarnapp.service.applicationconfiguration.ApplicationConfigurationService import de.rki.coronawarnapp.storage.ExposureSummaryRepository +import de.rki.coronawarnapp.storage.LocalData import de.rki.coronawarnapp.storage.RiskLevelRepository import io.mockk.MockKAnnotations import io.mockk.Runs @@ -42,6 +43,8 @@ class RiskLevelTransactionTest { mockkObject(InternalExposureNotificationClient) mockkObject(ApplicationConfigurationService) + mockkObject(LocalData) + every { LocalData.lastSuccessfullyCalculatedRiskLevel() } returns UNDETERMINED mockkObject(RiskLevelRepository) mockkObject(RiskLevelTransaction) mockkObject(TimeVariables) -- GitLab