manager: Restore the colour scheme on the sulog page
This commit is contained in:
@@ -513,7 +513,7 @@ private fun LogEntryCard(entry: LogEntry) {
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.clickable { expanded = !expanded },
|
.clickable { expanded = !expanded },
|
||||||
colors = getCardColors(MaterialTheme.colorScheme.surface),
|
colors = getCardColors(MaterialTheme.colorScheme.surfaceContainerLow),
|
||||||
elevation = CardDefaults.cardElevation(defaultElevation = 0.dp)
|
elevation = CardDefaults.cardElevation(defaultElevation = 0.dp)
|
||||||
) {
|
) {
|
||||||
Column(
|
Column(
|
||||||
@@ -779,7 +779,6 @@ private suspend fun loadLogsWithPagination(
|
|||||||
val statResult = runCmd(shell, "stat -c '%Y %s' $LOGS_PATCH 2>/dev/null || echo '0 0'")
|
val statResult = runCmd(shell, "stat -c '%Y %s' $LOGS_PATCH 2>/dev/null || echo '0 0'")
|
||||||
val currentHash = statResult.trim()
|
val currentHash = statResult.trim()
|
||||||
|
|
||||||
// 如果不是强制刷新且文件没有变化,则不加载
|
|
||||||
if (!forceRefresh && currentHash == lastHash && currentHash != "0 0") {
|
if (!forceRefresh && currentHash == lastHash && currentHash != "0 0") {
|
||||||
withContext(Dispatchers.Main) {
|
withContext(Dispatchers.Main) {
|
||||||
onLoaded(emptyList(), LogPageInfo(), currentHash)
|
onLoaded(emptyList(), LogPageInfo(), currentHash)
|
||||||
|
|||||||
Reference in New Issue
Block a user