zyraxi19 downloadsApply native Windows 11 Mica, Mica Alt, or Acrylic window materials and sync the system accent color palette for the Fluent 2 theme.
为 Obsidian 桌面端(Windows 11)提供零依赖的原生系统特性增强,是 Fluent 2 主题的官方配套插件。
BrowserWindow.setBackgroundMaterial() API,支持一键切换以下材质:window-open 与 Electron browser-window-created 事件,自动为 Obsidian 1.15+ 的独立「设置」窗口及弹出笔记窗口套用云母材质,并注入 body.is-translucent 与 body.fluent2-popout-mica 状态类。AccentColor 通常会回退为默认蓝。本插件直接通过只读 reg.exe 查询 HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent 中的 AccentPalette(32 字节 7 阶完整色板),并以 DWM AccentColor 与 Electron systemPreferences.getAccentColor() 作为逐级回退。Dark1(主色)、Dark2(悬停)、Dark3(按下)。Light2(主色)、Light3(悬停)、Light1(按下)。--f2-win-accent-*、--f2-win-on-accent-*)及可选的 Obsidian 原生变量(--accent-h、--accent-s、--accent-l)同步至主窗口、弹出笔记窗口与独立设置窗口;支持切换回窗口自动检测、定时轮询与手动命令同步。1.5.0 及以上(需包含支持 setBackgroundMaterial() 的 Electron 25+ 内核)。.obsidian/plugins/fluent-windows-native/ 目录下(文件夹名需与 manifest.json 中的 "id": "fluent-windows-native" 一致):git clone https://github.com/zyraxi21/fluent2-windows-native.git fluent-windows-native
随后打开 设置 → 第三方插件,点击刷新图标并启用 Fluent 2 Windows Native。Mica、Mica Alt / Tabbed、Acrylic 与关闭之间自由切换。--accent-h/s/l):让第三方插件及其他原生元素同步跟随 Windows 11 系统主题色。0 可关闭定时轮询)。Fluent 2 Windows Native: 立即同步 Windows 11 材质与系统主题色Fluent 2 Windows Native: 切换窗口材质(在 Mica、Tabbed、Acrylic、None 之间循环切换)BrowserWindow.setBackgroundMaterial() 开启 Windows 11 原生 Mica / Acrylic 后,页面内元素的 CSS backdrop-filter 高斯模糊会失效。搭配 Fluent 2 主题使用时,右键菜单、命令面板与弹窗会自动回退为接近不透明的亚克力底色,保证清晰可读。本插件使用 Node.js child_process.execFile("reg.exe", ["query", ...]) 对 Windows 用户注册表中的主题色键(HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent\AccentPalette 与 HKCU\Software\Microsoft\Windows\DWM\AccentColor)执行只读查询,所有参数均为硬编码静态字符串,不启动 Shell、不修改任何系统设置、不发起任何网络请求。
body.is-translucent、body.fluent2-popout-mica(仅次级窗口)、body.fluent2-win-accent-synced。--f2-win-accent-light3、--f2-win-accent-light2、--f2-win-accent-light1、--f2-win-accent-base、--f2-win-accent-dark1、--f2-win-accent-dark2、--f2-win-accent-dark3、--f2-win-on-accent-light、--f2-win-on-accent-dark。A zero-dependency Windows 11 companion plugin for Obsidian Desktop that brings native Mica / Mica Alt / Acrylic window backdrop materials and live 7-shade Windows 11 Personalization accent color synchronization to Obsidian. Designed for the Fluent 2 theme and compatible with any translucent-ready theme.
BrowserWindow.setBackgroundMaterial() API to apply Mica, Mica Alt (Tabbed), or Acrylic to the main window, pop-out note windows, and Obsidian 1.15+ standalone Settings windows.AccentPalette from Windows 11 Personalization (with automatic WinUI 3 Light/Dark contrast mapping: Dark1–Dark3 in Light mode, Light1–Light3 in Dark mode) and syncs CSS custom properties across all open windows.1.5.0 or later.main.js, manifest.json, and styles.css from the latest GitHub Release (or clone this repository) into <your-vault>/.obsidian/plugins/fluent-windows-native/:git clone https://github.com/zyraxi21/fluent2-windows-native.git fluent-windows-native
Reload Community Plugins in Obsidian settings and toggle Fluent 2 Windows Native on.Mica, Mica Alt / Tabbed, Acrylic, or None) and optionally enable Mica for pop-out and standalone Settings windows.Ctrl + P) anytime to run:BrowserWindow.setBackgroundMaterial(), CSS backdrop-filter blur stops rendering while native Windows 11 materials are active. When paired with the Fluent 2 theme, context menus, the Command Palette, and popovers automatically fall back to a near-opaque acrylic surface for readability.This plugin uses child_process.execFile("reg.exe", ["query", ...]) with hardcoded, read-only arguments solely to read the current user's Windows 11 accent color registry values (AccentPalette and AccentColor). It never invokes a shell, never writes to the registry or filesystem outside Obsidian plugin settings, and makes zero network requests.
Licensed under GNU General Public License v3.0.