Skip to content

A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.

feat: add Windows 10 support and update documentation for compatibility

CristianOlivera110be03aa23a0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c5cb1db..2882610 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,19 @@ copia la sección de la versión que se publica a la release de GitHub.
## [Unreleased]
+### English
+
+- Windows 10 support (version 1903 or later). The dock used to close right
+ after starting there. On Windows 10 the dock and menu bar are solid instead
+ of glass, since it has no backdrop blur for desktop apps.
+
+### Español
+
+- Soporte para Windows 10 (versión 1903 o posterior). Antes el dock se cerraba
+ nada más arrancar ahí. En Windows 10 el dock y la barra superior son sólidos
+ en lugar de cristal, porque no ofrece desenfoque de fondo a las apps de
+ escritorio.
+
## [0.1.5]
### English
diff --git a/README.es.md b/README.es.md
index e1fd281..f2a795d 100644
--- a/README.es.md
+++ b/README.es.md
@@ -2,7 +2,7 @@
<img width="50%" alt="Muelle" src="https://github.com/user-attachments/assets/8c715a53-a0df-4780-9dd4-09ce3ccd9043" />
- **Un dock ligero, inspirado en macOS, para Windows 11.**
+ **Un dock ligero, inspirado en macOS, para Windows 10 y 11.**
Ampliación suave, miniaturas de ventanas en vivo y un efecto genio opcional al minimizar.
@@ -10,7 +10,7 @@
</div>
Muelle sustituye la barra de tareas de Windows por un dock personalizable y una
-barra superior opcional al estilo de macOS. Está hecho para Windows 11 y sigue
+barra superior opcional al estilo de macOS. Está hecho para Windows 10 y 11 y sigue
en desarrollo activo.
<img width="1919" height="1008" alt="Muelle en Windows 11" src="https://github.com/user-attachments/assets/b6c44203-c425-43fb-adf5-e2edd2f02257" />
@@ -41,7 +41,7 @@ dibujar su animación; las devuelve al cerrarse.
## Instalar
**[Descargar Muelle-Setup.exe](https://github.com/crafter-station/Muelle/releases/latest/download/Muelle-Setup.exe)**
-(Windows 11, 64 bits) o elige una versión en
+(Windows 10 versión 1903 o posterior, o Windows 11; 64 bits) o elige una versión en
[Releases](https://github.com/crafter-station/Muelle/releases).
1. Ejecuta `Muelle-Setup.exe`. Se instala solo para tu usuario: sin permisos de
@@ -63,7 +63,9 @@ instaladas → Muelle → Desinstalar; la barra vuelve y no queda nada en marcha
### Requisitos
-- Windows 11
+- Windows 10 (versión 1903 o posterior) o Windows 11. En Windows 10 el dock y la
+ barra superior son sólidos en lugar de cristal: Windows 10 no ofrece desenfoque
+ de fondo a las apps de escritorio.
- Rust con la toolchain MSVC y las Build Tools de C++ de Visual Studio
- Node.js y pnpm
@@ -148,7 +150,8 @@ descarga y la actualización.
## Estado
-El dock, Ajustes y el instalador funcionan en Windows 11. Algunas funciones e
+El dock, Ajustes y el instalador funcionan en Windows 11. El soporte de Windows 10
+es nuevo; avisa si algo se ve mal ahí. Algunas funciones e
interacciones aún se están verificando.
## Política de firma de código
diff --git a/README.md b/README.md
index bb2d3aa..1ec5a9e 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
<img width="50%" alt="Frame 1116606779" src="https://github.com/user-attachments/assets/8c715a53-a0df-4780-9dd4-09ce3ccd9043" />
- **A lightweight, macOS-inspired dock for Windows 11.**
+ **A lightweight, macOS-inspired dock for Windows 10 and 11.**
Muelle replaces the Windows taskbar with a customizable dock and an optional
macOS-style menu bar.
@@ -46,7 +46,7 @@ restored when Muelle exits.
## Install
**[Download Muelle-Setup.exe](https://github.com/crafter-station/Muelle/releases/latest/download/Muelle-Setup.exe)**
-(Windows 11, 64-bit) or pick a version from
+(Windows 10 version 1903 or later, or Windows 11; 64-bit) or pick a version from
[Releases](https://github.com/crafter-station/Muelle/releases).
1. Run `Muelle-Setup.exe`. It installs for your user only: no administrator
@@ -76,7 +76,9 @@ session; it excludes Settings and its WebView2 runtime.
### Prerequisites
-- Windows 11
+- Windows 10 (version 1903 or later) or Windows 11. On Windows 10 the dock and
+ menu bar are solid instead of glass: Windows 10 has no backdrop blur for
+ desktop apps.
- Rust with the MSVC toolchain and Visual Studio C++ Build Tools
- Node.js and pnpm
@@ -161,7 +163,8 @@ draft to make it the download and the update.
## Current status
-The dock, Settings app and installer work on Windows 11. Some features and
+The dock, Settings app and installer work on Windows 11. Windows 10 support is
+new; please report anything that looks wrong there. Some features and
interactions are still being verified.
## Code signing policy
diff --git a/apps/dock/src/app.rs b/apps/dock/src/app.rs
index dd8bbcb..ef567d5 100644
--- a/apps/dock/src/app.rs
+++ b/apps/dock/src/app.rs
@@ -2311,14 +2311,16 @@ pub fn run() -> Result<()> {
let visual = create(WS_EX_LAYERED | WS_EX_TRANSPARENT)?;
let input = create(WINDOW_EX_STYLE::default())?;
- // Without this, the system backdrop brush appears black.
+ // Without this, the system backdrop brush appears black. Windows 10
+ // does not know the attribute; the dock then draws solid glass
+ // (`system::transparency_enabled`), so the error is not fatal.
let enable = BOOL::from(true);
- DwmSetWindowAttribute(
+ let _ = DwmSetWindowAttribute(
visual,
DWMWA_USE_HOSTBACKDROPBRUSH,
(&raw const enable).cast(),
size_of::<BOOL>() as u32,
- )?;
+ );
let target = gfx
.compositor
diff --git a/apps/dock/src/gfx.rs b/apps/dock/src/gfx.rs
index fb4b9e3..a9f7e5a 100644
--- a/apps/dock/src/gfx.rs
+++ b/apps/dock/src/gfx.rs
@@ -368,7 +368,7 @@ impl Gfx {
// SAFETY: Strings and structures passed to each call remain alive for its duration.
let (layout, metrics) = unsafe {
let format = self.dwrite.CreateTextFormat(
- w!("Segoe UI Variable Text"),
+ text_font(),
None,
DWRITE_FONT_WEIGHT_MEDIUM,
DWRITE_FONT_STYLE_NORMAL,
@@ -552,7 +552,7 @@ impl Gfx {
// SAFETY: Strings and structures passed to each call remain alive for its duration.
let (layout, metrics) = unsafe {
let format = self.dwrite.CreateTextFormat(
- w!("Segoe UI Variable Text"),
+ text_font(),
None,
weight,
DWRITE_FONT_STYLE_NORMAL,
@@ -591,7 +591,7 @@ impl Gfx {
})
}
- /// Symbols from Segoe Fluent Icons, the Windows 11 system icon font, centered
+ /// Symbols from the system icon font (see `icon_font`), centered
/// in a square. Layers are drawn in order with their opacity, so a dim full
/// Wi-Fi fan can sit behind the bars actually received.
pub fn glyph_brush(&self, layers: &[(char, f32)], scale: f32, ink: Ink) -> Result<LabelBrush> {
@@ -599,7 +599,7 @@ impl Gfx {
// SAFETY: The format lives for the drawing below.
let format = unsafe {
let format = self.dwrite.CreateTextFormat(
- w!("Segoe Fluent Icons"),
+ icon_font(),
None,
DWRITE_FONT_WEIGHT_NORMAL,
DWRITE_FONT_STYLE_NORMAL,
@@ -837,6 +837,26 @@ fn draw_image(
Ok(())
}
+/// The interface font: Segoe UI Variable on Windows 11, Segoe UI on
+/// Windows 10, which does not have it.
+fn text_font() -> windows::core::PCWSTR {
+ if muelle_shell::system::is_windows_11() {
+ w!("Segoe UI Variable Text")
+ } else {
+ w!("Segoe UI")
+ }
+}
+
+/// The system icon font. Windows 10 has Segoe MDL2 Assets instead of Segoe
+/// Fluent Icons; the symbols the menu bar uses share the same code points.
+fn icon_font() -> windows::core::PCWSTR {
+ if muelle_shell::system::is_windows_11() {
+ w!("Segoe Fluent Icons")
+ } else {
+ w!("Segoe MDL2 Assets")
+ }
+}
+
const fn rgb(r: f32, g: f32, b: f32, a: f32) -> D2D1_COLOR_F {
D2D1_COLOR_F { r, g, b, a }
}
diff --git a/apps/settings/src-tauri/tauri.bundle.conf.json b/apps/settings/src-tauri/tauri.bundle.conf.json
index 3afe4e8..f5860cb 100644
--- a/apps/settings/src-tauri/tauri.bundle.conf.json
+++ b/apps/settings/src-tauri/tauri.bundle.conf.json
@@ -7,7 +7,7 @@
],
"publisher": "Muelle",
"homepage": "https://github.com/crafter-station/Muelle",
- "shortDescription": "Dock estilo macOS para Windows 11",
+ "shortDescription": "Dock estilo macOS para Windows",
"category": "Utility",
"externalBin": [
"binaries/muelle"
diff --git a/crates/muelle-shell/src/launcher.rs b/crates/muelle-shell/src/launcher.rs
index 22eed16..7a1eabf 100644
--- a/crates/muelle-shell/src/launcher.rs
+++ b/crates/muelle-shell/src/launcher.rs
@@ -185,9 +185,14 @@ pub fn open_quick_settings() {
tap(&[VK_LWIN, VK_A]);
}
-/// Opens the Windows 11 notification center and calendar: Win+N.
+/// Opens the notification center and calendar: Win+N on Windows 11. Windows
+/// 10 keeps notifications in the Action Center, which is Win+A there.
pub fn open_notifications() {
- tap(&[VK_LWIN, VK_N]);
+ if crate::system::is_windows_11() {
+ tap(&[VK_LWIN, VK_N]);
+ } else {
+ tap(&[VK_LWIN, VK_A]);
+ }
}
/// Windows Search, as the taskbar's search button: Win+S.
@@ -206,8 +211,14 @@ pub fn open_widgets() {
}
/// The sound output page of quick settings (Windows 11 22H2+): Win+Ctrl+V.
+/// Windows 10 has no shortcut for its volume flyout, so it opens the sound
+/// page of Settings instead.
pub fn open_sound() {
- tap(&[VK_LWIN, VK_LCONTROL, VK_V]);
+ if crate::system::is_windows_11() {
+ tap(&[VK_LWIN, VK_LCONTROL, VK_V]);
+ } else {
+ let _ = open("ms-settings:sound");
+ }
}
/// How long the taskbar takes to put the focus on its notification area.
diff --git a/crates/muelle-shell/src/system.rs b/crates/muelle-shell/src/system.rs
index faca8bd..606d8ff 100644
--- a/crates/muelle-shell/src/system.rs
+++ b/crates/muelle-shell/src/system.rs
@@ -5,7 +5,9 @@ use windows::{
Foundation::{POINT, RECT},
Graphics::Gdi::{GetMonitorInfoW, MONITOR_DEFAULTTOPRIMARY, MONITORINFO, MonitorFromPoint},
System::Com::CoTaskMemFree,
- System::Registry::{HKEY_CURRENT_USER, RRF_RT_REG_DWORD, RegGetValueW},
+ System::Registry::{
+ HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, RRF_RT_REG_DWORD, RRF_RT_REG_SZ, RegGetValueW,
+ },
UI::{
HiDpi::{GetDpiForMonitor, MDT_EFFECTIVE_DPI},
Shell::{FOLDERID_Downloads, KF_FLAG_DEFAULT, SHGetKnownFolderPath},
@@ -27,9 +29,16 @@ pub fn uses_light_theme() -> bool {
/// effects" is on and energy saver is off (it turns them off). Otherwise the
/// system backdrop brush stops blurring and shows up black, so glass has to
/// be drawn solid.
+///
+/// On Windows 10 there is no backdrop brush for desktop windows at all
+/// (`DWMWA_USE_HOSTBACKDROPBRUSH` arrived with Windows 11), so it is always
+/// `false` there.
#[must_use]
pub fn transparency_enabled() -> bool {
use windows::Win32::System::Power::{GetSystemPowerStatus, SYSTEM_POWER_STATUS};
+ if !is_windows_11() {
+ return false;
+ }
const SAVER_ON: u8 = 1;
let mut status = SYSTEM_POWER_STATUS::default();
// SAFETY: `status` is a valid structure the call fills in.
@@ -39,6 +48,40 @@ pub fn transparency_enabled() -> bool {
!saver && personalize(w!("EnableTransparency")) != Some(0)
}
+/// `true` on Windows 11 (build 22000 or later), `false` on Windows 10.
+/// Read once: the version does not change while the dock runs.
+#[must_use]
+pub fn is_windows_11() -> bool {
+ static WINDOWS_11: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
+ *WINDOWS_11.get_or_init(|| windows_build().is_none_or(|build| build >= 22000))
+}
+
+/// The Windows build number, e.g. 26100. Windows reports "10.0" for both
+/// Windows 10 and 11; only the build tells them apart.
+fn windows_build() -> Option<u32> {
+ let mut buffer = [0u16; 16];
+ let mut size = size_of_val(&buffer) as u32;
+ // SAFETY: `buffer` and `size` describe a valid buffer for the string.
+ unsafe {
+ RegGetValueW(
+ HKEY_LOCAL_MACHINE,
+ w!("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion"),
+ w!("CurrentBuildNumber"),
+ RRF_RT_REG_SZ,
+ None,
+ Some(buffer.as_mut_ptr().cast()),
+ Some(&mut size),
+ )
+ }
+ .ok()
+ .ok()?;
+ let len = buffer
+ .iter()
+ .position(|&unit| unit == 0)
+ .unwrap_or(buffer.len());
+ String::from_utf16_lossy(&buffer[..len]).parse().ok()
+}
+
/// A DWORD from the user's personalization settings.
fn personalize(name: PCWSTR) -> Option<u32> {
let mut value = 0u32;
diff --git a/muelle/public/llms.txt b/muelle/public/llms.txt
index c3fc81e..7f985db 100644
--- a/muelle/public/llms.txt
+++ b/muelle/public/llms.txt
@@ -1,6 +1,6 @@
# Muelle
-> Muelle is a free, MIT-licensed dock for Windows 11 written in Rust. It hides the Windows taskbar and replaces it with a macOS-style dock: icons that grow under the cursor, minimized windows that fold into their app's icon with the Genie effect (or, optionally, wait as live thumbnails), drag and drop onto apps, and an optional top menu bar that can show Claude and Codex plan usage. A small guardian process gives the taskbar back if the dock quits or crashes.
+> Muelle is a free, MIT-licensed dock for Windows 10 and 11 written in Rust. It hides the Windows taskbar and replaces it with a macOS-style dock: icons that grow under the cursor, minimized windows that fold into their app's icon with the Genie effect (or, optionally, wait as live thumbnails), drag and drop onto apps, and an optional top menu bar that can show Claude and Codex plan usage. A small guardian process gives the taskbar back if the dock quits or crashes.
Muelle is not an Electron app: the dock is a native Win32 process that draws through the Windows composition engine. Measured on the author's PC: about 17 MB of private memory and no CPU while idle. The separate Settings window (Tauri 2 + WebView2) only runs while it is open.
@@ -17,7 +17,7 @@ Muelle is not an Electron app: the dock is a native Win32 process that draws thr
## Download
-- [Muelle-Setup.exe](https://github.com/crafter-station/Muelle/releases/latest/download/Muelle-Setup.exe): Windows 11, 64-bit, per user, no administrator rights.
+- [Muelle-Setup.exe](https://github.com/crafter-station/Muelle/releases/latest/download/Muelle-Setup.exe): Windows 10 (1903+) or 11, 64-bit, per user, no administrator rights.
- [All releases](https://github.com/crafter-station/Muelle/releases): version history and notes.
## Source
@@ -28,7 +28,7 @@ Muelle is not an Electron app: the dock is a native Win32 process that draws thr
## Facts
-- Platform: Windows 11 (single monitor is the supported case).
+- Platform: Windows 10 (version 1903 or later) or Windows 11, single monitor. On Windows 10 the dock is solid instead of glass.
- Idle: about 17 MB of private memory and 0% CPU on the author's PC; no periodic timers while idle.
- Installer: about 2.4 MB, one step, no wizard and no admin rights.
- AI usage island: shown only while Claude Code or Codex is running; reads the sign-in those tools already keep locally and asks each provider for its own limits at most every five minutes. It can be turned off in Settings.
diff --git a/muelle/src/components/sections/Hero.astro b/muelle/src/components/sections/Hero.astro
index 2806a45..7dac013 100644
--- a/muelle/src/components/sections/Hero.astro
+++ b/muelle/src/components/sections/Hero.astro
@@ -23,7 +23,7 @@ import { site } from "@/data/site";
</h1>
<p data-h class="mx-auto mt-[22px] mb-[30px] max-w-[560px] text-lg text-mute">
- Muelle replaces the Windows 11 taskbar with a glass dock: icons grow under your cursor and
+ Muelle replaces the Windows taskbar with a glass dock: icons grow under your cursor and
windows fold into the dock with the Genie effect. Free, open source and light.
</p>
diff --git a/muelle/src/data/showcase.ts b/muelle/src/data/showcase.ts
index 7d82d4b..2e9a0ad 100644
--- a/muelle/src/data/showcase.ts
+++ b/muelle/src/data/showcase.ts
@@ -204,7 +204,7 @@ export const download = {
tagline: site.tagline,
meta: [
`Version ${site.version}`,
- "Windows 11 · 64-bit",
+ "Windows 10 & 11 · 64-bit",
`${figures.installer.value} ${figures.installer.unit}`,
`Free · ${site.license}`,
],
@@ -217,7 +217,7 @@ export const download = {
],
source: {
summary: "Build it from source",
- note: "Needs Windows 11, Rust (MSVC) and the Visual Studio C++ build tools.",
+ note: "Needs Windows 10 (1903+) or 11, Rust (MSVC) and the Visual Studio C++ build tools.",
commands: [`git clone ${site.repository}`, "cd Muelle", "cargo run --release -p muelle"],
},
} as const;
diff --git a/muelle/src/data/site.ts b/muelle/src/data/site.ts
index 8b7219e..6728607 100644
--- a/muelle/src/data/site.ts
+++ b/muelle/src/data/site.ts
@@ -5,7 +5,7 @@ export const site = {
tagline: "The macOS Dock, made for Windows.",
/** Kept under ~155 characters so Google does not truncate it. */
description:
- "Muelle replaces the Windows 11 taskbar with a macOS-style glass dock with the Genie effect and a menu bar that shows AI provider usage. Free.",
+ "Muelle replaces the Windows taskbar with a macOS-style glass dock with the Genie effect and a menu bar that shows AI provider usage. Free.",
/** Canonical origin. Must match `site` in astro.config.mjs and the sitemap. */
url: "https://muellee.vercel.app",
/** Path to the social card in `public/`. */
diff --git a/muelle/src/layouts/BaseLayout.astro b/muelle/src/layouts/BaseLayout.astro
index 7612c89..b9bdd80 100644
--- a/muelle/src/layouts/BaseLayout.astro
+++ b/muelle/src/layouts/BaseLayout.astro
@@ -32,8 +32,8 @@ const schema = noindex || !product
name: site.name,
applicationCategory: "UtilitiesApplication",
applicationSubCategory: "Desktop enhancement",
- operatingSystem: "Windows 11",
- softwareRequirements: "Windows 11, 64-bit",
+ operatingSystem: "Windows 10, Windows 11",
+ softwareRequirements: "Windows 10 version 1903 or later, or Windows 11; 64-bit",
description: site.description,
url: new URL("/", site.url).href,
downloadUrl: site.download,