//go:build !windows // ============================================================================ // ledwindow_other.go — LED 点阵滚动文字(非 Windows 空实现) // // LED 窗口用 Win32 API 实现(见 ledwindow_windows.go),仅 Windows 可用。 // 其他平台(Linux/macOS)编译此空实现:所有方法无操作,避免链接失败。 // ============================================================================ package main // OpenLEDWindow 非 Windows 平台无操作,返回 false。 func (s *SettingsService) OpenLEDWindow(text string, color string, speed int) bool { return false } // CloseLEDWindow 非 Windows 平台无操作。 func (s *SettingsService) CloseLEDWindow() {} // SetLEDTransparent 非 Windows 平台无操作。 func (s *SettingsService) SetLEDTransparent() {} // GetLEDText 非 Windows 平台返回空。 func (s *SettingsService) GetLEDText() string { return "" } // GetLEDColor 非 Windows 平台返回默认红。 func (s *SettingsService) GetLEDColor() string { return "#ff4d4d" } // GetLEDSpeed 非 Windows 平台返回默认 60。 func (s *SettingsService) GetLEDSpeed() int { return 60 }