echarts-bot[bot] commented on issue #18716:
URL: https://github.com/apache/echarts/issues/18716#issuecomment-1577867859

   @adoin It seems you are not using English, I've helped translate the content 
automatically. To make your issue understood by more people and get helped, 
we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Feature] Dynamic theme switching requirements, implementation ideas (CSS 
var)
   
   **BODY**
   
   ### What problem does this feature solve?
   
   Referring to a lot of issues, I know that there are some problems with theme 
switching.
   Provide an idea here and hope to have practice in this area.
   In svg mode, css variables can be used to fill the color i.o. 
fill="var(--primry-1-color)".
   In canvas mode, only: 
getComputedStyle(context.canvas).getPropertyValue("--primry-1-color"), and then 
perform subsequent drawing
   In this way, the theme file can be cssized, and layer rendering and 
canvas/svg rendering can be opened up.
   In order to achieve requirements such as theme switching and local state 
changes
   
   
   
   ### What does the proposed API look like?
   
   as above
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to