1 コミット
作成者 SHA1 メッセージ 日付
routersys b01ea9159a ポップアップウィンドウへのDWMテーマ自動適用機能の追加
IWindowThemeServiceインターフェースを新規作成し、Bind(Window)メソッドを定義しました。
WindowThemeServiceクラスを実装し、SourceInitializedおよびLoadedイベントにフックしてウィンドウ生成時に自動でテーマを適用するようにしました。
テーマ適用はWindows11以降のみを対象とし、DWM APIのDwmSetWindowAttributeを用いてキャプションバー・ボーダー・テキストの色をWPFのシステムカラーリソースから取得して設定しました。
WindowThemeRegistry静的クラスを導入し、Null Objectパターンにより未登録時でも安全に動作するNullWindowThemeServiceをデフォルト実装として保持するようにしました。
RegisterメソッドはInterlocked.Exchangeでスレッドセーフな差し替えを保証するようにしました。
PluginHostの初期化処理にてWindowThemeServiceをWindowThemeRegistryへ登録し、GenerationPopupView生成直後にWindowThemeRegistry.Bindを呼び出してポップアップウィンドウをテーマサービスに紐付けるようにしました。
2026-03-25 20:19:00 +09:00
5個のファイルの変更、2行の追加、49行の削除

検索条件に一致するファイルはありません

+1 -45
ファイルの表示
@@ -13,8 +13,7 @@ internal sealed class VideoCacheDatabase : IVideoCacheDatabase
private const int FormatVersion = 1;
private const int HeaderSize = 32;
private const int HeaderCrcOffset = 16;
private const string OldDbFileName = "zerodiskproxy.vdb";
private const string DbFileName = "proxyforge.vdb";
private const string DbFileName = "zerodiskproxy.vdb";
private const string BackupSuffix = ".bak";
private const string TempSuffix = ".tmp";
@@ -34,49 +33,6 @@ internal sealed class VideoCacheDatabase : IVideoCacheDatabase
Directory.CreateDirectory(_cacheDirectory);
_dbPath = Path.Combine(_cacheDirectory, DbFileName);
_backupPath = _dbPath + BackupSuffix;
var oldDbPath = Path.Combine(_cacheDirectory, OldDbFileName);
if (File.Exists(oldDbPath) && !File.Exists(_dbPath))
{
Debug.WriteLine("[VideoCacheDatabase] Starting robust data migration to ProxyForge format.");
try
{
var migrationTempPath = _dbPath + ".migration.tmp";
File.Copy(oldDbPath, migrationTempPath, true);
var oldBackupPath = oldDbPath + BackupSuffix;
var migrationBackupTempPath = _backupPath + ".migration.tmp";
var hasBackup = File.Exists(oldBackupPath);
if (hasBackup)
{
File.Copy(oldBackupPath, migrationBackupTempPath, true);
}
File.Move(migrationTempPath, _dbPath, true);
if (hasBackup)
{
File.Move(migrationBackupTempPath, _backupPath, true);
}
File.Delete(oldDbPath);
if (hasBackup)
{
File.Delete(oldBackupPath);
}
var oldTempPath = oldDbPath + TempSuffix;
if (File.Exists(oldTempPath))
{
File.Delete(oldTempPath);
}
Debug.WriteLine("[VideoCacheDatabase] Migration completed successfully. Legacy files removed.");
}
catch (Exception ex)
{
Debug.WriteLine(string.Concat("[VideoCacheDatabase] Migration failed: ", ex.Message));
}
}
_diskStore = new VideoCacheDiskStore(_cacheDirectory);
Span<byte> hashBuf = stackalloc byte[32];
+1 -1
ファイルの表示
@@ -5,7 +5,7 @@
<UseWPF>true</UseWPF>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.0.1</Version>
<Version>1.0.0</Version>
<Platforms>AnyCPU;x64;x64</Platforms>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
-2
ファイルの表示
@@ -8,8 +8,6 @@ YukkuriMovieMaker4 (YMM4) 上で動作する**動画プロキシ自動生成プ
大容量の動画ファイルから低解像度プロキシを自動生成し、編集中のプレビュー負荷を軽減します。
プロキシはディスクにキャッシュされ、動画出力(エクスポート)時にはオリジナル解像度に自動で切り替わるため、最終出力の品質に影響を与えません。
![Image](https://github.com/routersys/YMM4-ProxyForge/blob/main/docs/ProxyForge.png)
## 概要
本プラグインは、YMM4の映像ファイルソースとして動作します。
サブモジュール YukkuriMovieMaker.Generator が 9d67caf6e6 から削除されました。
バイナリ
ファイルの表示
バイナリファイルは表示されません。

変更前

幅:  |  高さ:  |  サイズ: 519 KiB