Skip to content

Commit

Permalink
Resizable update found window
Browse files Browse the repository at this point in the history
Updated converting window text
  • Loading branch information
Mantas-2155X committed Jun 11, 2023
1 parent aab8384 commit 8a98936
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions HardSubberGUI/HardSubberGUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<TrimMode>copyused</TrimMode>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<PackageVersion>1.0.1</PackageVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<FileVersion>1.4.1.0</FileVersion>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
<FileVersion>1.5.0.0</FileVersion>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
Expand Down
4 changes: 2 additions & 2 deletions HardSubberGUI/ViewModels/ConvertingViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace HardSubberGUI.ViewModels
{
public class ConvertingViewModel : ViewModelBase
{
public static string ProgressFormat => "{0}/{3} Files";
public static string ProgressFormat => "{0}/{3} Files Converted";

#region Tooltips

Expand All @@ -14,7 +14,7 @@ public class ConvertingViewModel : ViewModelBase

#region Labels

public static string Text => "Converting...";
public static string Text => "Converting...\nSee minimized terminals for more info.";

#endregion

Expand Down
6 changes: 3 additions & 3 deletions HardSubberGUI/ViewModels/UpdateFoundViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public class UpdateFoundViewModel : ViewModelBase

#region Labels

public static string Text => "A new update is available.\nOpen download link?";
public static string Text => "A new update is available.";

#endregion

#region Buttons

public static string Yes => "Yes";
public static string No => "No";
public static string Yes => "Open Link";
public static string No => "Ignore";

#endregion

Expand Down
6 changes: 3 additions & 3 deletions HardSubberGUI/Views/ConvertingWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
x:Class="HardSubberGUI.Views.ConvertingWindow"
Background="{Binding MainPanelColor}"
CanResize="False"
Width="265" Height="105"
MinWidth="265" MinHeight="105"
WindowStartupLocation="CenterScreen"
Width="265" Height="125"
MinWidth="265" MinHeight="125"
WindowStartupLocation="CenterOwner"
Icon="/Assets/hardsubber.ico"
Title="HardSubberGUI">

Expand Down
23 changes: 11 additions & 12 deletions HardSubberGUI/Views/UpdateFoundWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
mc:Ignorable="d" d:DesignWidth="265" d:DesignHeight="105"
x:Class="HardSubberGUI.Views.UpdateFoundWindow"
Background="{Binding MainPanelColor}"
CanResize="False"
Width="375" Height="225"
MinWidth="375" MinHeight="225"
WindowStartupLocation="CenterScreen"
Width="350" Height="225"
MinWidth="350" MinHeight="225"
WindowStartupLocation="CenterOwner"
Icon="/Assets/hardsubber.ico"
Title="HardSubberGUI">

Expand All @@ -20,22 +19,22 @@
<DockPanel Margin="5">
<!--Bottom Panel-->
<Panel DockPanel.Dock="Bottom" Height="30" Background="{Binding MainPanelColor}">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Spacing="5">
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Spacing="5">
<Button Name="NoControl" Width="125" HorizontalContentAlignment="Center" Content="{Binding No}" Click="No_OnClick" ToolTip.Tip="{Binding NoTooltip}"/>
<Button Name="YesControl" Width="125" HorizontalContentAlignment="Center" Content="{Binding Yes}" Click="Yes_OnClick" ToolTip.Tip="{Binding YesTooltip}"/>
</StackPanel>
</Panel>

<Panel DockPanel.Dock="Top" Height="175" Background="{Binding MainPanelColor}">
<StackPanel Orientation="Vertical" Spacing="5">
<!--Text-->
<TextBlock TextAlignment="Center" VerticalAlignment="Center" Text="{Binding Text}"/>
<Panel DockPanel.Dock="Top" Background="{Binding MainPanelColor}">
<DockPanel>
<!--Title-->
<TextBlock DockPanel.Dock="Top" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding Text}"/>

<ScrollViewer Padding="5, 0, 5, 0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Height="125" Width="365" Background="{Binding SecondaryPanelColor}">
<!--Changes-->
<!--Changes-->
<ScrollViewer DockPanel.Dock="Top" Margin="0, 5, 0, 5" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Background="{Binding SecondaryPanelColor}">
<TextBlock TextAlignment="Left" VerticalAlignment="Top" Name="ChangesControl"/>
</ScrollViewer>
</StackPanel>
</DockPanel>
</Panel>
</DockPanel>
</Window>

0 comments on commit 8a98936

Please sign in to comment.