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

View File

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