fix/#81
This commit is contained in:
1 parent
6222727eb7
commit
40dfec2a59
5 files changed
+16
-3
No files matched your search
Executable
BIN
Binary file not shown.
@@ -541,9 +541,10 @@ class _VideoInfo extends StatelessWidget {
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: isHorizontal
|
||||
? Theme.of(context).textTheme.headlineMedium
|
||||
: Theme.of(
|
||||
context,
|
||||
).textTheme.displayLarge!.copyWith(fontFamily: 'Proza Libre'),
|
||||
: Theme.of(context).textTheme.displayLarge!.copyWith(
|
||||
fontFamily: 'Proza Libre',
|
||||
fontFamilyFallback: const ['Fira Sans'],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ import 'package:peertube/shared/themes/color_schemes.dart';
|
||||
import 'package:peertube/shared/utils/device.dart';
|
||||
|
||||
class PeerTubeTheme {
|
||||
static const _fontFamilyFallback = ['Fira Sans'];
|
||||
|
||||
static ThemeData getThemeData(
|
||||
final Brightness brightness, [
|
||||
DeviceType deviceType = DeviceType.phone,
|
||||
@@ -35,6 +37,7 @@ class PeerTubeTheme {
|
||||
titleTextStyle: textTheme.titleMedium!.copyWith(
|
||||
color: colorScheme.onPrimary,
|
||||
fontFamily: 'Proza Libre',
|
||||
fontFamilyFallback: PeerTubeTheme._fontFamilyFallback,
|
||||
),
|
||||
centerTitle: false,
|
||||
actionsIconTheme: IconThemeData(
|
||||
@@ -232,6 +235,7 @@ class PeerTubeTheme {
|
||||
titleLarge: TextStyle(
|
||||
fontSize: 28 * s,
|
||||
fontFamily: 'Proza Libre',
|
||||
fontFamilyFallback: _fontFamilyFallback,
|
||||
fontWeight: FontWeight.bold,
|
||||
height: 1.2,
|
||||
),
|
||||
@@ -244,16 +248,19 @@ class PeerTubeTheme {
|
||||
headlineLarge: TextStyle(
|
||||
fontSize: 18 * s,
|
||||
fontFamily: 'Proza Libre',
|
||||
fontFamilyFallback: _fontFamilyFallback,
|
||||
fontWeight: FontWeight.bold,
|
||||
height: 1.3,
|
||||
),
|
||||
headlineMedium: TextStyle(
|
||||
fontFamily: 'Proza Libre',
|
||||
fontFamilyFallback: _fontFamilyFallback,
|
||||
fontSize: 14 * s,
|
||||
height: 1.3,
|
||||
),
|
||||
headlineSmall: TextStyle(
|
||||
fontFamily: 'Proza Libre',
|
||||
fontFamilyFallback: _fontFamilyFallback,
|
||||
fontSize: 12 * s,
|
||||
height: 1.2,
|
||||
letterSpacing: 0.4,
|
||||
|
||||
@@ -899,6 +899,7 @@ class _AccountListItem extends ConsumerWidget {
|
||||
style: textTheme.displayLarge!.copyWith(
|
||||
fontFamily: 'Proza Libre',
|
||||
fontWeight: FontWeight.bold,
|
||||
fontFamilyFallback: const ['Fira Sans'],
|
||||
),
|
||||
),
|
||||
if (account.isLocal)
|
||||
|
||||
@@ -134,5 +134,9 @@ flutter:
|
||||
fonts:
|
||||
- asset: assets/fonts/ProzaLibre-SemiBold.ttf
|
||||
weight: 600
|
||||
- family: 'Fira Sans'
|
||||
fonts:
|
||||
- asset: assets/fonts/FiraSans-SemiBold.ttf
|
||||
weight: 600
|
||||
generate: true
|
||||
uses-material-design: true
|
||||
Reference in new issue
Block a user