Skip to content

【功能建议】为「工作区背景」增加在线壁纸市场(Wallhaven 公开图库,无需 API key) #624

Description

@user-A100

功能建议 / Feature Request

现状 / Current behavior

「设置 → 外观 → 工作区背景」已经支持为整个工作区铺一张背景图(支持 PNG/JPEG/WebP/GIF,可调遮罩不透明度和模糊),体验很好。但图片只能从本地文件选择,想找一张合适的壁纸需要自己先去别的网站搜、下载、再上传,链路比较长。

设置 → Appearance → Workspace Background already supports a workspace-wide background image (PNG/JPEG/WebP/GIF, with mask opacity & blur controls). However images can only be picked from local files — there is no way to discover/browse wallpapers inside the app.

建议 / Proposal

在工作区背景的选择弹窗里增加一个「壁纸市场」tab(与现有本地选择并列),浏览/搜索公开图库并一键下载设为背景。

Add a "Wallpaper Market" tab next to the local file picker, to browse/search a public wallpaper gallery and set an image as background in one click.

图源建议选 Wallhaven 公开 API(https://wallhaven.cc/api/v1/search,理由:

  • 无需账号、无需 API key 即可匿名搜索 SFW 内容(Unsplash/Pexels 都需要申请开发者 key,会拉高设置成本)
  • 缩略图 CDN 与原图都齐全,搜索/分类/分页参数完善
  • 分类可以映射为:全部 / 风景(general) / 二次元(anime) / 人物(people)

已知权衡 / Known trade-offs

  • Wallhaven 匿名请求有速率限制(429):展示错误文案 + 重试即可,不影响本地库
  • 缩略图 CDN 偶发失败:卡片显示占位图即可

价值 / Value

把「找壁纸 → 下载 → 上传」三步收敛成「搜索 → 点一下」,且完全复用现有的背景图渲染管线(遮罩/模糊/不透明度),改动面看起来主要在选择弹窗和少量 Rust 命令。


English summary: Please consider adding an online "Wallpaper Market" tab to the Workspace Background picker, powered by the key-free Wallhaven public search API (SFW-only, backend-proxied search, domain-allowlisted download into the existing managed backgrounds folder). Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions