diff --git a/TwVideoUp/App.xaml.cs b/TwVideoUp/App.xaml.cs
index d56875b..f5c993a 100644
--- a/TwVideoUp/App.xaml.cs
+++ b/TwVideoUp/App.xaml.cs
@@ -28,6 +28,7 @@ private void App_OnStartup(object sender, StartupEventArgs e)
DispatcherUnhandledException += App_DisatacherUnhandledException;
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
+ SetAeroLiteStyle();
var window = new MainWindow();
@@ -42,6 +43,23 @@ private void App_OnStartup(object sender, StartupEventArgs e)
window.Show();
}
+ ///
+ /// Windows 7 等のスタイルをAero Liteに設定します。
+ ///
+ private void SetAeroLiteStyle()
+ {
+ var version = Environment.OSVersion.Version;
+ if (version.Major > 6 || version.Minor > 1) {
+ return;
+ }
+ var theme = new ResourceDictionary()
+ {
+ Source = new Uri(@"/PresentationFramework.Aero2;component/themes/aero2.normalcolor.xaml", UriKind.Relative)
+ };
+ Resources.MergedDictionaries.Add(theme);
+ }
+
+
///
/// アプリケーション終了時のイベントハンドラ
///
diff --git a/TwVideoUp/Core/Tools/PresentationFramework.Aero2.dll b/TwVideoUp/Core/Tools/PresentationFramework.Aero2.dll
new file mode 100644
index 0000000..ac5288c
Binary files /dev/null and b/TwVideoUp/Core/Tools/PresentationFramework.Aero2.dll differ
diff --git a/TwVideoUp/TwVideoUp.csproj b/TwVideoUp/TwVideoUp.csproj
index dcba4bd..56ecf29 100644
--- a/TwVideoUp/TwVideoUp.csproj
+++ b/TwVideoUp/TwVideoUp.csproj
@@ -28,6 +28,7 @@
1.0.0.%2a
false
true
+
AnyCPU
@@ -85,6 +86,12 @@
..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll
+
+ True
+
+
+ True
+
@@ -195,6 +202,9 @@
+
+
+