Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

Format based on [Keep a Changelog](https://keepachangelog.com/); versioning follows [SemVer](https://semver.org/).

## [Unreleased]

### Added
- **Automatic updates.** New `updates` setting (`notify` by default, `auto`, `off`), a **Check for updates…** tray item and controls in the settings window. TaskGlass checks the latest GitHub release once a day (the only network connection it makes), downloads the installer only from GitHub hosts, verifies its SHA-256 against the release's `SHA256SUMS.txt` and discards it on a mismatch, then runs it silently; the installer closes TaskGlass, updates it and starts the new version. In `notify` mode it asks first, once per version. If security software stops the installer from starting, the verified file is kept and its path is copied to the clipboard. Development builds never update. Details in `docs/configuration.md#updates`.
- **Hidden-icons flyout while a window is maximized or fullscreen.** `surfaces.tray_overflow.maximized` (`{ "enabled": false, "opacity": 85 }`) gives the flyout a second opacity that applies while any monitor has a maximized or fullscreen window, with controls and a preview scenario in both settings windows. Fullscreen windows that are not "maximized" (borderless games and videos) are now detected too, which also makes the taskbar's maximized rule apply to them.
- **Native settings window as a fallback.** If the web settings window cannot be opened (browser blocked, local port unavailable) TaskGlass now opens the native Win32 window from 1.3.0, which needs neither a browser nor a port, with the same options.

### Fixed
- **The settings window now always gives you a way in.** When security software stops TaskGlass from starting programs (`Access is denied` for Edge or `rundll32`) the window used to just not appear. TaskGlass now tries Edge, then the default browser through the shell, then `rundll32`; logs every failed attempt; and falls back to the native window. If even that fails it copies the settings address to the clipboard and shows a message explaining the cause and the fix.

## [1.3.1] - 2026-11-20

### Changed
Expand Down
1 change: 1 addition & 0 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ TaskGlass vuelve la barra de tareas de Windows **totalmente transparente, con de
- **Modo claro y oscuro**: los colores `auto`, el icono y el menú de la bandeja siguen a Windows en vivo
- **Desplegable de la bandeja translúcido**: el desplegable con los iconos ocultos (el botón `^`) tiene su propia opacidad
- **Reglas inteligentes**: un aspecto opcional con una ventana maximizada, o por aplicación (`code.exe`, `chrome.exe`, ...)
- **Actualizaciones automáticas**: consulta GitHub una vez al día e instala la versión nueva tras tu confirmación (o sola, o nunca; tú eliges). Antes se verifica el instalador con la suma de comprobación de la release
- **Atajo global** para activar o desactivar el efecto (desactivado por defecto, se activa con un interruptor), e interruptor general
- **Multimonitor**: cada barra por separado, o solo la principal
- **Por eventos**: reacciona a eventos de ventana en lugar de sondear, cerca de 0 % de CPU en reposo
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ TaskGlass makes the Windows taskbar **fully transparent, blurred or acrylic**, s

- **Clear / Blur / Acrylic / Opaque / Normal** styles, including truly transparent on the Windows 11 XAML taskbar (no grey fill, no border line)
- **Light and dark aware**: `auto` colours, the tray icon and its right-click menu follow Windows, live
- **Translucent tray flyout**: the flyout with the hidden icons (the `^` button) gets its own opacity
- **Translucent tray flyout**: the flyout with the hidden icons (the `^` button) gets its own opacity, and a different one while a window is maximized or fullscreen
- **Transparent by default, everywhere**: also with a maximized window; an optional look when one is maximized, or per application (`code.exe`, `chrome.exe`, ...)
- **Automatic updates**: checks GitHub once a day and installs a new version after you confirm (or by itself, or never; your choice). The installer is verified against the release checksum first
- **Global hotkey** to toggle the effect (off by default, one switch to enable), and a master on/off switch
- **Multi-monitor**: every taskbar handled independently, or only the primary one
- **Event driven**: reacts to window events instead of polling, about 0 % CPU when idle
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Please do **not** open a public issue. Use GitHub's private vulnerability report

## Scope

TaskGlass runs with user privileges, makes no network connections and only touches: its config and log files under the user profile, the `HKCU\...\Run\TaskGlass` registry value (when autostart is enabled), and the appearance of the Explorer taskbar windows. Reports about anything beyond that are welcome.
TaskGlass runs with user privileges, makes a single kind of network connection, to GitHub, to look for and download new releases (once a day; turn it off with `"updates": "off"`, see [Updates](docs/configuration.md#updates)), and only touches: its config and log files under the user profile, the `HKCU\...\Run\TaskGlass` registry value (when autostart is enabled), and the appearance of the Explorer taskbar windows. Reports about anything beyond that are welcome.

## Supported versions

Expand Down
Binary file modified cmd/taskglass/resource_windows_amd64.syso
Binary file not shown.
6 changes: 6 additions & 0 deletions cmd/taskglass/taskglass.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity type="win32" name="AnderCMD.TaskGlass" version="1.3.1.0" processorArchitecture="*"/>
<description>TaskGlass</description>
<dependency>
<dependentAssembly>
<!-- visual styles for the settings window's native controls -->
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
Expand Down
25 changes: 25 additions & 0 deletions docs/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@
},
"opacity": {
"$ref": "#/definitions/opacity"
},
"maximized": {
"type": "object",
"additionalProperties": false,
"description": "Opacity used instead of `opacity` while a window is maximized or fullscreen on any monitor.",
"properties": {
"enabled": {
"type": "boolean",
"default": false
},
"opacity": {
"$ref": "#/definitions/opacity",
"default": 85
}
}
}
}
},
Expand Down Expand Up @@ -87,6 +102,16 @@
"default": true,
"description": "Master switch. When false the stock taskbar is shown."
},
"updates": {
"type": "string",
"enum": [
"notify",
"auto",
"off"
],
"default": "notify",
"description": "What to do about new releases. notify: check once a day and ask before installing. auto: install without asking. off: never contact GitHub."
},
"language": {
"type": "string",
"enum": [
Expand Down
9 changes: 9 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Changes made from the tray menu are saved to this same file.
| Key | Values | Meaning |
|-----|--------|---------|
| `enabled` | bool | Master switch. `false` shows the stock taskbar. |
| `updates` | `notify`, `auto`, `off` | `notify` (default) checks GitHub once a day and asks before installing a new version; `auto` installs without asking; `off` never connects. See [Updates](#updates). |
| `language` | `auto`, `en`, `es` | Language of the tray menu and settings window. `auto` follows the Windows display language. |
| `theme` | `auto`, `light`, `dark` | Which colour mode drives `"auto"` colours, the tray icon and the tray menu (the menu follows the Windows *apps* mode when `auto`). `auto` follows the Windows *system* theme (the one the taskbar uses). |
| `taskbars` | `all`, `primary` | Style every monitor's taskbar or only the primary one. |
Expand Down Expand Up @@ -75,6 +76,14 @@ Opacity values accept decimals (`99.5`) and are rounded to a whole number.

Why the DLL: the flyout draws its own XAML background, which the accent effect does not reach, so TaskGlass loads its helper DLL into Explorer to change it, the same way it removes the taskbar's own fill.

`surfaces.tray_overflow.maximized` is a second opacity for the flyout, `{ "enabled": false, "opacity": 85 }`: while a window is maximized or fullscreen (a bright window, a game) on any monitor the flyout uses it instead of `opacity`, for example to keep the panel more solid there.

## Updates

With `"updates": "notify"` or `"auto"`, TaskGlass asks GitHub (`api.github.com`) for the latest release once a day, starting a minute and a half after it launches, and from the tray menu (**Check for updates…**) or the settings window. This is the only network connection TaskGlass makes; `"off"` disables it. Development builds never update.

When you accept (or in `auto` mode) TaskGlass downloads `TaskGlass-<version>-Setup.exe` from the release, checks its SHA-256 against the release's `SHA256SUMS.txt`, discards it if it does not match, and runs it silently; the installer closes TaskGlass, replaces it and starts the new version. Downloads and redirects are limited to GitHub hosts. The files are not code-signed, so the checksum protects against corruption and tampering in transit, not against a compromised GitHub account. If security software stops the installer from starting, the verified file stays in `%TEMP%\TaskGlass-update` and its path is copied to the clipboard.

## Windows setting that overrides the bar

Keep *Show accent color on Start and taskbar* (Settings > Personalization > Colors) turned **off**. When it is on, Windows paints the taskbar with the accent color and overrides whatever TaskGlass sets, whatever the rules say.
Expand Down
7 changes: 6 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ go 1.26.7

require (
fyne.io/systray v1.12.2
github.com/lxn/walk v0.0.0-20210112085537-c389da54e794
github.com/lxn/win v0.0.0-20210218163916-a377121e959e
golang.org/x/sys v0.50.0
)

require github.com/godbus/dbus/v5 v5.1.0 // indirect
require (
github.com/godbus/dbus/v5 v5.1.0 // indirect
gopkg.in/Knetic/govaluate.v3 v3.0.0 // indirect
)
7 changes: 7 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@ fyne.io/systray v1.12.2 h1:Y8DZxgLHsVQt6rY9Zrkkg+j67S7vv/1F2viOWKPpVeA=
fyne.io/systray v1.12.2/go.mod h1:RVwqP9nYMo7h5zViCBHri2FgjXF7H2cub7MAq4NSoLs=
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/lxn/walk v0.0.0-20210112085537-c389da54e794 h1:NVRJ0Uy0SOFcXSKLsS65OmI1sgCCfiDUPj+cwnH7GZw=
github.com/lxn/walk v0.0.0-20210112085537-c389da54e794/go.mod h1:E23UucZGqpuUANJooIbHWCufXvOcT6E7Stq81gU+CSQ=
github.com/lxn/win v0.0.0-20210218163916-a377121e959e h1:H+t6A/QJMbhCSEH5rAuRxh+CtW96g0Or0Fxa9IKr4uc=
github.com/lxn/win v0.0.0-20210218163916-a377121e959e/go.mod h1:KxxjdtRkfNoYDCUP5ryK7XJJNTnpC8atvtmTheChOtk=
golang.org/x/sys v0.0.0-20201018230417-eeed37f84f13/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs=
golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
gopkg.in/Knetic/govaluate.v3 v3.0.0 h1:18mUyIt4ZlRlFZAAfVetz4/rzlJs9yhN+U02F4u1AOc=
gopkg.in/Knetic/govaluate.v3 v3.0.0/go.mod h1:csKLBORsPbafmSCGTEh3U7Ozmsuq8ZSIlKk1bcqph0E=
34 changes: 22 additions & 12 deletions graphify-out/.graphify_labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"0": "main",
"1": "README.md",
"2": "winapi_windows.go",
"3": "hotkey_enabled",
"4": "App",
"3": "preview.go",
"4": "Config",
"5": "Controller",
"6": "tap.c",
"7": "opacity",
"7": "properties",
"8": "config.schema.json",
"9": "Changelog",
"10": "tray_icon",
"10": "theme",
"11": "PULL_REQUEST_TEMPLATE.md",
"12": "definitions",
"13": "config.go",
Expand Down Expand Up @@ -38,18 +38,28 @@
"36": "items",
"37": "Configuration",
"38": "Contributing",
"39": "Security Policy",
"39": "configuration.md",
"40": "default",
"41": "fakeHost",
"41": "window",
"42": "enabled",
"43": "hotkey",
"43": "Client",
"44": "enum",
"45": "theme",
"45": "App",
"46": "Server",
"47": "exe",
"47": ".InstallUpdate",
"48": "autostart_windows.go",
"49": "xaml_fix",
"49": "New",
"50": "language",
"51": "main.go",
"52": "locale_other.go"
"51": "host",
"52": "locale_other.go",
"53": "Lang",
"54": "fakeHost",
"55": "updates",
"56": "menuItems",
"57": "opacity",
"58": "tray_icon",
"59": "xaml_fix",
"60": "SystemIsLight",
"61": "window",
"62": "updates_windows.go"
}
2 changes: 1 addition & 1 deletion graphify-out/.graphify_labels.json.sig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"0": "5076d5ac64ef5c4a", "1": "b64346c57c2f1370", "2": "3e72afd85194fc6d", "3": "01646dff01d2eb7e", "4": "b366977a781f3394", "5": "347b8ad08160da2d", "6": "5f1178d3b76d5916", "7": "c3edf3c38080d85c", "8": "7c8d94ab6376b921", "9": "7e5fd0bf5677dec6", "10": "952491af3b1e9f78", "11": "e0f13635f45c650b", "12": "690ee408139029c9", "13": "17570957673a4fdd", "14": "6c7a71fed0eb24b5", "15": "ec76c5b024eab860", "16": "37bcee490d34fb1d", "17": "5c97800323607746", "18": "136e8401d4dcd739", "19": "5dbe09da18834400", "20": "b8b416d32d64abd5", "21": "6e7b82d0387bf16d", "22": "a0e1e2546c3370b0", "23": "a309b6ae1fe8f288", "24": "420dd9e70a20e9ac", "25": "c36fef69ae3bd6c5", "26": "e9dfc248ad6fcedc", "27": "b8e36120f4e5b47a", "28": "029966ca5faa5a2a", "29": "2f07b244a1b1bebb", "30": "4cbef3533d917f67", "31": "39e69bcdefe2b0d2", "32": "804482094d693c22", "33": "077458ac008cc4d9", "34": "77bc2d977d7ff4cd", "35": "13af2a57728b14e4", "36": "bb6ec3da677724b3", "37": "4c1831b02af7bd53", "38": "268b36fafa333572", "39": "89111ec01d66aeef", "40": "a6d5a524b6f14c57", "41": "70a729a8c2ed65e6", "42": "629a30dc96674e1a", "43": "4249983e8612bb1d", "44": "0baabc23a0122bf6", "45": "568df988db03bae3", "46": "ed151e4065cb4366", "47": "ab47fb02a9b2717a", "48": "a5b30f9d71bf9f82", "49": "43b67b0ff2e57329", "50": "58627c65df2a80a1", "51": "9346c9771bed4f8d", "52": "7984419eb8b2f465"}
{"0": "63ff666f0045b814", "1": "b64346c57c2f1370", "2": "891911b5d4c662ef", "3": "f920c17e32bfb614", "4": "ee10bd375302d9ce", "5": "ce7ea8e3d289539e", "6": "5f1178d3b76d5916", "7": "99be281d3a6c2143", "8": "7c8d94ab6376b921", "9": "d552d2e7bf6d92ce", "10": "43dd470eba70e8b2", "11": "e0f13635f45c650b", "12": "a09e6da3720ce72b", "13": "8b69e3799805c898", "14": "6c7a71fed0eb24b5", "15": "ec76c5b024eab860", "16": "37bcee490d34fb1d", "17": "5c97800323607746", "18": "d72e5efdb26cb46d", "19": "5dbe09da18834400", "20": "b8b416d32d64abd5", "21": "6e7b82d0387bf16d", "22": "a0e1e2546c3370b0", "23": "a309b6ae1fe8f288", "24": "420dd9e70a20e9ac", "25": "c36fef69ae3bd6c5", "26": "e9dfc248ad6fcedc", "27": "b8e36120f4e5b47a", "28": "27fdcfc551c8500c", "29": "97f96f3f6912c7f7", "30": "4cbef3533d917f67", "31": "39e69bcdefe2b0d2", "32": "804482094d693c22", "33": "077458ac008cc4d9", "34": "77bc2d977d7ff4cd", "35": "13af2a57728b14e4", "36": "bb6ec3da677724b3", "37": "f54f507de5bdfba8", "38": "268b36fafa333572", "39": "5eba8f57deedf6ec", "40": "29f3f7a05bc038a9", "41": "097cc4b62d3bb1e6", "42": "d3eee2f86449bcfe", "43": "568cf10a7a394a1d", "44": "0baabc23a0122bf6", "45": "76d4b50771f7c41f", "46": "8276df5627f89e38", "47": "deb00a690dbb7995", "48": "a5b30f9d71bf9f82", "49": "608b79cdc2b0f5f6", "50": "58627c65df2a80a1", "51": "8634880fbcf3da70", "52": "7984419eb8b2f465", "53": "fef42b3791505753", "54": "a54fe58c4569f20d", "55": "8a1ce2c24fb93d9a", "56": "728938a96b47fc0c", "57": "029966ca5faa5a2a", "58": "d041a87ea2070ac4", "59": "43b67b0ff2e57329", "60": "05137dc294bceec1", "61": "ea415e833c241158", "62": "54793cdda1865d1d"}
Loading