Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Solve issues #74

Merged
merged 3 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color.Companion.DarkGray
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import com.dluvian.nozzle.R
Expand Down Expand Up @@ -228,7 +227,6 @@ private fun RelayRow(relay: String, trailingContent: @Composable (() -> Unit)) {
spacing = MarqueeSpacing.fractionOfContainer(1f / 4f)
),
text = relay,
color = DarkGray,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ fun NamedCheckbox(
onCheckedChange = { onClick() },
)
},
name = name
name = name,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clipToBounds
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.semantics.invisibleToUser
import androidx.compose.ui.semantics.semantics
import com.dluvian.nozzle.model.PostWithMeta
import com.dluvian.nozzle.model.ThreadPosition
import com.dluvian.nozzle.model.TrustType
Expand All @@ -29,7 +32,7 @@ import com.dluvian.nozzle.ui.theme.sizing
import com.dluvian.nozzle.ui.theme.spacing


@OptIn(ExperimentalFoundationApi::class)
@OptIn(ExperimentalFoundationApi::class, ExperimentalComposeUiApi::class)
@Composable
fun PostCard(
post: PostWithMeta,
Expand Down Expand Up @@ -96,7 +99,9 @@ fun PostCard(
.clipToBounds()
) {
PostCardProfilePicture(
modifier = Modifier.size(sizing.profilePicture),
modifier = Modifier
.size(sizing.profilePicture)
.semantics { this.invisibleToUser() },
pubkey = post.pubkey,
picture = post.picture,
showProfilePicture = showProfilePicture,
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/com/dluvian/nozzle/ui/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ private val darkColorPalette = darkColorScheme(
onSecondary = Color(0xFF4a2800),
secondaryContainer = Color(0xFF693c00),
onSecondaryContainer = Color(0xFFffdcbe),
background = Color.Black,
surface = Color.Black,
surfaceVariant = Color.Black,
)

@Composable
Expand Down