refactor: Remove custom font and emoji font workaround
This commit is contained in:
parent
b0693d3ec8
commit
cd83c6e5ab
17 changed files with 47 additions and 217 deletions
|
|
@ -65,9 +65,6 @@ abstract class AppConfig {
|
|||
static const String pushNotificationsGatewayUrl =
|
||||
'https://push.fluffychat.im/_matrix/push/v1/notify';
|
||||
static const String pushNotificationsPusherFormat = 'event_id_only';
|
||||
static const String emojiFontName = 'Noto Emoji';
|
||||
static const String emojiFontUrl =
|
||||
'https://github.com/googlefonts/noto-emoji/';
|
||||
static const double borderRadius = 18.0;
|
||||
static const double columnWidth = 360.0;
|
||||
static final Uri homeserverList = Uri(
|
||||
|
|
|
|||
|
|
@ -17,27 +17,6 @@ abstract class FluffyThemes {
|
|||
static bool isThreeColumnMode(BuildContext context) =>
|
||||
MediaQuery.of(context).size.width > FluffyThemes.columnWidth * 3.5;
|
||||
|
||||
static const fallbackTextStyle = TextStyle(
|
||||
fontFamily: 'Ubuntu',
|
||||
fontFamilyFallback: ['NotoEmoji'],
|
||||
);
|
||||
|
||||
static var fallbackTextTheme = const TextTheme(
|
||||
bodyLarge: fallbackTextStyle,
|
||||
bodyMedium: fallbackTextStyle,
|
||||
labelLarge: fallbackTextStyle,
|
||||
bodySmall: fallbackTextStyle,
|
||||
labelSmall: fallbackTextStyle,
|
||||
displayLarge: fallbackTextStyle,
|
||||
displayMedium: fallbackTextStyle,
|
||||
displaySmall: fallbackTextStyle,
|
||||
headlineMedium: fallbackTextStyle,
|
||||
headlineSmall: fallbackTextStyle,
|
||||
titleLarge: fallbackTextStyle,
|
||||
titleMedium: fallbackTextStyle,
|
||||
titleSmall: fallbackTextStyle,
|
||||
);
|
||||
|
||||
static LinearGradient backgroundGradient(
|
||||
BuildContext context,
|
||||
int alpha,
|
||||
|
|
@ -72,7 +51,6 @@ abstract class FluffyThemes {
|
|||
useMaterial3: true,
|
||||
brightness: brightness,
|
||||
colorScheme: colorScheme,
|
||||
textTheme: fallbackTextTheme,
|
||||
dividerColor: brightness == Brightness.dark
|
||||
? colorScheme.surfaceContainerHighest
|
||||
: colorScheme.surfaceContainer,
|
||||
|
|
|
|||
|
|
@ -54,11 +54,6 @@ abstract class PlatformInfos {
|
|||
icon: const Icon(Icons.source_outlined),
|
||||
label: Text(L10n.of(context).sourceCode),
|
||||
),
|
||||
TextButton.icon(
|
||||
onPressed: () => launchUrlString(AppConfig.emojiFontUrl),
|
||||
icon: const Icon(Icons.emoji_emotions_outlined),
|
||||
label: const Text(AppConfig.emojiFontName),
|
||||
),
|
||||
Builder(
|
||||
builder: (innerContext) {
|
||||
return TextButton.icon(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue