mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 01:36:31 +02:00
Added theming support
This commit is contained in:
@@ -13,8 +13,12 @@ using ImageResizer.Views;
|
||||
|
||||
namespace ImageResizer
|
||||
{
|
||||
#pragma warning disable CA1001 // Types that own disposable fields should be disposable
|
||||
public partial class App : Application
|
||||
#pragma warning restore CA1001 // Types that own disposable fields should be disposable
|
||||
{
|
||||
private ThemeManager _themeManager;
|
||||
|
||||
static App()
|
||||
{
|
||||
Console.InputEncoding = Encoding.Unicode;
|
||||
@@ -28,6 +32,8 @@ namespace ImageResizer
|
||||
var mainWindow = new MainWindow(new MainViewModel(batch, Settings.Default));
|
||||
mainWindow.Show();
|
||||
|
||||
_themeManager = new ThemeManager(this);
|
||||
|
||||
// Temporary workaround for issue #1273
|
||||
BecomeForegroundWindow(new System.Windows.Interop.WindowInteropHelper(mainWindow).Handle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user