1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-18 11:19:28 +01:00

fix(gitlab): syntax highlight in dark mode

This commit is contained in:
Rongjian Zhang 2020-01-29 12:44:10 +08:00
parent 00d67784af
commit df09ee4c17

View File

@ -55,7 +55,9 @@ class BlobView extends StatelessWidget {
child: HighlightView(
payload,
language: _language,
theme: themeMap[codeProvider.theme],
theme: themeMap[theme.brightness == Brightness.dark
? codeProvider.themeDark
: codeProvider.theme],
padding: CommonStyle.padding,
textStyle: TextStyle(
fontSize: codeProvider.fontSize.toDouble(),