new: setting of editor highlight

This commit is contained in:
lollipopkit
2023-10-12 13:28:01 +08:00
parent a43a000c68
commit 7388ad4524
13 changed files with 70 additions and 4 deletions

View File

@@ -245,6 +245,7 @@ class _SettingPageState extends State<SettingPage> {
_buildEditorFontSize(),
_buildEditorTheme(),
_buildEditorDarkTheme(),
_buildEditorHighlight(),
].map((e) => RoundRectCard(e)).toList(),
);
}
@@ -1072,4 +1073,12 @@ class _SettingPageState extends State<SettingPage> {
},
);
}
Widget _buildEditorHighlight() {
return ListTile(
title: Text(l10n.highlight),
subtitle: Text(l10n.editorHighlightTip, style: UIs.textGrey),
trailing: StoreSwitch(prop: _setting.editorHighlight),
);
}
}