You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/06/06 04:00:48 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #18716: [Feature] 动态主题切换需求,实现思路(CSS var)

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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org