mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
NoteMetadata Settings: Fix colors for dark mode
This commit is contained in:
@ -80,11 +80,12 @@ class NoteMetaDataExample extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
var style = Theme.of(context).textTheme.subhead;
|
var theme = Theme.of(context);
|
||||||
|
var style = theme.textTheme.subhead;
|
||||||
style = style.copyWith(fontFamily: "Roboto Mono");
|
style = style.copyWith(fontFamily: "Roboto Mono");
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
color: Colors.grey[200],
|
color: theme.highlightColor,
|
||||||
child: Text(yamlHeader, style: style),
|
child: Text(yamlHeader, style: style),
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user