MirrorBar Plus 13: Claude and Grok flyout, clipboard history button, mp3 player
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JW57Zw8fvgzpeDkbUYT7sG
This commit is contained in:
+16
@@ -86,6 +86,9 @@ const (
|
||||
idShowEmoji = 227
|
||||
idClockFont = 228
|
||||
idChargeColor = 229
|
||||
idShowClip = 230
|
||||
idShowAI = 231
|
||||
idShowMusic = 232
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -101,6 +104,7 @@ var (
|
||||
ctlBarColor, ctlLogoStyle, ctlClockSize, ctlClockBold uintptr
|
||||
ctlShowBattery, ctlShowVolume, ctlShowWifi uintptr
|
||||
ctlShowEmoji, ctlClockFont, ctlChargeColor uintptr
|
||||
ctlShowClip, ctlShowAI, ctlShowMusic uintptr
|
||||
zipSyncing bool // true while the program itself is filling in the ZIP box
|
||||
)
|
||||
|
||||
@@ -233,6 +237,9 @@ func openSettings() {
|
||||
ctlShowVolume = makeControl(hw, inst, "BUTTON", "Volume", bsAutoCheckBox|wsTabStop, 416, 298, 368, 22, idShowVolume)
|
||||
ctlShowWifi = makeControl(hw, inst, "BUTTON", "Wifi", bsAutoCheckBox|wsTabStop, 416, 326, 368, 22, idShowWifi)
|
||||
ctlShowEmoji = makeControl(hw, inst, "BUTTON", "Emoji panel button", bsAutoCheckBox|wsTabStop, 416, 354, 368, 22, idShowEmoji)
|
||||
ctlShowClip = makeControl(hw, inst, "BUTTON", "Clipboard history button", bsAutoCheckBox|wsTabStop, 416, 382, 368, 22, idShowClip)
|
||||
ctlShowAI = makeControl(hw, inst, "BUTTON", "Claude and Grok button", bsAutoCheckBox|wsTabStop, 416, 410, 368, 22, idShowAI)
|
||||
ctlShowMusic = makeControl(hw, inst, "BUTTON", "MP3 player button", bsAutoCheckBox|wsTabStop, 416, 438, 368, 22, idShowMusic)
|
||||
for _, b := range barPalette {
|
||||
pSendMessage.Call(ctlBarColor, cbAddString, 0, uintptr(unsafe.Pointer(u16(b.name))))
|
||||
}
|
||||
@@ -290,6 +297,9 @@ func settingsSync() {
|
||||
pSendMessage.Call(ctlClockFont, cbSetCurSel, uintptr(clockFontIx), 0)
|
||||
pSendMessage.Call(ctlChargeColor, cbSetCurSel, uintptr(chargeIx), 0)
|
||||
pSendMessage.Call(ctlShowEmoji, bmSetCheck, boolWP(showEmoji), 0)
|
||||
pSendMessage.Call(ctlShowClip, bmSetCheck, boolWP(showClip), 0)
|
||||
pSendMessage.Call(ctlShowAI, bmSetCheck, boolWP(showAI), 0)
|
||||
pSendMessage.Call(ctlShowMusic, bmSetCheck, boolWP(showMusic), 0)
|
||||
pSendMessage.Call(ctlShowBattery, bmSetCheck, boolWP(showBattery), 0)
|
||||
pSendMessage.Call(ctlShowVolume, bmSetCheck, boolWP(showVolume), 0)
|
||||
pSendMessage.Call(ctlShowWifi, bmSetCheck, boolWP(showWifi), 0)
|
||||
@@ -429,6 +439,12 @@ func settingsCommand(id, note uintptr) {
|
||||
setShowWifi(checked(ctlShowWifi))
|
||||
case idShowEmoji:
|
||||
setShowEmoji(checked(ctlShowEmoji))
|
||||
case idShowClip:
|
||||
setShowClip(checked(ctlShowClip))
|
||||
case idShowAI:
|
||||
setShowAI(checked(ctlShowAI))
|
||||
case idShowMusic:
|
||||
setShowMusic(checked(ctlShowMusic))
|
||||
case idAutostart:
|
||||
setAutostart(checked(ctlAutostart))
|
||||
settingsSync()
|
||||
|
||||
Reference in New Issue
Block a user