Compare commits

..

3 Commits

Author SHA1 Message Date
Jobobby04 f8f645772d Crashfix
Co-authored-by: name <arkon@users.noreply.github.com>
2026-01-01 12:26:13 -05:00
Jobobby04 b1e6fa65d6 Or 2025-12-26 23:31:31 -05:00
Jobobby04 01e8c6cc12 Use ComposeStars from RatingBar library. 2025-12-26 14:56:38 -05:00
3 changed files with 15 additions and 14 deletions
@@ -30,8 +30,8 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp import androidx.compose.ui.unit.sp
import androidx.paging.LoadState import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems import androidx.paging.compose.LazyPagingItems
import com.gowtham.ratingbar.RatingBar import com.gowtham.ratingbar.ComposeStars
import com.gowtham.ratingbar.RatingBarConfig import com.gowtham.ratingbar.RatingBarStyle
import dev.icerock.moko.resources.StringResource import dev.icerock.moko.resources.StringResource
import eu.kanade.presentation.manga.components.MangaCover import eu.kanade.presentation.manga.components.MangaCover
import exh.metadata.MetadataUtil import exh.metadata.MetadataUtil
@@ -222,17 +222,18 @@ fun BrowseSourceEHentaiListItem(
verticalArrangement = Arrangement.spacedBy(MaterialTheme.padding.small), verticalArrangement = Arrangement.spacedBy(MaterialTheme.padding.small),
horizontalAlignment = Alignment.Start, horizontalAlignment = Alignment.Start,
) { ) {
RatingBar( ComposeStars(
value = rating, value = rating,
onValueChange = {}, numOfStars = 5,
onRatingChanged = {}, size = 18.dp,
config = RatingBarConfig().apply { spaceBetween = 2.dp,
isIndicator(true) hideInactiveStars = false,
numStars(5) style = RatingBarStyle.Fill(
size(18.dp) activeColor = Color(0xFF005ED7),
activeColor(Color(0xFF005ED7)) inActiveColor = Color(0xE1E2ECFF),
inactiveColor(Color(0xE1E2ECFF)) ),
}, painterEmpty = null,
painterFilled = null,
) )
val color = genre?.first?.color val color = genre?.first?.color
val res = genre?.second val res = genre?.second
+1 -1
View File
@@ -5,7 +5,7 @@ koin = "4.1.1"
xlog = "com.elvishew:xlog:1.11.1" xlog = "com.elvishew:xlog:1.11.1"
ratingbar = "me.zhanghai.android.materialratingbar:library:1.4.0" ratingbar = "me.zhanghai.android.materialratingbar:library:1.4.0"
composeRatingbar = "com.github.a914-gowtham:compose-ratingbar:1.2.3" composeRatingbar = "com.github.a914-gowtham:compose-ratingbar:1.3.12"
versionsx = "com.github.ben-manes:gradle-versions-plugin:0.51.0" versionsx = "com.github.ben-manes:gradle-versions-plugin:0.51.0"
@@ -154,7 +154,7 @@
<string name="data_saver_server_summary">Put Bandwidth Hero Proxy server url here</string> <string name="data_saver_server_summary">Put Bandwidth Hero Proxy server url here</string>
<string name="clear_db_exclude_read">Keep entries with read chapters</string> <string name="clear_db_exclude_read">Keep entries with read chapters</string>
<string name="pref_include_chapter_url_hash">Include chapter URL hash</string> <string name="pref_include_chapter_url_hash">Include chapter URL hash</string>
<string name="pref_include_chapter_url_hash_desc">Append the first six characters of the chapter URL's MD5 hash to the chapter file folder name.</string> <string name="pref_include_chapter_url_hash_desc">Append the first six characters of the chapter URL's MD5 hash to the chapter file or folder name.</string>
<!-- Log Level --> <!-- Log Level -->
<string name="log_minimal">Minimal</string> <string name="log_minimal">Minimal</string>