Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit 3b0f18b

Browse files
committed
fix: colors on lightmode
1 parent c51fb4c commit 3b0f18b

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

lib/main.dart

+6-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ class TModInstallerApp extends StatelessWidget {
114114
child: child!,
115115
);
116116
},
117-
home: const TModInstallerPage(title: 'Tricked mod Installer'),
117+
initialRoute: '/',
118+
routes: {
119+
'/': (_) =>
120+
const TModInstallerPage(title: 'Tricked mod Installer')
121+
},
122+
// home: const TModInstallerPage(title: 'Tricked mod Installer'),
118123
);
119124
});
120125
}

lib/src/screens/mod.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ class _ModScreenState extends State<ModScreen> {
9898
child: SelectableText(
9999
widget.mod.display,
100100
),
101-
style: const TextStyle().copyWith(
102-
fontSize: 16,
103-
),
101+
style: FluentTheme.of(context)
102+
.typography
103+
.subtitle!,
104104
),
105105
SizedBox(
106106
width: 500,

lib/src/screens/modlist.dart

+3-4
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,12 @@ class _ModLists extends State<ModListsPage> {
7373
children: [
7474
DefaultTextStyle(
7575
child: Text(mod.display),
76-
style: const TextStyle().copyWith(
77-
fontSize: 16,
78-
),
76+
style:
77+
FluentTheme.of(context).typography.bodyLarge!,
7978
overflow: TextOverflow.fade),
8079
DefaultTextStyle(
8180
child: flutter.SelectableText(mod.description),
82-
style: const TextStyle(),
81+
style: FluentTheme.of(context).typography.body!,
8382
overflow: TextOverflow.fade,
8483
),
8584
],

lib/src/screens/updater.dart

+7-8
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class _UpdaterState extends State<Updater> {
5555
// child: OutlinedButton(onPressed: () {}, child: Text("Update all")),
5656
// ),
5757
Column(children: [
58-
if (files.length == 0)
58+
if (files.isEmpty)
5959
const Text("No mods found get back later when you installed some"),
6060
...files.map((mod) {
6161
final style = FluentTheme.of(context);
@@ -115,22 +115,21 @@ class _UpdaterState extends State<Updater> {
115115
child: Text(foundMod == null
116116
? basename(mod.path)
117117
: "${foundMod.display} ${current?.version} - ${current?.mcversions[0]}"),
118-
style: const TextStyle().copyWith(
119-
fontSize: 16,
120-
),
118+
style:
119+
FluentTheme.of(context).typography.bodyLarge!,
121120
overflow: TextOverflow.fade),
122121
if (foundMod != null)
123122
DefaultTextStyle(
124123
child:
125124
flutter.SelectableText(foundMod.description),
126-
style: const TextStyle(),
125+
style: FluentTheme.of(context).typography.body!,
127126
overflow: TextOverflow.fade,
128127
),
129128
if (foundMod == null)
130-
const DefaultTextStyle(
131-
child: Text(
129+
DefaultTextStyle(
130+
child: const Text(
132131
"Could not find the origin of this mod, Maybe the repo of this mod is not enabled?"),
133-
style: const TextStyle(),
132+
style: FluentTheme.of(context).typography.body!,
134133
overflow: TextOverflow.fade,
135134
),
136135
],

scripts/windows-setup-creator.iss

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{
4242
Source: "..\build\windows\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
4343
Source: "..\build\windows\runner\Release\flutter_acrylic_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
4444
Source: "..\build\windows\runner\Release\flutter_windows.dll"; DestDir: "{app}"; Flags: ignoreversion
45+
Source: "..\build\windows\runner\Release\isar.dll"; DestDir: "{app}"; Flags: ignoreversion
46+
Source: "..\build\windows\runner\Release\isar_flutter_libs_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
4547
Source: "..\build\windows\runner\Release\system_theme_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
4648
Source: "..\build\windows\runner\Release\url_launcher_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
4749
Source: "..\build\windows\runner\Release\window_manager_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
48-
Source: "..\build\windows\runner\Release\isar.dll"; DestDir: "{app}"; Flags: ignoreversion
49-
Source: "..\build\windows\runner\Release\isar_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
5050
Source: "..\build\windows\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs
5151
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
5252

0 commit comments

Comments
 (0)