From b30e0b6f40ee7bcd3b3d209ffe0cd1025c3dbbc8 Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 18 Jan 2024 12:58:30 +0100 Subject: [PATCH] Use app icon for `MainTheme.images.logo` --- .../res/drawable/core_ui_theme_k9_logo.xml | 247 +++++++++++------- .../core_ui_theme_thunderbird_logo.xml | 246 ++++++++++------- .../account/common/ui/AppTitleTopHeader.kt | 8 + 3 files changed, 301 insertions(+), 200 deletions(-) diff --git a/core/ui/compose/theme/src/main/res/drawable/core_ui_theme_k9_logo.xml b/core/ui/compose/theme/src/main/res/drawable/core_ui_theme_k9_logo.xml index fb570ed1f..2637f9700 100644 --- a/core/ui/compose/theme/src/main/res/drawable/core_ui_theme_k9_logo.xml +++ b/core/ui/compose/theme/src/main/res/drawable/core_ui_theme_k9_logo.xml @@ -1,104 +1,151 @@ + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/core/ui/compose/theme/src/main/res/drawable/core_ui_theme_thunderbird_logo.xml b/core/ui/compose/theme/src/main/res/drawable/core_ui_theme_thunderbird_logo.xml index 71399c54d..24f06c976 100644 --- a/core/ui/compose/theme/src/main/res/drawable/core_ui_theme_thunderbird_logo.xml +++ b/core/ui/compose/theme/src/main/res/drawable/core_ui_theme_thunderbird_logo.xml @@ -1,104 +1,150 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/feature/account/common/src/main/kotlin/app/k9mail/feature/account/common/ui/AppTitleTopHeader.kt b/feature/account/common/src/main/kotlin/app/k9mail/feature/account/common/ui/AppTitleTopHeader.kt index ad0818602..bc78c4838 100644 --- a/feature/account/common/src/main/kotlin/app/k9mail/feature/account/common/ui/AppTitleTopHeader.kt +++ b/feature/account/common/src/main/kotlin/app/k9mail/feature/account/common/ui/AppTitleTopHeader.kt @@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier @@ -15,12 +16,15 @@ import androidx.compose.ui.text.buildAnnotatedString import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.withStyle import androidx.compose.ui.tooling.preview.Preview +import androidx.compose.ui.unit.dp import app.k9mail.core.ui.compose.designsystem.atom.text.TextHeadline2 import app.k9mail.core.ui.compose.designsystem.template.ResponsiveWidthContainer import app.k9mail.core.ui.compose.theme.MainTheme import app.k9mail.core.ui.compose.theme.PreviewWithThemes import app.k9mail.feature.account.common.R +private const val TITLE_ICON_SIZE_DP = 56 + @Composable fun AppTitleTopHeader( modifier: Modifier = Modifier, @@ -48,6 +52,10 @@ fun AppTitleTopHeader( ) { Image( painter = painterResource(id = MainTheme.images.logo), + modifier = Modifier + .padding(all = MainTheme.spacings.default) + .padding(end = MainTheme.spacings.default) + .size(TITLE_ICON_SIZE_DP.dp), contentDescription = null, )