update fonts

This commit is contained in:
shenlong-tanwen
2026-02-02 12:22:22 +05:30
parent 1623cf926d
commit b2cdd82bee
8 changed files with 39 additions and 13 deletions

View File

@@ -9,4 +9,7 @@ ios/
.dart_tool/
.packages
.flutter-plugins
.flutter-plugins-dependencies
.flutter-plugins-dependencies
# Fonts copied by build process
fonts/

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -36,6 +36,7 @@ class AppTheme {
outlineVariant: _light300,
),
useMaterial3: true,
fontFamily: 'GoogleSans',
scaffoldBackgroundColor: _light50,
cardTheme: const CardThemeData(
elevation: 0,
@@ -73,6 +74,7 @@ class AppTheme {
outlineVariant: Color(0xFF43464F),
),
useMaterial3: true,
fontFamily: 'GoogleSans',
scaffoldBackgroundColor: _darkLight50,
cardTheme: const CardThemeData(
elevation: 0,

View File

@@ -175,7 +175,7 @@ class _SpacingBox extends StatelessWidget {
children: [
SizedBox(
width: 60,
child: Text(label, style: const TextStyle(fontFamily: 'monospace')),
child: Text(label, style: const TextStyle(fontFamily: 'GoogleSansCode')),
),
Container(
width: size,
@@ -281,7 +281,7 @@ class _BorderBox extends StatelessWidget {
children: [
SizedBox(
width: 80,
child: Text(label, style: const TextStyle(fontFamily: 'monospace')),
child: Text(label, style: const TextStyle(fontFamily: 'GoogleSansCode')),
),
Expanded(
child: Container(
@@ -338,7 +338,7 @@ class _AnimatedDurationBoxState extends State<_AnimatedDurationBox> {
width: 90,
child: Text(
widget.label,
style: const TextStyle(fontFamily: 'monospace', fontSize: 12),
style: const TextStyle(fontFamily: 'GoogleSansCode', fontSize: 12),
),
),
Expanded(

View File

@@ -195,7 +195,7 @@ class _CodeCard extends StatelessWidget {
child: Text(
'${index + 1}',
style: TextStyle(
fontFamily: 'monospace',
fontFamily: 'GoogleSansCode',
fontSize: 13,
color: lineNumberColor,
height: 1.5,
@@ -208,7 +208,7 @@ class _CodeCard extends StatelessWidget {
SelectableText.rich(
_codeHighlighter.highlight(code),
style: const TextStyle(
fontFamily: 'monospace',
fontFamily: 'GoogleSansCode',
fontSize: 13,
height: 1.54,
),

View File

@@ -23,12 +23,13 @@ class ShellLayout extends StatelessWidget {
children: [
Image.asset('assets/immich_logo.png', height: 32, width: 32),
const SizedBox(width: 8),
Text(
'immich',
style: Theme.of(context).textTheme.titleLarge?.copyWith(
fontWeight: FontWeight.w600,
color: Theme.of(context).colorScheme.onSurface,
),
Image.asset(
isDark
? 'assets/immich-text-dark.png'
: 'assets/immich-text-light.png',
height: 24,
filterQuality: FilterQuality.none,
isAntiAlias: true,
),
],
),

View File

@@ -23,4 +23,24 @@ flutter:
uses-material-design: true
assets:
- assets/
- assets/themes/
- assets/themes/
fonts:
- family: GoogleSans
fonts:
- asset: ../../../fonts/GoogleSans/GoogleSans-Regular.ttf
- asset: ../../../fonts/GoogleSans/GoogleSans-Italic.ttf
style: italic
- asset: ../../../fonts/GoogleSans/GoogleSans-Medium.ttf
weight: 500
- asset: ../../../fonts/GoogleSans/GoogleSans-SemiBold.ttf
weight: 600
- asset: ../../../fonts/GoogleSans/GoogleSans-Bold.ttf
weight: 700
- family: GoogleSansCode
fonts:
- asset: ../../../fonts/GoogleSansCode/GoogleSansCode-Regular.ttf
- asset: ../../../fonts/GoogleSansCode/GoogleSansCode-Medium.ttf
weight: 500
- asset: ../../../fonts/GoogleSansCode/GoogleSansCode-SemiBold.ttf
weight: 600