-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Align vscode: Set theme attributes to webview body element #10493
Align vscode: Set theme attributes to webview body element #10493
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.
The changes look good to me. I can confirm that the added body attributes are applied correctly and are available during theme selection (using data-vscode-theme-kind="vscode-light"
in the example):
2021-11-30.14-30-09.mp4
@vince-fugnitto Do the changes on getActiveTheme
(in particular the return type) warrant an entry in the breaking changes log?
Yes, changing the return value of a method, even if it is |
Hi @msujew @vince-fugnitto thanks for your comments, |
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, the changes look good to me 👍
- Webview body-property based styling works for the different theme-types/names
- The previously set
activeTheme
class still works correctly
@EstherPerelman Do you mind resolving the conflict in the changelog? Afterwards, I will merge this PR. |
da3deb7
to
85d3766
Compare
Done! thank you |
@msujew why didn't you merge it? there are conflicts again... :( |
@EstherPerelman Sorry, I didn't notice the update on this PR. If you update the conflicting files again, I will merge it today. |
Signed-off-by: Esther Perelman <[email protected]>
6a59842
to
cb7fb70
Compare
rebased... thanks! |
Signed-off-by: Esther Perelman [email protected]
What it does
Align with vscode the ability to set webview style for a specific theme by adding the body data attributes:
data-vscode-theme-name
&data-vscode-theme-kind
(See details here)How to test
Ctrl+shift+p
+Cat coding: Start cat coding session
Preferences
icon ->Color Theme
and navigate between the themesReview checklist
Reminder for reviewers