mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-20 22:17:04 +00:00

* chore: Update the hover effect in FieldCellButton and CreateFieldButton * chore(grid): improve grid page UI 1. Update lightGreyHover in AFThemeExtension 2. Comment out dandelion and lavender temporary 3. Add text color in AFThemeExtension 4. Update NavigatorAlertDialog title color * chore: update the background color of auth page * chore: update UI in Select option cell * chore: update date cell UI * chore: update checklist UI * chore: comment out temporary * chore: update multi select and URL UI * chore: update scroll bar color * chore: update sort and filter UI * chore: rename default theme and put dandelion&lavender theme back * chore: update new app svg file
31 lines
831 B
Dart
31 lines
831 B
Dart
import 'package:flowy_infra/colorscheme/colorscheme.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class BuiltInTheme {
|
|
static const String defaultTheme = 'Default';
|
|
static const String dandelion = 'Dandelion';
|
|
static const String lavender = 'Lavender';
|
|
}
|
|
|
|
class AppTheme {
|
|
// metadata member
|
|
final String themeName;
|
|
final FlowyColorScheme lightTheme;
|
|
final FlowyColorScheme darkTheme;
|
|
// static final Map<String, dynamic> _cachedJsonData = {};
|
|
|
|
const AppTheme({
|
|
required this.themeName,
|
|
required this.lightTheme,
|
|
required this.darkTheme,
|
|
});
|
|
|
|
factory AppTheme.fromName(String themeName) {
|
|
return AppTheme(
|
|
themeName: themeName,
|
|
lightTheme: FlowyColorScheme.builtIn(themeName, Brightness.light),
|
|
darkTheme: FlowyColorScheme.builtIn(themeName, Brightness.dark),
|
|
);
|
|
}
|
|
}
|