mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +08:00
Markdown DarkTheme: Make the checkboxes lighter
This entire way of styling the markdown badly needs to be re-done from scratch.
This commit is contained in:
@ -1,6 +1,10 @@
|
|||||||
|
- version: "1.71"
|
||||||
|
draft: true
|
||||||
|
bugs:
|
||||||
|
- text: "Dark Theme: Render checkboxes in a lighter color"
|
||||||
|
|
||||||
- version: "1.70"
|
- version: "1.70"
|
||||||
date: 2020-09-16
|
date: 2020-09-16
|
||||||
draft: false
|
|
||||||
reddit: "https://www.reddit.com/r/GitJournal/comments/iu47ej/gitjournal_v170/"
|
reddit: "https://www.reddit.com/r/GitJournal/comments/iu47ej/gitjournal_v170/"
|
||||||
features:
|
features:
|
||||||
- text: "Implement Basic Search highlighting #14"
|
- text: "Implement Basic Search highlighting #14"
|
||||||
|
@ -42,6 +42,7 @@ class NoteViewer extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
var settings = Provider.of<Settings>(context);
|
var settings = Provider.of<Settings>(context);
|
||||||
|
var isDark = theme.brightness == Brightness.dark;
|
||||||
|
|
||||||
// Copied from MarkdownStyleSheet except Grey is replaced with Highlight color
|
// Copied from MarkdownStyleSheet except Grey is replaced with Highlight color
|
||||||
var markdownStyleSheet = MarkdownStyleSheet.fromTheme(theme).copyWith(
|
var markdownStyleSheet = MarkdownStyleSheet.fromTheme(theme).copyWith(
|
||||||
@ -65,6 +66,9 @@ class NoteViewer extends StatelessWidget {
|
|||||||
color: theme.primaryColorLight,
|
color: theme.primaryColorLight,
|
||||||
borderRadius: BorderRadius.circular(2.0),
|
borderRadius: BorderRadius.circular(2.0),
|
||||||
),
|
),
|
||||||
|
checkbox: theme.textTheme.bodyText2.copyWith(
|
||||||
|
color: isDark ? theme.primaryColorLight : theme.primaryColor,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
final rootFolder = Provider.of<NotesFolderFS>(context);
|
final rootFolder = Provider.of<NotesFolderFS>(context);
|
||||||
|
Reference in New Issue
Block a user