Skip to content

Commit

Permalink
Patch installer nav button width for Bulgarian
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Oct 15, 2024
1 parent e704a6c commit 2f2163a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Bloxstrap/UI/Elements/Installer/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@
</ItemsPanelTemplate>
</StatusBar.ItemsPanel>
<StatusBarItem Grid.Column="1" Padding="0,0,4,0">
<ui:Button Content="{x:Static resources:Strings.Common_Navigation_Back}" Width="96" Command="{Binding BackPageCommand, Mode=OneWay}" IsEnabled="{Binding BackButtonEnabled, Mode=OneWay}" />
<ui:Button Content="{x:Static resources:Strings.Common_Navigation_Back}" Width="{Binding ButtonWidth, Mode=OneTime}" Command="{Binding BackPageCommand, Mode=OneWay}" IsEnabled="{Binding BackButtonEnabled, Mode=OneWay}" />
</StatusBarItem>
<StatusBarItem Grid.Column="2" Padding="4,0,4,0">
<ui:Button Name="NextButton" Content="{Binding NextButtonText, Mode=OneWay}" Width="96" Command="{Binding NextPageCommand, Mode=OneWay}" IsEnabled="{Binding NextButtonEnabled, Mode=OneWay}" />
<ui:Button Name="NextButton" Content="{Binding NextButtonText, Mode=OneWay}" Width="{Binding ButtonWidth, Mode=OneTime}" Command="{Binding NextPageCommand, Mode=OneWay}" IsEnabled="{Binding NextButtonEnabled, Mode=OneWay}" />
</StatusBarItem>
<StatusBarItem Grid.Column="3" Padding="12,0,0,0">
<ui:Button Content="{x:Static resources:Strings.Common_Close}" Width="96" Command="{Binding CloseWindowCommand, Mode=OneWay}" />
<ui:Button Content="{x:Static resources:Strings.Common_Close}" Width="{Binding ButtonWidth, Mode=OneTime}" Command="{Binding CloseWindowCommand, Mode=OneWay}" />
</StatusBarItem>
</StatusBar>
</Grid>
Expand Down
4 changes: 2 additions & 2 deletions Bloxstrap/UI/ViewModels/Installer/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Windows.Input;
using CommunityToolkit.Mvvm.Input;

using Bloxstrap.Resources;

namespace Bloxstrap.UI.ViewModels.Installer
{
public class MainWindowViewModel : NotifyPropertyChangedViewModel
Expand All @@ -13,6 +11,8 @@ public class MainWindowViewModel : NotifyPropertyChangedViewModel

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);
Expand Down

0 comments on commit 2f2163a

Please sign in to comment.