-
Notifications
You must be signed in to change notification settings - Fork 147
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
#470 Change default find highlight color #481
base: master
Are you sure you want to change the base?
#470 Change default find highlight color #481
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! Overall looks good. but you shouldn't have the issue link as the commit message. Instead, describe what you did, and then put the link in the commit message body instead.
@@ -82,7 +93,8 @@ extension Theme { | |||
let caret = NSColor(jsonRgbaColor: json["caret"] as? [String: Any] ?? [:]) | |||
let line_highlight = NSColor(jsonRgbaColor: json["line_highlight"] as? [String: Any] ?? [:]) | |||
|
|||
let find_highlight: NSColor? = NSColor(jsonRgbaColor: json["find_highlight"] as? [String: Any] ?? [:]) | |||
// Use default find highlight color instead of theme's find_highlight value | |||
let find_highlight: NSColor? = Theme.defaultFindHighlightColor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if the theme specifies a color for find highlights, then it's ok to use that color instead of forcing the default yellow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'm also bit not clear on expected behavior. I will wait for @cmyr's clarification #470 (comment)
Issue: xi-editor#470 Find highlight color defaults to red color instead it should use system's default find highlight color(NSColor.findHighlightColor) Fix: * Theme has new static variable representing default find highlight color * Other find highlight colors are generated from the hue of default find highlight color * Find highlight color specified by xi-editor on theme_changed event is ignored
3ad5d49
to
df6d765
Compare
Updated the commit subject and message. |
Summary
Issue:
#470
Find highlight color defaults to red color instead it should use system's default find highlight color(NSColor.findHighlightColor)
Fix:
Related Issues
closes #470
Checklist
Example:
Review Checklist