fix(ui): 💄 assign correct colors to settings + appbar
This commit is contained in:
parent
d5e3d8b76c
commit
7795e4e3f8
1 changed files with 5 additions and 13 deletions
|
@ -13,7 +13,12 @@ class _SettingsViewState extends State<SettingsView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
appBar: AppBar(title: const Text("Settings")),
|
||||||
body: SettingsList(
|
body: SettingsList(
|
||||||
|
applicationType: ApplicationType.both,
|
||||||
|
darkTheme: SettingsThemeData(
|
||||||
|
settingsListBackground: Theme.of(context).colorScheme.background,
|
||||||
|
titleTextColor: Theme.of(context).colorScheme.primary),
|
||||||
sections: [
|
sections: [
|
||||||
SettingsSection(
|
SettingsSection(
|
||||||
tiles: [
|
tiles: [
|
||||||
|
@ -28,19 +33,6 @@ class _SettingsViewState extends State<SettingsView> {
|
||||||
],
|
],
|
||||||
title: const Text("OCR"),
|
title: const Text("OCR"),
|
||||||
),
|
),
|
||||||
SettingsSection(
|
|
||||||
tiles: [
|
|
||||||
SettingsTile.navigation(
|
|
||||||
title: const Text("View downloaded OCR data"),
|
|
||||||
description: const Text(
|
|
||||||
"This data is used by the OCR to recognise text from pictures"),
|
|
||||||
onPressed: (context) => Navigator.of(context).push(
|
|
||||||
MaterialPageRoute(
|
|
||||||
builder: (c) => const TessdataListView())),
|
|
||||||
)
|
|
||||||
],
|
|
||||||
title: const Text("OCR"),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue