Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a new color preference setting that defines a custom color for underlining. #292

Closed
wants to merge 2 commits into from

Conversation

rsmmr
Copy link
Contributor

@rsmmr rsmmr commented Jun 13, 2016

This is on top of the v3.1 branch. I believe I have followed most of the instructions in #286, except for two things:

  • I had to modify [self.colorMap colorForKey:kColorMapUnderline] to account for the fact that we now expect it to return nil in this case. It would normally have returned a hardcoded red. Not so nice, maybe I'm missing something?
  • I only added 1 one of the 3 test images, the non-retina version, as that's what I'm working on here. Not sure if/how I can create a retina version on a non-retina system? Also, I wasn't sure what exactly "run the test suite in Travis" means, so I left that part out. I would appreciate if you could add the missing images for testing when merging.

Please have a look. Feel free to send back to me if there's more to do.

underlining text.

If this is enabled, underlining will always use the set color,
independent of the color that the character itself is displayed with.
@@ -2635,14 +2635,19 @@ - (void)setPreferencesFromAddressBookEntry:(NSDictionary *)aePrefs
_tmuxTitleOutOfSync = YES;
}

BOOL use_underline = [iTermProfilePreferences boolForKey:KEY_USE_UNDERLINE_COLOR inProfile:aDict];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpick: useUnderline instead of use_underline.

@gnachman
Copy link
Owner

Good work! Very close to submittable; I just wrote a few small comments. I'll take care of adding the golden image for Travis.

@rsmmr
Copy link
Contributor Author

rsmmr commented Jun 15, 2016

Updated with your feedback, except for the change to result, see above.

@gnachman
Copy link
Owner

Merged. Thank you!

@rsmmr
Copy link
Contributor Author

rsmmr commented Jun 15, 2016

Thanks for merging and the feedback, and more generally for all your great work on iTerm2!

@rsmmr rsmmr closed this Oct 20, 2022
@josepheiba
Copy link

Hi, is there anyway I can change iTerm2 Colorspace from sRGB to P3 or to my current display's colorspace?

@gnachman
Copy link
Owner

gnachman commented Feb 5, 2024

@josepheiba The beta uses p3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants