mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Added MMTexturedWindow user default
Enable MMTexturedWindow to get textured window on Tiger (Leopard always uses a textured window).
This commit is contained in:
@@ -112,6 +112,7 @@ typedef struct
|
||||
[NSNumber numberWithBool:NO], MMAtsuiRendererKey,
|
||||
[NSNumber numberWithInt:MMUntitledWindowAlways],
|
||||
MMUntitledWindowKey,
|
||||
[NSNumber numberWithBool:NO], MMTexturedWindowKey,
|
||||
nil];
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] registerDefaults:dict];
|
||||
|
||||
@@ -128,7 +128,8 @@
|
||||
|
||||
// Use textured background on Leopard or later (skip the 'if' on Tiger for
|
||||
// polished metal window).
|
||||
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_4)
|
||||
if ([[NSUserDefaults standardUserDefaults] boolForKey:MMTexturedWindowKey]
|
||||
|| (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_4))
|
||||
styleMask |= NSTexturedBackgroundWindowMask;
|
||||
|
||||
// NOTE: The content rect is only used the very first time MacVim is
|
||||
|
||||
@@ -218,6 +218,7 @@ extern NSString *MMNoFontSubstitutionKey;
|
||||
extern NSString *MMLoginShellKey;
|
||||
extern NSString *MMAtsuiRendererKey;
|
||||
extern NSString *MMUntitledWindowKey;
|
||||
extern NSString *MMTexturedWindowKey;
|
||||
|
||||
// Enum for MMUntitledWindowKey
|
||||
enum {
|
||||
|
||||
@@ -99,6 +99,7 @@ NSString *MMNoFontSubstitutionKey = @"MMNoFontSubstitution";
|
||||
NSString *MMLoginShellKey = @"MMLoginShell";
|
||||
NSString *MMAtsuiRendererKey = @"MMAtsuiRenderer";
|
||||
NSString *MMUntitledWindowKey = @"MMUntitledWindow";
|
||||
NSString *MMTexturedWindowKey = @"MMTexturedWindow";
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user