chans theme desktop selector fix and padding fixes

This commit is contained in:
julian 2023-03-17 13:12:09 -06:00
parent 968b93a41c
commit 3963f29318
2 changed files with 93 additions and 180 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 249 KiB

After

Width:  |  Height:  |  Size: 216 KiB

View file

@ -136,7 +136,7 @@ class _AppearanceOptionSettings
),
),
const Padding(
padding: EdgeInsets.all(10),
padding: EdgeInsets.all(2),
child: ThemeToggle(),
),
],
@ -186,14 +186,9 @@ class _ThemeToggle extends ConsumerState<ThemeToggle> {
runSpacing: 16,
children: [
for (int i = 0; i < ThemeType.values.length; i++)
Row(
mainAxisSize: MainAxisSize.min,
children: [
if (i > 0)
const SizedBox(
width: 10,
),
MouseRegion(
Padding(
padding: const EdgeInsets.all(8.0),
child: MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
onTap: () {
@ -237,6 +232,7 @@ class _ThemeToggle extends ConsumerState<ThemeToggle> {
),
child: SvgPicture.asset(
assetNameFor(ThemeType.values[i]),
height: 160,
),
),
const SizedBox(
@ -277,9 +273,8 @@ class _ThemeToggle extends ConsumerState<ThemeToggle> {
),
),
),
)
],
),
)
],
);
}