Skip to content

Commit 64c1a16

Browse files
committed
fix: note readablity issue in dark mode
1 parent 9074ba1 commit 64c1a16

File tree

5 files changed

+67
-10
lines changed

5 files changed

+67
-10
lines changed

.idea/caches/deviceStreaming.xml

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/opennotes/feature_node/presentation/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class MainActivity : ComponentActivity() {
4141
setContent {
4242
val currentSettings by settingsViewModel.settings.collectAsState()
4343

44-
// Debug: Track settings changes
44+
4545
LaunchedEffect(currentSettings) {
4646
android.util.Log.d("MainActivity",
4747
"Settings: systemTheme=${currentSettings.systemTheme}, " +

app/src/main/java/com/opennotes/feature_node/presentation/add_edit_note/AddEditNoteScreen.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import androidx.hilt.navigation.compose.hiltViewModel
2323
import androidx.navigation.NavController
2424
import com.opennotes.feature_node.domain.model.Note
2525
import com.opennotes.feature_node.presentation.add_edit_note.components.TransParentHintTextField
26+
import com.opennotes.ui.theme.PureBlack
2627
import kotlinx.coroutines.flow.collectLatest
2728
import kotlinx.coroutines.launch
2829

@@ -70,7 +71,8 @@ fun AddEditNoteScreen(
7071
IconButton(onClick = { navController.navigateUp() }) {
7172
Icon(
7273
imageVector = Icons.AutoMirrored.Filled.ArrowBack,
73-
contentDescription = "Go back"
74+
contentDescription = "Go back",
75+
tint=PureBlack
7476
)
7577
}
7678
},
@@ -82,7 +84,9 @@ fun AddEditNoteScreen(
8284
) {
8385
Icon(
8486
imageVector = Icons.Default.Done,
85-
contentDescription = "Save Note"
87+
contentDescription = "Save Note",
88+
tint=PureBlack
89+
8690
)
8791
}
8892
},
@@ -100,7 +104,7 @@ fun AddEditNoteScreen(
100104
.padding(paddingValues)
101105
.padding(16.dp)
102106
) {
103-
// Color selection row
107+
104108
Row(
105109
modifier = Modifier
106110
.fillMaxWidth()

app/src/main/java/com/opennotes/feature_node/presentation/notes/components /NoteItem.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import androidx.compose.ui.unit.Dp
1919
import androidx.compose.ui.unit.dp
2020
import androidx.core.graphics.ColorUtils
2121
import com.opennotes.feature_node.domain.model.Note
22+
import com.opennotes.ui.theme.PureBlack
2223

2324
@Composable
2425
fun NoteItem(
@@ -67,7 +68,7 @@ fun NoteItem(
6768
Text(
6869
text = note.title,
6970
style = MaterialTheme.typography.titleLarge,
70-
color = MaterialTheme.colorScheme.onSurface,
71+
color = PureBlack,
7172
maxLines = 1,
7273
overflow = TextOverflow.Ellipsis
7374
)
@@ -76,7 +77,7 @@ fun NoteItem(
7677
Text(
7778
text = note.content,
7879
style = MaterialTheme.typography.bodyMedium,
79-
color = MaterialTheme.colorScheme.onSurface,
80+
color = PureBlack,
8081
maxLines = 10,
8182
overflow = TextOverflow.Ellipsis
8283
)
@@ -89,7 +90,7 @@ fun NoteItem(
8990
Icon(
9091
imageVector = Icons.Default.Delete,
9192
contentDescription = "Delete note",
92-
tint = MaterialTheme.colorScheme.onSurface
93+
tint = PureBlack
9394
)
9495
}
9596
}

0 commit comments

Comments
 (0)