On Windows the system's grey title bar sat over the page as a strip of its own, and stayed light over a page set to dark; at the window's first width Claude Code's name was cut to "C." beside a full "Update to …" pill. Now the main window opens with its title bar and background in the page's --bg for the saved theme (Wails' Windows CustomTheme, #f4f4f6 / #1a1a1e), and the page reports the colour it shows (POST /api/window/titlebar) at start and after every change of theme, system or chosen, for Go to paint the caption with DWM and switch its buttons dark or light; elsewhere nothing changes. The agent row is a size container: under 250px the pill shows only its arrow (its words kept as its aria-label), under 150px the version goes, and the name gives way last. Tested on Windows 11 (sandboxed HOME): with theme light and dark, the bar and the page are one surface, caption buttons in the matching colour, the name whole. cli-update.test.cjs gains a zh subtest at 980/620/540px (fails on the old CSS). The GUI suite passes in Chromium (settings-groups is flaky on HEAD too), go vet, go build (GOOS=windows, GOOS=linux -tags nogui, dev) and go test -tags nogui ./... pass.
14 lines
398 B
Go
14 lines
398 B
Go
//go:build !windows && !nogui
|
|
|
|
package gui
|
|
|
|
import "github.com/wailsapp/wails/v3/pkg/application"
|
|
|
|
// TintTitleBar: the Mac's title bar is hidden in the page, and Linux's is
|
|
// the window manager's.
|
|
func (h *host) TintTitleBar([4]uint8, bool) bool { return false }
|
|
|
|
func windowChrome(string) (application.WindowsWindow, application.RGBA) {
|
|
return application.WindowsWindow{}, application.RGBA{}
|
|
}
|