Skip to content

Commit

Permalink
Improve typography in DateTime modal
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasn committed Jun 16, 2023
1 parent eb8000b commit 0588984
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed:
- Typography in DateTime modal

## [0.8.380] - 2023-06-16
### Fixed:
- Border in search widget

Expand Down
10 changes: 10 additions & 0 deletions lib/themes/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,15 @@ ThemeData withOverrides(ThemeData themeData) {
),
floatingLabelBehavior: FloatingLabelBehavior.always,
),
textButtonTheme: TextButtonThemeData(
style: ButtonStyle(
textStyle: MaterialStateProperty.resolveWith((states) {
return const TextStyle(
fontSize: fontSizeMediumLarge,
fontFamily: mainFont,
);
}),
),
),
);
}
4 changes: 4 additions & 0 deletions lib/widgets/date_time/datetime_bottom_sheet.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:ui';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
Expand Down Expand Up @@ -71,6 +73,8 @@ class _DateTimeBottomSheetState extends State<DateTimeBottomSheet> {
Colors.grey,
fontSize: fontSizeLarge,
fontWeight: FontWeight.w300,
fontFamily: mainFont,
fontFeatures: const [FontFeature.tabularFigures()],
),
),
),
Expand Down
4 changes: 0 additions & 4 deletions lib/widgets/journal/entry_details/entry_datetime_modal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:lotti/blocs/journal/entry_cubit.dart';
import 'package:lotti/blocs/journal/entry_state.dart';
import 'package:lotti/classes/journal_entities.dart';
import 'package:lotti/themes/theme.dart';
import 'package:lotti/widgets/date_time/datetime_field.dart';
import 'package:lotti/widgets/journal/entry_tools.dart';

Expand Down Expand Up @@ -103,9 +102,6 @@ class _EntryDateTimeModalState extends State<EntryDateTimeModal> {
padding: const EdgeInsets.only(left: 8),
child: Text(
formatDuration(dateFrom.difference(dateTo).abs()),
style: monospaceTextStyle.copyWith(
fontWeight: FontWeight.w100,
),
),
),
],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lotti
description: Achieve your goals and keep your data private with Lotti.
publish_to: 'none'
version: 0.9.380+2252
version: 0.9.381+2253

msix_config:
display_name: LottiApp
Expand Down

0 comments on commit 0588984

Please sign in to comment.