You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webview: allow me to adjust my content based on theme #5737
I am providing content to the webview via my extension. The user can switch between dark and light theme so I would like my content to adjust based on the selected theme.
I think the simplest solution would be to just set a CSS class on the container I am hosted in that reflects the theme that is being used (light or dark).
theme so I would like my content to adjust based on the selected theme.
that sounds like an event but I don't know if we need that. By default, some styles where defined in the * selector. I have know a change where those styles are applied to the body only but its values come from corresponding variables, like so:
Activity
jrieken commentedon May 12, 2016
that sounds like an event but I don't know if we need that. By default, some styles where defined in the
*selector. I have know a change where those styles are applied to the body only but its values come from corresponding variables, like so:Unsure if that's what you want. Is it that you need to set more styles and need different variables?
move webview into its own source file, use css variables for webview …
bpasero commentedon May 12, 2016
Given that Kai Maetzel (@kieferrm) took the markdown extension over, maybe he can chime in how he expects support for dark and light theme to work.
jrieken commentedon May 17, 2016
Kai Maetzel (@kieferrm) Can you enlighten me with what you are planning there?
jrieken commentedon May 20, 2016
I think we are good here