mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix: small minwidth of window in desktop, linux wrong light theme accent color, search field transparent background
This commit is contained in:
parent
261aaf191c
commit
5b0e22c1b6
@ -40,7 +40,7 @@ void main() async {
|
|||||||
final savedSize = rawSize != null ? json.decode(rawSize) : null;
|
final savedSize = rawSize != null ? json.decode(rawSize) : null;
|
||||||
final double? height = savedSize?["height"];
|
final double? height = savedSize?["height"];
|
||||||
final double? width = savedSize?["width"];
|
final double? width = savedSize?["width"];
|
||||||
appWindow.minSize = const Size(359, 700);
|
appWindow.minSize = const Size(900, 700);
|
||||||
appWindow.alignment = Alignment.center;
|
appWindow.alignment = Alignment.center;
|
||||||
appWindow.title = "Spotube";
|
appWindow.title = "Spotube";
|
||||||
if (height != null && width != null && height >= 700 && width >= 359) {
|
if (height != null && width != null && height >= 700 && width >= 359) {
|
||||||
|
@ -86,6 +86,7 @@ class SearchPage extends HookConsumerWidget {
|
|||||||
horizontal: 20,
|
horizontal: 20,
|
||||||
vertical: 10,
|
vertical: 10,
|
||||||
),
|
),
|
||||||
|
color: PlatformTheme.of(context).scaffoldBackgroundColor,
|
||||||
child: PlatformTextField(
|
child: PlatformTextField(
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
ref.read(searchTermStateProvider.notifier).state =
|
ref.read(searchTermStateProvider.notifier).state =
|
||||||
|
@ -3,7 +3,7 @@ import 'package:flutter/cupertino.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:macos_ui/macos_ui.dart';
|
import 'package:macos_ui/macos_ui.dart';
|
||||||
import 'package:spotube/extensions/theme.dart';
|
import 'package:spotube/extensions/theme.dart';
|
||||||
import 'package:fluent_ui/fluent_ui.dart' as FluentUI;
|
import 'package:fluent_ui/fluent_ui.dart' as fluent_ui;
|
||||||
|
|
||||||
final materialWhite = MaterialColor(Colors.white.value, {
|
final materialWhite = MaterialColor(Colors.white.value, {
|
||||||
50: Colors.white,
|
50: Colors.white,
|
||||||
@ -120,17 +120,17 @@ ThemeData lightTheme({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
final windowsTheme = FluentUI.ThemeData.light().copyWith(
|
final windowsTheme = fluent_ui.ThemeData.light().copyWith(
|
||||||
buttonTheme: FluentUI.ButtonThemeData(
|
buttonTheme: fluent_ui.ButtonThemeData(
|
||||||
iconButtonStyle: FluentUI.ButtonStyle(
|
iconButtonStyle: fluent_ui.ButtonStyle(
|
||||||
iconSize: FluentUI.ButtonState.all(20),
|
iconSize: fluent_ui.ButtonState.all(20),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
final windowsDarkTheme = FluentUI.ThemeData.dark().copyWith(
|
final windowsDarkTheme = fluent_ui.ThemeData.dark().copyWith(
|
||||||
buttonTheme: FluentUI.ButtonThemeData(
|
buttonTheme: fluent_ui.ButtonThemeData(
|
||||||
iconButtonStyle: FluentUI.ButtonStyle(
|
iconButtonStyle: fluent_ui.ButtonStyle(
|
||||||
iconSize: FluentUI.ButtonState.all(20),
|
iconSize: fluent_ui.ButtonState.all(20),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -154,12 +154,22 @@ const iosDarkTheme = CupertinoThemeData(
|
|||||||
);
|
);
|
||||||
|
|
||||||
final linuxTheme = AdwaitaThemeData.light().copyWith(
|
final linuxTheme = AdwaitaThemeData.light().copyWith(
|
||||||
|
primaryColor: const Color(0xFF3582e5),
|
||||||
extensions: [
|
extensions: [
|
||||||
ShimmerColorTheme(
|
ShimmerColorTheme(
|
||||||
shimmerBackgroundColor: Colors.grey[300],
|
shimmerBackgroundColor: Colors.grey[300],
|
||||||
shimmerColor: Colors.grey[400],
|
shimmerColor: Colors.grey[400],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
switchTheme: SwitchThemeData(
|
||||||
|
trackColor: MaterialStateProperty.all(const Color(0xFF3582e5)),
|
||||||
|
),
|
||||||
|
colorScheme: const ColorScheme.light(
|
||||||
|
primary: Color(0xFF3582e5),
|
||||||
|
),
|
||||||
|
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||||
|
color: Color(0xFF3582e5),
|
||||||
|
),
|
||||||
listTileTheme: ListTileThemeData(
|
listTileTheme: ListTileThemeData(
|
||||||
iconColor: Colors.grey[900],
|
iconColor: Colors.grey[900],
|
||||||
horizontalTitleGap: 0,
|
horizontalTitleGap: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user