diff options
| author | mirror <mirror@localhost> | 2026-11-22 08:41:00 +0900 |
|---|---|---|
| committer | mirror <mirror@localhost> | 2026-11-22 08:41:00 +0900 |
| commit | 449d8b74bd6d9dae98a07254cdfad677b920e7b0 (patch) | |
| tree | c131c3528c4d517f56e19b854a7453fedb097d40 /lib/theme/styles.dart | |
| download | aves-src-master.tar.gz aves-src-master.zip | |
Diffstat (limited to 'lib/theme/styles.dart')
| -rw-r--r-- | lib/theme/styles.dart | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/theme/styles.dart b/lib/theme/styles.dart new file mode 100644 index 0000000..94b0a21 --- /dev/null +++ b/lib/theme/styles.dart @@ -0,0 +1,23 @@ +import 'package:flutter/painting.dart'; + +class AStyles { + static const knownTitleText = TextStyle( + fontSize: 20, + fontWeight: FontWeight.w300, + fontFeatures: [FontFeature.enable('smcp')], + ); + + static TextStyle unknownTitleText = knownTitleText; + + static void updateStylesForLocale(Locale locale) { + final smcp = locale.languageCode != 'el'; + unknownTitleText = smcp ? knownTitleText : knownTitleText.copyWith(fontFeatures: []); + } + + static const embossShadows = [ + Shadow( + color: Color(0xFF000000), + offset: Offset(0.5, 1.0), + ) + ]; +} |
