From e82ed224e8c1308d2dea6934ba390b3c76f560e2 Mon Sep 17 00:00:00 2001 From: weishaupt <1+weishaupt@noreply.localhost> Date: Thu, 12 Nov 2026 22:38:20 +0000 Subject: [PATCH] MirrorBar+ 9: logo style and clock font hooks Part of MirrorBar+ 9 (bar color, logo shapes, clock size and bold, hide battery, volume and wifi). Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01JW57ZsfD68JfyDt93j58v9 --- main.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index db9d414..b876295 100644 --- a/main.go +++ b/main.go @@ -561,7 +561,6 @@ func activateApp(idx int) { // ---------- our bar ---------- func startWidth() int32 { return px(52) } -func clockWidth() int32 { return px(140) } func screenSize() (int32, int32) { w, _, _ := pGetSystemMetrics.Call(smCxScreen) @@ -689,6 +688,12 @@ func makeFont(height int32, weight int) uintptr { } func drawLogo(hdc uintptr, r rect) { + if logoStyle != 0 { + if !vertical { // a vertical bar draws it upright after turning (see renderLayer) + drawLogoStyle(hdc, r) + } + return + } sq := px(8) gap := px(2) total := sq*2 + gap @@ -1310,6 +1315,8 @@ func main() { fontApp = makeFont(px(12), 600) initSuperFonts() loadColors() + loadLook() + rebuildClockFonts() autoQuit = autoQuitDef if hasArg("--forever") || strings.Contains(name, "forever") {