changed colors for dark theme

This commit is contained in:
Acid
2026-06-06 19:04:43 -04:00
parent 1b5c060fd0
commit e0e1a53128
2 changed files with 11 additions and 24 deletions
@@ -16,6 +16,7 @@ import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent import androidx.activity.compose.setContent
import androidx.compose.foundation.Image import androidx.compose.foundation.Image
import androidx.compose.foundation.border import androidx.compose.foundation.border
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.clickable import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.* import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyColumn
@@ -415,11 +416,16 @@ fun SectionHeader(title: String) {
@Composable @Composable
fun StimmedAppItem(app: AppInfo, onRemove: () -> Unit) { fun StimmedAppItem(app: AppInfo, onRemove: () -> Unit) {
val dark = isSystemInDarkTheme()
val cardColor = if (dark) Color(0xFF1B3A2B) else Color(0xFFE8F5E9)
val nameColor = if (dark) Color(0xFFE8F5E9) else Color(0xFF1B5E20)
val stimmedColor = if (dark) Color(0xFFFFB74D) else Color(0xFFEF6C00)
Card( Card(
modifier = Modifier modifier = Modifier
.fillMaxWidth() .fillMaxWidth()
.padding(horizontal = 12.dp, vertical = 6.dp), .padding(horizontal = 12.dp, vertical = 6.dp),
colors = CardDefaults.cardColors(containerColor = Color(0xFFE8F5E9)), colors = CardDefaults.cardColors(containerColor = cardColor),
elevation = CardDefaults.cardElevation(4.dp) elevation = CardDefaults.cardElevation(4.dp)
) { ) {
Row( Row(
@@ -429,11 +435,11 @@ fun StimmedAppItem(app: AppInfo, onRemove: () -> Unit) {
AppIcon(app.icon) AppIcon(app.icon)
Spacer(modifier = Modifier.width(16.dp)) Spacer(modifier = Modifier.width(16.dp))
Column(modifier = Modifier.weight(1f)) { Column(modifier = Modifier.weight(1f)) {
Text(text = app.name, style = MaterialTheme.typography.bodyLarge, fontWeight = FontWeight.Bold) Text(text = app.name, style = MaterialTheme.typography.bodyLarge, fontWeight = FontWeight.Bold, color = nameColor)
Text(text = "STIMMED", style = MaterialTheme.typography.labelSmall, color = Color(0xFF2E7D32)) Text(text = "STIMMED", style = MaterialTheme.typography.labelSmall, color = stimmedColor)
} }
IconButton(onClick = onRemove) { IconButton(onClick = onRemove) {
Icon(Icons.Default.Delete, contentDescription = "Remove", tint = Color.Gray) Icon(Icons.Default.Delete, contentDescription = "Remove", tint = if (dark) Color(0xFFB0BEC5) else Color.Gray)
} }
} }
} }
+1 -20
View File
@@ -3,7 +3,7 @@ Categories:
License: GPL-3.0-only License: GPL-3.0-only
AuthorName: acidburnmonkey AuthorName: acidburnmonkey
AuthorEmail: developercontact.gnarly348@slmail.me AuthorEmail: developercontact.gnarly348@slmail.me
WebSite: https://www.gitshop.cc/ WebSite: https://acidburnmonkey.github.io/stims/
SourceCode: https://github.com/acidburnmonkey/stims SourceCode: https://github.com/acidburnmonkey/stims
IssueTracker: https://github.com/acidburnmonkey/stims/issues IssueTracker: https://github.com/acidburnmonkey/stims/issues
@@ -13,25 +13,6 @@ RepoType: git
Repo: https://github.com/acidburnmonkey/stims Repo: https://github.com/acidburnmonkey/stims
Builds: Builds:
- versionName: '1.0'
versionCode: 1
commit: 1bb04b401623c2217eda0e8e2a1f8a251b607c72
gradle:
- yes
output: app/build/outputs/apk/release/app-release-unsigned.apk
- versionName: '1.1'
versionCode: 2
commit: 908fc99342ffaa46f84ce1a67868f453e8a61372
subdir: app
sudo:
- echo "deb https://deb.debian.org/debian trixie main" > /etc/apt/sources.list.d/trixie.list
- apt-get update
- apt-get install -y -t trixie openjdk-26-jdk-headless
- update-alternatives --auto java
gradle:
- yes
- versionName: '1.2' - versionName: '1.2'
versionCode: 4 versionCode: 4
commit: TO_BE_TAGGED commit: TO_BE_TAGGED