From 2f2163a88813762afd517ea9d78383a066dc4908 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Tue, 15 Oct 2024 15:17:22 +0100 Subject: [PATCH] Patch installer nav button width for Bulgarian --- Bloxstrap/UI/Elements/Installer/MainWindow.xaml | 6 +++--- Bloxstrap/UI/ViewModels/Installer/MainWindowViewModel.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Bloxstrap/UI/Elements/Installer/MainWindow.xaml b/Bloxstrap/UI/Elements/Installer/MainWindow.xaml index a2c71cf..d8ed554 100644 --- a/Bloxstrap/UI/Elements/Installer/MainWindow.xaml +++ b/Bloxstrap/UI/Elements/Installer/MainWindow.xaml @@ -68,13 +68,13 @@ - + - + - + diff --git a/Bloxstrap/UI/ViewModels/Installer/MainWindowViewModel.cs b/Bloxstrap/UI/ViewModels/Installer/MainWindowViewModel.cs index 347b20e..a28d6c0 100644 --- a/Bloxstrap/UI/ViewModels/Installer/MainWindowViewModel.cs +++ b/Bloxstrap/UI/ViewModels/Installer/MainWindowViewModel.cs @@ -1,8 +1,6 @@ using System.Windows.Input; using CommunityToolkit.Mvvm.Input; -using Bloxstrap.Resources; - namespace Bloxstrap.UI.ViewModels.Installer { public class MainWindowViewModel : NotifyPropertyChangedViewModel @@ -13,6 +11,8 @@ namespace Bloxstrap.UI.ViewModels.Installer public bool NextButtonEnabled { get; private set; } = false; + public int ButtonWidth { get; } = Locale.CurrentCulture.Name.StartsWith("bg") ? 112 : 96; + public ICommand BackPageCommand => new RelayCommand(BackPage); public ICommand NextPageCommand => new RelayCommand(NextPage);