mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
cover art color scheme extraction (in background)
refactor text styles to use theme port over part of album screen
This commit is contained in:
28
lib/app/ui/theme.dart
Normal file
28
lib/app/ui/theme.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
ThemeData subtracksTheme([ColorScheme? colorScheme]) {
|
||||
final theme = ThemeData.from(
|
||||
colorScheme:
|
||||
colorScheme ??
|
||||
ColorScheme.fromSeed(
|
||||
seedColor: Colors.purple.shade800,
|
||||
brightness: Brightness.dark,
|
||||
),
|
||||
useMaterial3: true,
|
||||
);
|
||||
|
||||
final text = theme.textTheme;
|
||||
return theme.copyWith(
|
||||
textTheme: text.copyWith(
|
||||
headlineLarge: text.headlineLarge?.copyWith(
|
||||
fontWeight: FontWeight.w800,
|
||||
),
|
||||
headlineMedium: text.headlineMedium?.copyWith(
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
headlineSmall: text.headlineSmall?.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user