Tweaked colors

This commit is contained in:
JHubi1 2024-06-21 20:33:33 +02:00
parent 443acf8a81
commit 07afba3a29
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
2 changed files with 10 additions and 13 deletions

View File

@ -357,9 +357,7 @@ class _MainAppState extends State<MainApp> {
: const SizedBox.shrink(),
Divider(
color: desktopLayout(context)
? (Theme.of(context).brightness == Brightness.light)
? Colors.grey[400]
: Colors.grey[900]
? Theme.of(context).colorScheme.onSurface.withAlpha(20)
: null),
((prefs?.getStringList("chats") ?? []).isNotEmpty)
? const SizedBox.shrink()
@ -783,10 +781,10 @@ class _MainAppState extends State<MainApp> {
duration: const Duration(milliseconds: 300),
child: Divider(
height: 2,
color: (Theme.of(context).brightness ==
Brightness.light)
? Colors.grey[400]
: Colors.grey[900]))
color: Theme.of(context)
.colorScheme
.onSurface
.withAlpha(20)))
: const SizedBox.shrink()),
leading:
desktopLayoutRequired(context) ? const SizedBox() : null),
@ -817,10 +815,10 @@ class _MainAppState extends State<MainApp> {
duration: const Duration(milliseconds: 300),
child: VerticalDivider(
width: 2,
color:
(Theme.of(context).brightness == Brightness.light)
? Colors.grey[400]
: Colors.grey[900]))
color: Theme.of(context)
.colorScheme
.onSurface
.withAlpha(20)))
: const SizedBox.shrink(),
Expanded(
child: Center(
@ -862,8 +860,8 @@ class _MainAppState extends State<MainApp> {
ScaffoldMessenger.of(context)
.showSnackBar(SnackBar(
content: Text(
// ignore: use_build_context_synchronously
AppLocalizations.of(
// ignore: use_build_context_synchronously
context)!
.settingsHostInvalid(
"url")),

View File

@ -1,5 +1,4 @@
import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:ollama_app/worker/desktop.dart';