Skip to content

Commit 7c53066

Browse files
committed
add explore theme folder button, #build
1 parent 3a47f31 commit 7c53066

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: UnityLauncherPro/MainWindow.xaml

+1
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@
711711
<CheckBox x:Name="chkUseCustomTheme" Content="Load custom theme" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,0,0,4" ToolTip="Loads theme.ini from application folder" Checked="ChkUseCustomTheme_Checked" Unchecked="ChkUseCustomTheme_Checked" HorizontalAlignment="Left"/>
712712
<TextBox x:Name="txtCustomThemeFile" MinWidth="128" ToolTip="Default is theme.ini" Padding="0,3,0,0" Margin="5,0,0,0" Text="theme.ini" LostFocus="TxtCustomThemeFile_LostFocus" PreviewKeyDown="TxtCustomThemeFile_PreviewKeyDown" />
713713
<Button Style="{StaticResource CustomButton}" ToolTip="Reload theme" x:Name="btnReloadTheme" Content="" Height="22" Width="22" HorizontalAlignment="Right" VerticalAlignment="Top" FontSize="16" Padding="1,-2,1,1" BorderBrush="{x:Null}" Click="BtnReloadTheme_Click" Margin="5,0,0,0"/>
714+
<Button Style="{StaticResource CustomButton}" ToolTip="Explore folder.." x:Name="btnExploreFolder" Content="..." Height="22" Width="22" HorizontalAlignment="Right" VerticalAlignment="Top" FontSize="16" Padding="1,-2,1,1" BorderBrush="{x:Null}" Click="BtnExploreFolder_Click" Margin="5,0,0,0"/>
714715
</StackPanel>
715716

716717
<StackPanel Grid.Row="3" Orientation="Horizontal" Margin="0,0,0,4">

Diff for: UnityLauncherPro/MainWindow.xaml.cs

+5-6
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ void ApplyTheme()
17351735
{
17361736
if (chkUseCustomTheme.IsChecked == false) return;
17371737

1738-
Console.WriteLine("Load theme: " + themefile);
1738+
//Console.WriteLine("Load theme: " + themefile);
17391739

17401740
if (File.Exists(themefile))
17411741
{
@@ -1824,10 +1824,9 @@ private void TxtCustomThemeFile_PreviewKeyDown(object sender, KeyEventArgs e)
18241824
}
18251825
}
18261826

1827-
1827+
private void BtnExploreFolder_Click(object sender, RoutedEventArgs e)
1828+
{
1829+
Tools.LaunchExplorer(System.AppDomain.CurrentDomain.BaseDirectory);
1830+
}
18281831
} // class
18291832
} //namespace
1830-
1831-
1832-
1833-

0 commit comments

Comments
 (0)