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

improve handling fallback of theme colors in terminal #57100

Merged

Conversation

ParkourKarthik
Copy link
Contributor

@ParkourKarthik ParkourKarthik commented Aug 23, 2018

This closes #57038

@Tyriar
Yet to change defaults for TERMINAL_BORDER_COLOR.
I am not able to relate it to any appropriate editor colors (though there are editorWidgetBorder, editorHoverBorder, etc).

Should I consider hard-coding the defaults same as PANEL_BORDER?
https://github.com/Microsoft/vscode/blob/07618102efdd63f09949ce54c161e7fd2a954ee8/src/vs/workbench/common/theme.ts#L184-L188

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

@ParkourKarthik why can't PANEL_BORDER be imported like editorBackground?

We also want to remove the fallback code here as it's handled when the color is registered now:

https://github.com/Microsoft/vscode/blob/f7b8c9b7df54f23b02fb36ba0cb12a5a96c8c4e9/src/vs/workbench/parts/terminal/electron-browser/terminalPanel.ts#L313-L316

@ParkourKarthik
Copy link
Contributor Author

Yep, we could import it. Wanted to make sure that it is the correct one. I'll remove the respective fallback code as well.

@ParkourKarthik
Copy link
Contributor Author

@Tyriar
Could you please review and close this PR.

@Tyriar Tyriar added this to the September 2018 milestone Aug 30, 2018
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

Looks good, will merge after the release is branched off. Thanks!

@Tyriar Tyriar merged commit 5483440 into microsoft:master Sep 11, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve handling of fallback theme colors in terminal
2 participants