mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 08:49:01 +03:00
update fonts
This commit is contained in:
5
mobile/packages/ui/.gitignore
vendored
5
mobile/packages/ui/.gitignore
vendored
@@ -9,4 +9,7 @@ ios/
|
||||
.dart_tool/
|
||||
.packages
|
||||
.flutter-plugins
|
||||
.flutter-plugins-dependencies
|
||||
.flutter-plugins-dependencies
|
||||
|
||||
# Fonts copied by build process
|
||||
fonts/
|
||||
BIN
mobile/packages/ui/showcase/assets/immich-text-dark.png
Normal file
BIN
mobile/packages/ui/showcase/assets/immich-text-dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
BIN
mobile/packages/ui/showcase/assets/immich-text-light.png
Normal file
BIN
mobile/packages/ui/showcase/assets/immich-text-light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user