Skip to content

Commit

Permalink
Rename constant KEY_DEFAULT_BG_ALPHA_ONLY
Browse files Browse the repository at this point in the history
to `KEY_TRANSPARENCY_AFFECTS_ONLY_DEFAULT_BACKGROUND_COLOR`.

As per request: #277 (comment)
  • Loading branch information
Brennan committed Apr 22, 2016
1 parent b376375 commit 38c38f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sources/ITAddressBookMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
// Terminal
#define KEY_DISABLE_WINDOW_RESIZING @"Disable Window Resizing"
#define KEY_PREVENT_TAB @"Prevent Opening in a Tab"
#define KEY_DEFAULT_BG_ALPHA_ONLY @"Only The Default BG Color Uses Transparency"
#define KEY_TRANSPARENCY_AFFECTS_ONLY_DEFAULT_BACKGROUND_COLOR @"Only The Default BG Color Uses Transparency"
#define KEY_OPEN_TOOLBELT @"Open Toolbelt"
#define KEY_HIDE_AFTER_OPENING @"Hide After Opening"
#define KEY_SYNC_TITLE @"Sync Title"
Expand Down
4 changes: 2 additions & 2 deletions sources/PTYSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ - (BOOL)setScreenSize:(NSRect)aRect parent:(id<WindowControllerInterface>)parent
const float theBlend =
[_profile objectForKey:KEY_BLEND] ? [[_profile objectForKey:KEY_BLEND] floatValue] : 0.5;
[self setBlend:theBlend];
[self setTransparencyAffectsOnlyDefaultBackgroundColor:[[_profile objectForKey:KEY_DEFAULT_BG_ALPHA_ONLY] boolValue]];
[self setTransparencyAffectsOnlyDefaultBackgroundColor:[[_profile objectForKey:KEY_TRANSPARENCY_AFFECTS_ONLY_DEFAULT_BACKGROUND_COLOR] boolValue]];

[_wrapper addSubview:_textview];
[_textview setFrame:NSMakeRect(0, VMARGIN, aSize.width, aSize.height - VMARGIN)];
Expand Down Expand Up @@ -2647,7 +2647,7 @@ - (void)setPreferencesFromAddressBookEntry:(NSDictionary *)aePrefs
// transparency
[self setTransparency:[iTermProfilePreferences floatForKey:KEY_TRANSPARENCY inProfile:aDict]];
[self setBlend:[iTermProfilePreferences floatForKey:KEY_BLEND inProfile:aDict]];
[self setTransparencyAffectsOnlyDefaultBackgroundColor:[iTermProfilePreferences floatForKey:KEY_DEFAULT_BG_ALPHA_ONLY inProfile:aDict]];
[self setTransparencyAffectsOnlyDefaultBackgroundColor:[iTermProfilePreferences floatForKey:KEY_TRANSPARENCY_AFFECTS_ONLY_DEFAULT_BACKGROUND_COLOR inProfile:aDict]];

// bold
[self setUseBoldFont:[iTermProfilePreferences boolForKey:KEY_USE_BOLD_FONT
Expand Down
2 changes: 1 addition & 1 deletion sources/ProfilesWindowPreferencesViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ - (void)awakeFromNib {
type:kPreferenceInfoTypeCheckbox];

info = [self defineControl:_transparencyAffectsOnlyDefaultBackgroundColor
key:KEY_DEFAULT_BG_ALPHA_ONLY
key:KEY_TRANSPARENCY_AFFECTS_ONLY_DEFAULT_BACKGROUND_COLOR
type:kPreferenceInfoTypeCheckbox];
info.observer = ^() { _transparencyAffectsOnlyDefaultBackgroundColor.enabled = (_transparency.doubleValue > 0); };

Expand Down
2 changes: 1 addition & 1 deletion sources/iTermProfilePreferences.m
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ + (NSDictionary *)defaultValueMap {
KEY_SYNC_TITLE: @NO,
KEY_DISABLE_WINDOW_RESIZING: @NO,
KEY_PREVENT_TAB: @NO,
KEY_DEFAULT_BG_ALPHA_ONLY: @NO,
KEY_TRANSPARENCY_AFFECTS_ONLY_DEFAULT_BACKGROUND_COLOR: @NO,
KEY_OPEN_TOOLBELT: @NO,
KEY_ASCII_ANTI_ALIASED: @NO,
KEY_NONASCII_ANTI_ALIASED: @NO,
Expand Down

0 comments on commit 38c38f7

Please sign in to comment.