f99aq8ove's blog

macOSでダークモードが機能しない問題の解決

tag: macos and darkmode
18 January 2026

macOSのダークモードを有効にしているのに、一部のアプリで背景が暗くならない問題に長い間悩まされていたのですが、この問題を解決することができたので、その顛末を記録しておきます。

結論から述べると、NSRequiresAquaSystemAppearanceという設定が原因で、強制的にライトモードが適用されていました。 NSRequiresAquaSystemAppearanceは、アプリがmacOSのシステム外観を無視してライトモードを強制するための設定です。この値が1に設定されていたため、ダークモードが機能しなかったと言うことでした。

まず、現在の設定を確認するために以下のコマンドを実行します。

% defaults find NSRequiresAquaSystemAppearance

Found 1 keys in domain 'Apple Global Domain': {
    NSRequiresAquaSystemAppearance = 1;
}
Found 1 keys in domain 'com.apphousekitchen.aldente-pro': {
    NSRequiresAquaSystemAppearance = 1;
}

問題のある設定を削除します。ここではグローバル設定と特定のアプリ(AlDente Pro)の設定を削除しています。

% defaults delete -g NSRequiresAquaSystemAppearance
% defaults delete com.apphousekitchen.aldente-pro NSRequiresAquaSystemAppearance

削除されたことを確認します。

% defaults find NSRequiresAquaSystemAppearance
2026-01-17 12:17:21.073 defaults[2586:57183] No domain, key, nor value containing 'NSRequiresAquaSystemAppearance'

これにより、対象アプリの背景色がシステムのダークモード設定に連動するようになりました。

Related Posts

Get new posts by email: