diff --git a/assets/fonts/BebasNeue-Regular.ttf b/assets/fonts/BebasNeue-Regular.ttf new file mode 100644 index 00000000..d2190b51 Binary files /dev/null and b/assets/fonts/BebasNeue-Regular.ttf differ diff --git a/assets/fonts/OFL - BebasNeue.txt b/assets/fonts/OFL - BebasNeue.txt new file mode 100644 index 00000000..9d660599 --- /dev/null +++ b/assets/fonts/OFL - BebasNeue.txt @@ -0,0 +1,93 @@ +Copyright © 2010 by Dharma Type. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/fonts/OFL - RobotoCondensed.txt b/assets/fonts/OFL - RobotoCondensed.txt new file mode 100644 index 00000000..565ded1c --- /dev/null +++ b/assets/fonts/OFL - RobotoCondensed.txt @@ -0,0 +1,93 @@ +Copyright 2011 The Roboto Project Authors (https://github.com/googlefonts/roboto-classic) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/fonts/OpenSans-Bold.ttf b/assets/fonts/OpenSans-Bold.ttf deleted file mode 100644 index 1811cd63..00000000 Binary files a/assets/fonts/OpenSans-Bold.ttf and /dev/null differ diff --git a/assets/fonts/OpenSans-Light.ttf b/assets/fonts/OpenSans-Light.ttf deleted file mode 100644 index bf6b3693..00000000 Binary files a/assets/fonts/OpenSans-Light.ttf and /dev/null differ diff --git a/assets/fonts/RobotoCondensed-VariableFont_wght.ttf b/assets/fonts/RobotoCondensed-VariableFont_wght.ttf new file mode 100644 index 00000000..a5f645b6 Binary files /dev/null and b/assets/fonts/RobotoCondensed-VariableFont_wght.ttf differ diff --git a/lib/screens/auth_screen.dart b/lib/screens/auth_screen.dart index f9b99c89..06ed58fe 100644 --- a/lib/screens/auth_screen.dart +++ b/lib/screens/auth_screen.dart @@ -70,11 +70,10 @@ class AuthScreen extends StatelessWidget { margin: const EdgeInsets.only(bottom: 20.0), padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 94.0), child: const Text( - 'WGER', + 'wger', style: TextStyle( color: Colors.white70, fontSize: 30, - fontFamily: 'OpenSansBold', fontWeight: FontWeight.bold, ), ), diff --git a/lib/screens/home_tabs_screen.dart b/lib/screens/home_tabs_screen.dart index d4fa82c8..70f4feb7 100644 --- a/lib/screens/home_tabs_screen.dart +++ b/lib/screens/home_tabs_screen.dart @@ -160,7 +160,7 @@ class _HomeTabsScreenState extends State with SingleTickerProvid bottomNavigationBar: BottomNavigationBar( items: [ BottomNavigationBarItem( - icon: const Icon(Icons.dashboard), + icon: const Icon(Icons.home), label: AppLocalizations.of(context).labelDashboard, ), BottomNavigationBarItem( @@ -187,6 +187,7 @@ class _HomeTabsScreenState extends State with SingleTickerProvid currentIndex: _selectedIndex, onTap: _onItemTapped, showUnselectedLabels: false, + showSelectedLabels: false, ), ); } diff --git a/lib/theme/theme.dart b/lib/theme/theme.dart index 72b6c891..384b1536 100644 --- a/lib/theme/theme.dart +++ b/lib/theme/theme.dart @@ -17,7 +17,10 @@ */ import 'package:flex_color_scheme/flex_color_scheme.dart'; +import 'dart:ui'; + import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:table_calendar/table_calendar.dart'; // Color scheme, please consult @@ -32,11 +35,14 @@ const Color wgerSecondaryColorLight = Color(0xffF6B4BA); const Color wgerTertiaryColor = Color(0xFF6CA450); const FlexSubThemesData wgerSubThemeData = FlexSubThemesData( - fabSchemeColor: SchemeColor.secondary, - inputDecoratorBorderType: FlexInputBorderType.underline, - inputDecoratorIsFilled: false, - useTextTheme: true, -); + fabSchemeColor: SchemeColor.secondary, + inputDecoratorBorderType: FlexInputBorderType.underline, + inputDecoratorIsFilled: false, + useTextTheme: true); + +const String wgerDisplayFont = 'BebasNeue'; +const String wgerHeadingFont = 'RobotoCondensed'; +const List robotoHeadingWeight = [FontVariation('wght', 600)]; // Make a light ColorScheme from the seeds. final ColorScheme schemeLight = SeedColorScheme.fromSeeds( @@ -75,31 +81,54 @@ final ColorScheme schemeDarkHc = SeedColorScheme.fromSeeds( tones: FlexTones.ultraContrast(Brightness.dark), ); -final wgerLightTheme = FlexThemeData.light( - colorScheme: schemeLight, - useMaterial3: true, - appBarStyle: FlexAppBarStyle.primary, - subThemesData: wgerSubThemeData, +const wgerTextTheme = TextTheme( + displayLarge: TextStyle(fontFamily: wgerDisplayFont, fontFamilyFallback: [wgerHeadingFont]), + displayMedium: TextStyle(fontFamily: wgerDisplayFont, fontFamilyFallback: [wgerHeadingFont]), + displaySmall: TextStyle(fontFamily: wgerDisplayFont, fontFamilyFallback: [wgerHeadingFont]), + headlineLarge: TextStyle(fontFamily: wgerHeadingFont), + headlineMedium: TextStyle( + fontFamily: wgerHeadingFont, + fontVariations: robotoHeadingWeight, + ), + headlineSmall: TextStyle( + fontFamily: wgerHeadingFont, + fontVariations: robotoHeadingWeight, + color: Colors.black, + ), + titleLarge: TextStyle( + fontFamily: wgerHeadingFont, + fontVariations: robotoHeadingWeight, + color: Colors.black, + ), + titleMedium: TextStyle(fontFamily: wgerHeadingFont, fontVariations: robotoHeadingWeight), + titleSmall: TextStyle(fontFamily: wgerHeadingFont, fontVariations: robotoHeadingWeight), ); +final wgerLightTheme = FlexThemeData.light( + colorScheme: schemeLight, + useMaterial3: true, + appBarStyle: FlexAppBarStyle.primary, + subThemesData: wgerSubThemeData, + textTheme: wgerTextTheme); + final wgerDarkTheme = FlexThemeData.dark( - colorScheme: schemeDark, - useMaterial3: true, - subThemesData: wgerSubThemeData, -); + colorScheme: schemeDark, + useMaterial3: true, + subThemesData: wgerSubThemeData, + textTheme: wgerTextTheme); final wgerLightThemeHc = FlexThemeData.light( - colorScheme: schemeLightHc, - useMaterial3: true, - appBarStyle: FlexAppBarStyle.primary, - subThemesData: wgerSubThemeData, -); + colorScheme: schemeLightHc, + useMaterial3: true, + appBarStyle: FlexAppBarStyle.primary, + subThemesData: wgerSubThemeData, + textTheme: wgerTextTheme); final wgerDarkThemeHc = FlexThemeData.dark( - colorScheme: schemeDarkHc, - useMaterial3: true, - subThemesData: wgerSubThemeData, -); + colorScheme: schemeDarkHc, + useMaterial3: true, + subThemesData: wgerSubThemeData, + textTheme: wgerTextTheme); CalendarStyle getWgerCalendarStyle(ThemeData theme) { return CalendarStyle( diff --git a/lib/widgets/dashboard/calendar.dart b/lib/widgets/dashboard/calendar.dart index f2b5c8b5..97947704 100644 --- a/lib/widgets/dashboard/calendar.dart +++ b/lib/widgets/dashboard/calendar.dart @@ -217,7 +217,7 @@ class _DashboardCalendarWidgetState extends State style: Theme.of(context).textTheme.headlineMedium, ), leading: Icon( - Icons.calendar_today_outlined, + Icons.calendar_today, color: Theme.of(context).textTheme.headlineMedium!.color, ), ), diff --git a/lib/widgets/dashboard/widgets.dart b/lib/widgets/dashboard/widgets.dart index 690b9712..9310cd5a 100644 --- a/lib/widgets/dashboard/widgets.dart +++ b/lib/widgets/dashboard/widgets.dart @@ -537,7 +537,7 @@ class _DashboardWorkoutWidgetState extends State { : '', ), leading: Icon( - Icons.fitness_center_outlined, + Icons.fitness_center, color: Theme.of(context).textTheme.headlineSmall!.color, ), trailing: getTrailing(), diff --git a/lib/widgets/gallery/forms.dart b/lib/widgets/gallery/forms.dart index c9cdf864..b5443f4e 100644 --- a/lib/widgets/gallery/forms.dart +++ b/lib/widgets/gallery/forms.dart @@ -135,7 +135,7 @@ class _ImageFormState extends State { key: const Key('field-date'), decoration: InputDecoration( labelText: AppLocalizations.of(context).date, - suffixIcon: const Icon(Icons.calendar_today_outlined), + suffixIcon: const Icon(Icons.calendar_today), ), readOnly: true, // Stop keyboard from appearing controller: dateController, diff --git a/lib/widgets/nutrition/forms.dart b/lib/widgets/nutrition/forms.dart index b0b00225..42129ea2 100644 --- a/lib/widgets/nutrition/forms.dart +++ b/lib/widgets/nutrition/forms.dart @@ -277,7 +277,7 @@ class IngredientLogForm extends StatelessWidget { // Stop keyboard from appearing decoration: InputDecoration( labelText: AppLocalizations.of(context).date, - suffixIcon: const Icon(Icons.calendar_today_outlined), + suffixIcon: const Icon(Icons.calendar_today), ), enableInteractiveSelection: false, controller: _dateController, diff --git a/lib/widgets/weight/forms.dart b/lib/widgets/weight/forms.dart index c4b6f676..1f414b23 100644 --- a/lib/widgets/weight/forms.dart +++ b/lib/widgets/weight/forms.dart @@ -49,7 +49,7 @@ class WeightForm extends StatelessWidget { readOnly: true, // Stop keyboard from appearing decoration: InputDecoration( labelText: AppLocalizations.of(context).date, - suffixIcon: const Icon(Icons.calendar_today_outlined), + suffixIcon: const Icon(Icons.calendar_today), ), enableInteractiveSelection: false, controller: dateController, diff --git a/lib/widgets/workouts/workout_logs.dart b/lib/widgets/workouts/workout_logs.dart index effbc669..0c6f4da9 100644 --- a/lib/widgets/workouts/workout_logs.dart +++ b/lib/widgets/workouts/workout_logs.dart @@ -55,7 +55,7 @@ class _WorkoutLogsState extends State { isSelected: const [false, true], children: const [ Icon( - Icons.table_chart_outlined, + Icons.table_chart, ), Icon( Icons.show_chart, diff --git a/lib/widgets/workouts/workout_plan_detail.dart b/lib/widgets/workouts/workout_plan_detail.dart index 159ea975..bad031e4 100644 --- a/lib/widgets/workouts/workout_plan_detail.dart +++ b/lib/widgets/workouts/workout_plan_detail.dart @@ -49,7 +49,7 @@ class _WorkoutPlanDetailState extends State { }, isSelected: const [true, false], children: const [ - Icon(Icons.table_chart_outlined), + Icon(Icons.table_chart), Icon(Icons.show_chart), ], ), diff --git a/pubspec.lock b/pubspec.lock index da8407d5..6cbde2f7 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -201,14 +201,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.4" - cli_util: - dependency: transitive - description: - name: cli_util - sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7 - url: "https://pub.dev" - source: hosted - version: "0.4.0" clock: dependency: transitive description: @@ -459,14 +451,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.0" - flutter_launcher_icons: - dependency: "direct dev" - description: - name: flutter_launcher_icons - sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea" - url: "https://pub.dev" - source: hosted - version: "0.13.1" flutter_lints: dependency: "direct dev" description: diff --git a/pubspec.yaml b/pubspec.yaml index 64d0e126..723ac03e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -105,13 +105,12 @@ flutter: # list giving the asset and other descriptors for the font. For # example: fonts: - - family: OpenSansLight + - family: BebasNeue fonts: - - asset: assets/fonts/OpenSans-Light.ttf - - family: OpenSansBold + - asset: assets/fonts/BebasNeue-Regular.ttf + - family: RobotoCondensed fonts: - - asset: assets/fonts/OpenSans-Bold.ttf - weight: 700 + - asset: assets/fonts/RobotoCondensed-VariableFont_wght.ttf # # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages