mustcanbedo commented on code in PR #21201: URL: https://github.com/apache/echarts/pull/21201#discussion_r2384430917
########## src/model/Global.ts: ########## @@ -1039,7 +1035,9 @@ function mergeTheme(option: ECUnitOption, theme: ThemeOption): void { if (typeof themeItem === 'object') { option[name] = !option[name] ? clone(themeItem) - : merge(option[name], themeItem, false); + : preserveUserOptions + ? merge(themeItem, option[name], false) // User options have higher priority Review Comment: Upon seeing this topic, my thoughts are about how the system's theme switching could be used in this way. However, it also seems reasonable to expect that after switching the theme, the previous settings should remain consistent. -- 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-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org