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:
@@ -682,9 +682,15 @@ func drawText(hdc uintptr, s string, r rect) {
|
||||
// makeFont uses plain antialiasing (not ClearType) because ClearType's colored
|
||||
// edges look wrong on a transparent window.
|
||||
func makeFont(height int32, weight int) uintptr {
|
||||
return makeFontFace("Segoe UI", height, weight)
|
||||
}
|
||||
|
||||
// makeFontFace is makeFont for any installed font. A font that is not installed
|
||||
// quietly falls back to a default one.
|
||||
func makeFontFace(face string, height int32, weight int) uintptr {
|
||||
f, _, _ := pCreateFont.Call(
|
||||
uintptr(-height), 0, 0, 0, uintptr(weight), 0, 0, 0,
|
||||
1, 0, 0, 4, 0, uintptr(unsafe.Pointer(u16("Segoe UI"))))
|
||||
1, 0, 0, 4, 0, uintptr(unsafe.Pointer(u16(face))))
|
||||
return f
|
||||
}
|
||||
|
||||
@@ -896,6 +902,7 @@ func showMenu(hwnd uintptr, appIdx int, trayKind int) {
|
||||
|
||||
add(0, menuSettingsID, "MirrorBar settings...")
|
||||
add(0, menuNotifyID, "Open notification center")
|
||||
add(0, menuEmojiID, "Open emoji panel")
|
||||
sep()
|
||||
for i, l := range alphaLevels {
|
||||
var flags uintptr
|
||||
|
||||
Reference in New Issue
Block a user