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

Fix-76141 Add border around image in image preview #76387

Merged
merged 2 commits into from
Jul 3, 2019

Conversation

skprabhanjan
Copy link
Contributor

@skprabhanjan skprabhanjan commented Jul 1, 2019

@mjbvz , Added the border property accordingly to fix #76141 and kept it default as I could not find the panel color that was mentioned in this comment

I will change it if you can provide me the color code.

This is how it looks for default border 1px solid

image

@dbaeumer
Copy link
Member

dbaeumer commented Jul 1, 2019

@bpasero FYI. Could be you as well :-)

@mjbvz mjbvz requested a review from aeschli July 2, 2019 22:48
@mjbvz
Copy link
Collaborator

mjbvz commented Jul 2, 2019

Thanks @skprabhanjan.

We probably want to use a border color from one of our existing theme colors, such as panel.border perhaps. Adding @aeschli for ideas on which theme color to use.

Here's an example of how write a style that uses a theme color:

const backgroundColor = theme.getColor(TERMINAL_BACKGROUND_COLOR);

Just add a call to registerThemingParticipant in resourceViewer and then move the css border rule into a string within it

@aeschli
Copy link
Contributor

aeschli commented Jul 3, 2019

reusing panel.border is not really 100% proper, but fine with me. You could also add a new color: imagePreview.border

@skprabhanjan
Copy link
Contributor Author

skprabhanjan commented Jul 3, 2019

@mjbvz and @aeschli
Added imagePreview.border which has same values as panel.border and used that in registerThemingParticipant in resourceViewer .
Please check and review this :)

PS : This is how it looks now.

image

@mjbvz mjbvz added this to the July 2019 milestone Jul 3, 2019
@mjbvz mjbvz merged commit bc7f5a7 into microsoft:master Jul 3, 2019
@mjbvz
Copy link
Collaborator

mjbvz commented Jul 3, 2019

Thanks! This will be in the next VS Code 1.37 insiders build and is scheduled to go out in the July release

@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.

Add border around image in image preview
5 participants