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

样式 “恢复全局设置” 或 “跟随系统” 功能请求 #7943

Open
3 of 4 tasks
quinn0823 opened this issue Feb 5, 2025 · 3 comments
Open
3 of 4 tasks
Labels
enhancement New feature or request

Comments

@quinn0823
Copy link

quinn0823 commented Feb 5, 2025

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

  1. 在文件夹内为当前文件夹选择另一个视图后,此后就不再受全局试图设置控制。虽然手动选择可以让视图表面上统一,但是下次更改时仍不会同步更改。需要恢复全局设置功能。
  2. 手动选择浅色 / 深色后,系统样式不在受设备颜色模式控制。恢复跟随系统需要删除本地存储。需要一个跟随系统的模式。

强迫症表示十分恼火

Suggested solution / 实现思路

  1. 问题 1
    • 在当前文件夹视图选项卡中添加一项 “全局设置“。
    • 或:在本地设置中的全局试图设置中,在下拉菜单的右侧添加一个 “应用到所有文件夹“ 按钮,类似于 Windows 文件资源管理器选项。
  2. 问题 2
    • 在本地设置中的颜色模式设置中,添加一个跟随系统的选项。可以使用显示器作为图标。

Additional context / 附件

No response

@quinn0823 quinn0823 added the enhancement New feature or request label Feb 5, 2025
@li-peifeng
Copy link

第二点我自己搞了个自动模式按钮。哈哈,实现还是比较简单的,就是一个按钮,然后清除本地的设置项。

@quinn0823
Copy link
Author

第二点我自己搞了个自动模式按钮。哈哈,实现还是比较简单的,就是一个按钮,然后清除本地的设置项。

其实两个都是本地存储,我记不得名字了。第一个也是把单独设置视图的路径记下来了。

@li-peifeng
Copy link

li-peifeng commented Feb 8, 2025

<Icon
as={Auto}
cursor="pointer"
boxSize="$8"
onClick={() => {
localStorage.removeItem("hope-ui-color-mode")
notificationService.show({
status: "success",
description: t("home.toolbar.local_settings_auto"),
closable: false,
})
setTimeout(function () {
location.reload()
}, 2500)
}}
/>

/src/pages/home/toolbar/LocalSettings.tsx 把这个加到这里,引入图标就行了

import { VsActivateBreakpoints as Auto } from "solid-icons/vs"

提示语你自己加一下就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants