Some UI changes on settings.

This commit is contained in:
Burak Kaan Köse
2026-03-09 00:28:10 +01:00
parent 3e731967cd
commit 44be3eb4f7
17 changed files with 291 additions and 149 deletions
@@ -15,8 +15,9 @@ public partial class SettingOptionsPageViewModel : CoreBaseViewModel
{
private readonly INativeAppService _nativeAppService;
private readonly IAccountService _accountService;
private readonly IStoreRatingService _storeRatingService;
public string WebsiteUrl => AppUrls.Website;
public string GitHubUrl => AppUrls.GitHub;
public string PaypalUrl => AppUrls.Paypal;
[ObservableProperty]
@@ -28,10 +29,13 @@ public partial class SettingOptionsPageViewModel : CoreBaseViewModel
[ObservableProperty]
public partial int AccountCount { get; set; }
public SettingOptionsPageViewModel(INativeAppService nativeAppService, IAccountService accountService)
public SettingOptionsPageViewModel(INativeAppService nativeAppService,
IAccountService accountService,
IStoreRatingService storeRatingService)
{
_nativeAppService = nativeAppService;
_accountService = accountService;
_storeRatingService = storeRatingService;
}
public override void OnNavigatedTo(NavigationMode mode, object parameters)
@@ -86,4 +90,19 @@ public partial class SettingOptionsPageViewModel : CoreBaseViewModel
Messenger.Send(new BreadcrumbNavigationRequested(pageTitle, pageType));
}
}
[RelayCommand]
private async Task NavigateExternalAsync(object target)
{
if (target is not string stringTarget || string.IsNullOrWhiteSpace(stringTarget))
return;
if (stringTarget == "Store")
{
await _storeRatingService.LaunchStorePageForReviewAsync();
return;
}
await _nativeAppService.LaunchUriAsync(new Uri(stringTarget));
}
}