Skip to content

Commit fcd744c

Browse files
committed
fix json downloader layout
1 parent 1b28b56 commit fcd744c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

DeCraftLauncher/WindowDownloadJSON.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
NoiseOpacity="0.0001"
1111
TintColor="#000000"
1212
TintOpacity="0.6"
13-
Title="DECRAFT: Download JSON" local:GlobalVars.LocKey="window.jsondl.window_title" Height="413" Width="704" Background="#FA000000" AcrylicWindowStyle="Normal">
13+
Title="DECRAFT: Download JSON" local:GlobalVars.LocKey="window.jsondl.window_title" Height="413" Width="704" MinWidth="500" MinHeight="230" Background="#FA000000" AcrylicWindowStyle="Normal">
1414
<Grid>
1515
<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"/>
1616

17-
<DockPanel Margin="10,49,464,43" LastChildFill="True">
17+
<DockPanel Margin="10,49,0,43" LastChildFill="True" HorizontalAlignment="Left" Width="230">
1818
<Label x:Name="label_jardls_hint" local:GlobalVars.LocKey="window.jsondl.jarlist_hint" DockPanel.Dock="Top" Content="Select .jar file to download" Foreground="White"/>
1919
<DockPanel DockPanel.Dock="Bottom" LastChildFill="True">
2020
<Label x:Name="label_saveas_hint" local:GlobalVars.LocKey="window.jsondl.saveas_hint" DockPanel.Dock="Left" Foreground="White" Content="Save as:"/>
21+
<Label Content=".jar" Foreground="White" DockPanel.Dock="Right"/>
2122
<TextBox DockPanel.Dock="Right" VerticalContentAlignment="Center" x:Name="tbox_jarsave_name" Style="{StaticResource TextBoxMainStyle}"/>
2223
</DockPanel>
2324
<ScrollViewer DockPanel.Dock="Bottom" VerticalScrollBarVisibility="Auto">

DeCraftLauncher/WindowDownloadJSON.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ where x.SelectToken("action") != null && x.SelectToken("os") != null
106106
IsChecked = true,
107107
VerticalContentAlignment = VerticalAlignment.Center,
108108
Padding = new Thickness(0, 4, 0, 4),
109-
Foreground = Brushes.White
109+
Foreground = Brushes.White,
110+
Style = (Style)FindResource("MainCheckBoxStyle")
110111
};
111112
libBtns.Add(nCheckbox);
112113
panel_libdls.Children.Add(nCheckbox);

0 commit comments

Comments
 (0)