Skip to content

Commit

Permalink
fix json downloader layout
Browse files Browse the repository at this point in the history
  • Loading branch information
counter185 committed Jul 18, 2024
1 parent 1b28b56 commit fcd744c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions DeCraftLauncher/WindowDownloadJSON.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
NoiseOpacity="0.0001"
TintColor="#000000"
TintOpacity="0.6"
Title="DECRAFT: Download JSON" local:GlobalVars.LocKey="window.jsondl.window_title" Height="413" Width="704" Background="#FA000000" AcrylicWindowStyle="Normal">
Title="DECRAFT: Download JSON" local:GlobalVars.LocKey="window.jsondl.window_title" Height="413" Width="704" MinWidth="500" MinHeight="230" Background="#FA000000" AcrylicWindowStyle="Normal">
<Grid>
<Label Content="Download JSON" x:Name="label_header" local:GlobalVars.LocKey="window.jsondl.header" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Foreground="White" FontSize="18" FontWeight="Bold"/>

<DockPanel Margin="10,49,464,43" LastChildFill="True">
<DockPanel Margin="10,49,0,43" LastChildFill="True" HorizontalAlignment="Left" Width="230">
<Label x:Name="label_jardls_hint" local:GlobalVars.LocKey="window.jsondl.jarlist_hint" DockPanel.Dock="Top" Content="Select .jar file to download" Foreground="White"/>
<DockPanel DockPanel.Dock="Bottom" LastChildFill="True">
<Label x:Name="label_saveas_hint" local:GlobalVars.LocKey="window.jsondl.saveas_hint" DockPanel.Dock="Left" Foreground="White" Content="Save as:"/>
<Label Content=".jar" Foreground="White" DockPanel.Dock="Right"/>
<TextBox DockPanel.Dock="Right" VerticalContentAlignment="Center" x:Name="tbox_jarsave_name" Style="{StaticResource TextBoxMainStyle}"/>
</DockPanel>
<ScrollViewer DockPanel.Dock="Bottom" VerticalScrollBarVisibility="Auto">
Expand Down
3 changes: 2 additions & 1 deletion DeCraftLauncher/WindowDownloadJSON.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ where x.SelectToken("action") != null && x.SelectToken("os") != null
IsChecked = true,
VerticalContentAlignment = VerticalAlignment.Center,
Padding = new Thickness(0, 4, 0, 4),
Foreground = Brushes.White
Foreground = Brushes.White,
Style = (Style)FindResource("MainCheckBoxStyle")
};
libBtns.Add(nCheckbox);
panel_libdls.Children.Add(nCheckbox);
Expand Down

0 comments on commit fcd744c

Please sign in to comment.