Skip to content

Commit

Permalink
minor ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Mar 16, 2024
1 parent 86c15b3 commit a4e6680
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Card
import androidx.compose.material3.ElevatedCard
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand All @@ -24,7 +25,7 @@ actual fun ProjectCard(project: Project, modifier: Modifier) {
val context = LocalContext.current

if (context.isPackageInstalled(project.`package`)) {
Card(
ElevatedCard(
modifier = modifier,
onClick = {
(project.googlePlay ?: project.github)?.openInBrowser(context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.min
Expand Down Expand Up @@ -115,6 +116,14 @@ private fun MainView(component: FavoriteComponent, modifier: Modifier = Modifier
horizontalArrangement = Arrangement.spacedBy(8.dp),
contentPadding = LocalPadding()
) {
header {
Text(
modifier = Modifier.padding(top = 16.dp),
text = stringResource(SharedRes.strings.favorites),
style = MaterialTheme.typography.headlineLarge,
fontWeight = FontWeight.Bold
)
}
items(favorites, key = { it.hrefPrimary }) { fav ->
SeriesCard(
series = fav,
Expand Down
11 changes: 10 additions & 1 deletion app/shared/src/commonMain/resources/MR/de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
<string name="unmuted">Nicht stumm</string>
<string name="loading_intent_series">Lade Serie</string>
<string name="enable_custom_dns">Du solltest einen DNS-Server einrichten, um alle Funktionen zuverlässig nutzen zu können.</string>
<string name="google_play_pulz">Bist du an Gaming oder E-Sport interessiert?</string>
<string name="yes">Ja</string>
<string name="sponsor">Sponsern</string>
<string name="sponsor_text">Das Projekt zu Warten ist zeit- und kostenintensiv. Bitte denk darüber nach, einen finanziellen Beitrag zu leisten, um das Projekt am Leben zu halten.</string>
<string name="polar">Polar</string>
<string name="patreon">Patreon</string>
<string name="paypal">PayPal</string>
<string name="amount_text">Der Betrag spielt keine Rolle, ob 1€ oder 10€, wähl einfach selbst wie viel du dir leisten kannst und womit du dich am wohlsten fühlst :)</string>
<string name="free_support">Kostenlose Unterstützung</string>
<string name="free_support_text">Du kannst dir eine finanzielle Unterstützung nicht leisten? Kein Problem, sieh dir stattdessen doch einfach diese Projekte an.</string>
<string name="pulz">PulZ</string>
<string name="pulz_subtitle">Gaming und E-Sport Infos</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package dev.datlag.burningseries.shared.ui.custom
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Card
import androidx.compose.material3.ElevatedCard
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand All @@ -17,7 +18,7 @@ import dev.icerock.moko.resources.compose.stringResource

@Composable
actual fun ProjectCard(project: Project, modifier: Modifier) {
Card(
ElevatedCard(
modifier = modifier,
onClick = {
(project.github ?: project.googlePlay)?.openInBrowser()
Expand Down

0 comments on commit a4e6680

Please sign in to comment.