-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add inactive selection color, tweak selection colors
This patch changes the selection color to *not* red, and adds a new SELECTED_TEXT_INACTIVE_BACKGROUND_COLOR theme item; it also now draws the selection with that color when the text is not focused. This requires a bit of a hack because of how focus is working in the textbox; the TextBox has focus, not the InputComponent, but the InputComponent is responsible for drawing the selection rects, so we need to explicitly pass down changes in focus state. C'est la vie. This also renames SELECTION_COLOR to SELECTED_TEXT_BACKGROUND_COLOR, for clarity & symmetry.
- Loading branch information
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters