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

refactor: refactor theme and logo switching functionality #5015

Merged
merged 6 commits into from
May 22, 2024

Conversation

LIlGG
Copy link
Contributor

@LIlGG LIlGG commented May 14, 2024

What this PR does / why we need it?

重构了主题切换,使其可以支持更多主题。

Summary of your change

  1. 重构主题切换功能,将通过 ts 代码引入的基准色改为使用 css 文件引入。
  2. 将 logo 改为 svg,可以通过主题来自动切换颜色。当专业版用户自定义 logo 之后,此功能失效。
  3. 升级专业版的边框改为暗金配色。
  4. 升级专业版时,将自动变为暗金主题,直到用户手动切换为其他主题。
  5. 重构了获取 xpack 设置代码。

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.
None

Copy link

f2c-ci-robot bot commented May 14, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign wanghe-fit2cloud for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wanghe-fit2cloud wanghe-fit2cloud merged commit 63c3300 into 1Panel-dev:dev May 22, 2024
0 of 3 checks passed
@LIlGG LIlGG deleted the feat/dark-gold-theme branch May 23, 2024 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants