MirrorBar Plus 11: clock font, more colors and logo shapes, charging color, emoji button

Clock font picker (16 fonts), 8 more bar colors, 8 more logo/tray/clock colors, 6 new Windows logo shapes, battery charging color picker, and an emoji panel button (Win+.) on the bar with a show/hide tickbox and right-click item.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JW57Zw8fvgzpeDkbUYT7sG
This commit is contained in:
2026-11-20 15:50:20 +00:00
co-authored by Claude Sonnet 5.5
parent 93f6b94d98
commit eab5a47495
8 changed files with 286 additions and 21 deletions
+38
View File
@@ -0,0 +1,38 @@
package main
// The little smiley on the bar. Clicking it presses Win+. which opens the
// Windows emoji panel (emoji, GIFs, symbols and the clipboard history), so
// whatever you pick is pasted into the window you were just typing in.
import "math"
func drawEmojiIcon(hdc uintptr, r rect) {
if !layerFg {
return
}
cx, cy := center(r)
col := iconColor()
rad := float64(px(7.5))
// the face
face := make([]point, 0, 33)
for k := 0; k <= 32; k++ {
a := float64(k) * 2 * math.Pi / 32
face = append(face, point{cx + int32(math.Round(rad*math.Cos(a))), cy + int32(math.Round(rad*math.Sin(a)))})
}
polyline(hdc, face, px(1.3), col)
// the eyes
eye := px(1.1)
circleRaw(hdc, cx-px(2.7), cy-px(2), eye, col)
circleRaw(hdc, cx+px(2.7), cy-px(2), eye, col)
// the smile
smile := make([]point, 0, 9)
sr := float64(px(4.2))
for k := 0; k <= 8; k++ {
a := (25 + float64(k)*130/8) * math.Pi / 180
smile = append(smile, point{cx + int32(math.Round(sr*math.Cos(a))), cy + int32(math.Round(sr*math.Sin(a))) - px(0.5)})
}
polyline(hdc, smile, px(1.2), col)
}