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") {