Skip to content

fix: style error and icon#629

Open
chengcheng84 wants to merge 5 commits into
docmirror:masterfrom
chengcheng84:fix/ui-eye
Open

fix: style error and icon#629
chengcheng84 wants to merge 5 commits into
docmirror:masterfrom
chengcheng84:fix/ui-eye

Conversation

@chengcheng84
Copy link
Copy Markdown
Contributor

@chengcheng84 chengcheng84 commented May 16, 2026

Ⅰ. 描述此PR的作用:

修复在 #599 的一些样式,统一使用antd 4 进行dark实现,和fix一个icon

Ⅱ. 此PR修复了哪个issue吗?

None

Ⅲ. 界面变化截屏

image

@chengcheng84 chengcheng84 changed the title Fix/UI eye fix: style error and icon May 16, 2026
@cute-omega cute-omega requested a review from Copilot May 16, 2026 14:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR cleans up dark theme styling for the GUI after the Vue 3 / antd v4 migration (#599). Instead of overriding antd component styles manually in SCSS, it leans on antd's built-in theme.darkAlgorithm via <a-config-provider :theme="themeConfig">, keeps only a few app-specific dark overrides (sider, labels, big-button, pre-release banner/tag), and fixes the experiment icon in the FreeEye plugin page by switching to the v4 ExperimentOutlined component.

Changes:

  • Configure antd v4 dark/light algorithm and tokens via a-config-provider in App.vue, and remove the :theme prop on a-layout-sider in favor of an inline background style.
  • Strip most antd component overrides from dark.scss, replace the sider background rule, add .big-button and .pre-release-* dark variants, and remove the unused $dark-input variable.
  • Replace the legacy icon="experiment" string prop on the FreeEye run button with the imported <ExperimentOutlined/> component.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
packages/gui/src/view/App.vue Adds themeConfig computed wired to antd v4 algorithm/tokens; replaces sider :theme with inline background style.
packages/gui/src/view/style/theme/dark.scss Removes many antd-specific dark overrides; adds sider/label/big-button/pre-release dark rules.
packages/gui/src/view/style/index.scss Adds a trailing newline only.
packages/gui/src/view/pages/plugin/free-eye.vue Uses ExperimentOutlined icon component instead of the deprecated icon="experiment" string prop.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/gui/src/view/pages/plugin/free-eye.vue Outdated
Comment thread packages/gui/src/view/style/theme/dark.scss Outdated
Comment thread packages/gui/src/view/App.vue Outdated
<div class="ds_layout" :class="themeClass">
<a-layout>
<a-layout-sider :theme="theme" style="overflow-y: auto">
<a-layout-sider :style="{ background: theme === 'dark' ? '#1e1f22' : '#fff', overflowY: 'auto' }">
Comment thread packages/gui/src/view/App.vue Outdated
Comment thread packages/gui/src/view/App.vue Outdated
Comment thread packages/gui/src/view/style/theme/dark.scss Outdated
@cute-omega
Copy link
Copy Markdown
Collaborator

cute-omega commented May 16, 2026

完成了?


字体变成ubuntu mono了?边栏的鼠标悬浮特效挺好看的
不过确实是上个pr引入的ip address invalid问题

@chengcheng84
Copy link
Copy Markdown
Contributor Author

根据 copilot 的 review 包括Heavy use of !important等,统一使用variables.scss

@cute-omega
Copy link
Copy Markdown
Collaborator

image image

这都啥

另外虽然ip address invalid的问题没修就合并是我当时脑子不大清楚,但反正现在修好了

最后,大规模重构必须更加谨慎。动辄成百上千行代码变更很容易翻车

copilot的问题也不是每个都得管,但是我指出的都要弄好。搞完叫我

@chengcheng84
Copy link
Copy Markdown
Contributor Author

chengcheng84 commented May 22, 2026

image

好像不会吧,这个应该是 #631

@chengcheng84
Copy link
Copy Markdown
Contributor Author

@cute-omega master的CI

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