From cbd5a8a7ee19b4dacd037d07c713bee184f4566a Mon Sep 17 00:00:00 2001 From: David Kaspar Date: Sun, 13 Apr 2025 09:59:43 +0200 Subject: [PATCH] contrasting circle around profile picture remove unused import --- .../vitorpamplona/amethyst/ui/navigation/DrawerContent.kt | 6 ++---- .../main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/DrawerContent.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/DrawerContent.kt index e28ff8840..ebed1fb85 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/DrawerContent.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/DrawerContent.kt @@ -20,8 +20,6 @@ */ package com.vitorpamplona.amethyst.ui.navigation -import android.R.attr.maxLines -import android.R.attr.onClick import androidx.compose.foundation.Image import androidx.compose.foundation.border import androidx.compose.foundation.clickable @@ -235,7 +233,7 @@ fun ProfileContentTemplate( .width(100.dp) .height(100.dp) .clip(shape = CircleShape) - .border(3.dp, MaterialTheme.colorScheme.background, CircleShape) + .border(3.dp, MaterialTheme.colorScheme.onBackground, CircleShape) .clickable(onClick = onClick), loadProfilePicture = accountViewModel.settings.showProfilePictures.value, loadRobohash = accountViewModel.settings.featureSet != FeatureSetType.PERFORMANCE, @@ -425,7 +423,7 @@ fun WatchFollower( .observeAsState() LaunchedEffect(key1 = accountUserFollowersState) { - onReady(baseAccountUser.followerCount().toString() ?: "--") + onReady(baseAccountUser.followerCount().toString()) } } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt index 294f42b4b..70edb0362 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt @@ -23,7 +23,6 @@ package com.vitorpamplona.amethyst.ui.theme import android.app.Activity import android.app.UiModeManager import android.content.Context -import android.graphics.Color.red import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.isSystemInDarkTheme