Skip to content
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

pref: 优化修改主题色的逻辑 #428

Merged

Conversation

hzgotb
Copy link
Contributor

@hzgotb hzgotb commented Feb 20, 2023

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

setting组件和setting store 有相同的逻辑代码,简化了一下。

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2023

完成

@timi137137
Copy link
Collaborator

@uyarn LGTM,but not test

Copy link
Collaborator

@uyarn uyarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有一点需要再修改
改动影响了明亮和暗黑模式的色阶逻辑 可以看出明亮和暗黑用的是一套色阶
light mode
image
dark mode
image

可以对比下现在线上的 暗黑色阶是在明亮色阶的基础上做反转处理过的

@hzgotb
Copy link
Contributor Author

hzgotb commented Feb 22, 2023

ok。我看一下

@hzgotb hzgotb force-pushed the feature/optimize-modify-theme-color-logic branch from c916c99 to 975b845 Compare February 22, 2023 08:52
@hzgotb
Copy link
Contributor Author

hzgotb commented Feb 22, 2023

@uyarn 可以了。因为对颜色做了计算缓存,所以在切换其他模式的时候判断存在色阶所以不再计算。我改了一下判断的key

@hzgotb hzgotb changed the title fix: 优化修改主题色的逻辑 pref: 优化修改主题色的逻辑 Feb 22, 2023
@uyarn uyarn merged commit 44cca54 into Tencent:develop Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants