diff --git a/.dist/whatsnew/whatsnew-de-DE b/.dist/whatsnew/whatsnew-de-DE index b3292845..2286b6eb 100644 --- a/.dist/whatsnew/whatsnew-de-DE +++ b/.dist/whatsnew/whatsnew-de-DE @@ -2,4 +2,5 @@ - Button zum Teilen der App hinzugefügt - Komponenten aktualisiert - Berührungszielgrösse der Felder in der Einstellungsansicht korrigiert -- Fehler behoben, bei dem sich die angezeigte Einheit nicht ändert wenn sie in den Einstellungen geändert wurde \ No newline at end of file +- Fehler behoben, bei dem sich die angezeigte Einheit nicht ändert wenn sie in den Einstellungen geändert wurde +- Niedrigen Kontrast im Versions-Popup korrigiert \ No newline at end of file diff --git a/.dist/whatsnew/whatsnew-en-US b/.dist/whatsnew/whatsnew-en-US index 0d4d4b8f..0a0f9bd0 100644 --- a/.dist/whatsnew/whatsnew-en-US +++ b/.dist/whatsnew/whatsnew-en-US @@ -2,4 +2,5 @@ - Added button to share the app - Updated the components - Fixed touch target size of the fields in the settings view -- Fixed a bug where the displayed unit does not change when changed in the settings \ No newline at end of file +- Fixed a bug where the displayed unit does not change when changed in the settings +- Fixed low contrast in version popup \ No newline at end of file diff --git a/src/Directory.Build.props b/src/Directory.Build.props index c3087475..75e718f2 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,7 +1,7 @@ - 1.0.44 - 44 + 1.0.45 + 45 $(DisplayVersion) $(DisplayVersion) diff --git a/src/PersonalRecord.App/ViewModels/MainViewModel.cs b/src/PersonalRecord.App/ViewModels/MainViewModel.cs index 46b5b525..5e1ddb5a 100644 --- a/src/PersonalRecord.App/ViewModels/MainViewModel.cs +++ b/src/PersonalRecord.App/ViewModels/MainViewModel.cs @@ -16,8 +16,14 @@ public partial class MainViewModel : ObservableObject private string _appVersion; [ObservableProperty] - private string _message; - + private string _copyright; + + [ObservableProperty] + private string _technology; + + [ObservableProperty] + private string _fullVersion; + [ObservableProperty] private bool _popupIsOpen; @@ -106,17 +112,10 @@ await Share.Default.RequestAsync(new ShareTextRequest [RelayCommand] public void ShowDetailInformation() { - var copyright = EnvironmentConstants.COPYRIGHT + DateTime.Now.Year.ToString(); + Copyright = EnvironmentConstants.COPYRIGHT + DateTime.Now.Year.ToString(); + Technology = AppResources.DevelopedWithDotNetMaui; var informationalVersion = _versionService.GetInformationalVersion(); - - var stringBuilder = new StringBuilder(); - stringBuilder.AppendLine(copyright); - stringBuilder.AppendLine(string.Empty); - stringBuilder.AppendLine(AppResources.DevelopedWithDotNetMaui); - stringBuilder.AppendLine(string.Empty); - stringBuilder.AppendLine($"{AppResources.FullVersion}: {informationalVersion}"); - - Message = stringBuilder.ToString(); + FullVersion = $"{AppResources.FullVersion}: {informationalVersion}"; PopupIsOpen = true; } diff --git a/src/PersonalRecord.App/Views/MainView.xaml b/src/PersonalRecord.App/Views/MainView.xaml index 4f8ebbe2..e0eb0bd0 100644 --- a/src/PersonalRecord.App/Views/MainView.xaml +++ b/src/PersonalRecord.App/Views/MainView.xaml @@ -15,7 +15,11 @@ #000000 #00FFFFFF #00E1FB - + DeepSkyBlue + MediumBlue + #26262C + #A7A3AC + + + + + @@ -109,13 +176,13 @@ Command="{Binding GoToMovementRecordAllViewCommand}"/> - + - + - + @@ -183,7 +250,7 @@ Command="{Binding ShareThisAppCommand}" /> - + - + + + + + + +