mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-23 09:01:21 +00:00

* fix: add permission check before selecting image in image block * feat: use system default font on desktop * fix: set appbar icon size to 30 * feat: add default font family on desktop
20 lines
748 B
Dart
20 lines
748 B
Dart
import 'package:appflowy/workspace/application/settings/appearance/base_appearance.dart';
|
|
import 'package:flowy_infra/theme.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
/// A class for the default appearance settings for the app
|
|
class DefaultAppearanceSettings {
|
|
static const kDefaultFontFamily = defaultFontFamily;
|
|
static const kDefaultThemeMode = ThemeMode.system;
|
|
static const kDefaultThemeName = "Default";
|
|
static const kDefaultTheme = BuiltInTheme.defaultTheme;
|
|
|
|
static Color getDefaultDocumentCursorColor(BuildContext context) {
|
|
return Theme.of(context).colorScheme.primary;
|
|
}
|
|
|
|
static Color getDefaultDocumentSelectionColor(BuildContext context) {
|
|
return Theme.of(context).colorScheme.primary.withOpacity(0.2);
|
|
}
|
|
}
|