Skip to content

Commit

Permalink
Update text color for private notes to improve visibility and consist…
Browse files Browse the repository at this point in the history
…ency across components
  • Loading branch information
shukebeta committed Jan 18, 2025
1 parent 2ee13af commit e7abbeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/screens/components/markdown_body_here.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MarkdownBodyHereState extends State<MarkdownBodyHere> {
@override
Widget build(BuildContext context) {
// Define base color based on isPrivate flag
final textColor = widget.isPrivate ? Colors.grey : Colors.black87;
final textColor = widget.isPrivate ? Colors.black54 : Colors.black87;

return SelectionArea(
child: MarkdownBody(
Expand Down
6 changes: 3 additions & 3 deletions lib/screens/components/note_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class NoteListItem extends StatelessWidget {
),
...[
if (note.isPrivate)
const Icon(
Icon(
Icons.lock,
color: Colors.blueGrey,
color: Colors.grey.shade300,
size: 14,
),
const Text(
Expand Down Expand Up @@ -86,7 +86,7 @@ class NoteListItem extends StatelessWidget {
fontWeight: FontWeight.normal,
fontSize: 16,
height: 1.6,
color: note.isPrivate ? Colors.grey : Colors.black,
color: note.isPrivate ? Colors.black54 : Colors.black87,
),
),
),
Expand Down

0 comments on commit e7abbeb

Please sign in to comment.