ledwindow_other.go 1.1 KB

1234567891011121314151617181920212223242526272829
  1. //go:build !windows
  2. // ============================================================================
  3. // ledwindow_other.go — LED 点阵滚动文字(非 Windows 空实现)
  4. //
  5. // LED 窗口用 Win32 API 实现(见 ledwindow_windows.go),仅 Windows 可用。
  6. // 其他平台(Linux/macOS)编译此空实现:所有方法无操作,避免链接失败。
  7. // ============================================================================
  8. package main
  9. // OpenLEDWindow 非 Windows 平台无操作,返回 false。
  10. func (s *SettingsService) OpenLEDWindow(text string, color string, speed int) bool {
  11. return false
  12. }
  13. // CloseLEDWindow 非 Windows 平台无操作。
  14. func (s *SettingsService) CloseLEDWindow() {}
  15. // SetLEDTransparent 非 Windows 平台无操作。
  16. func (s *SettingsService) SetLEDTransparent() {}
  17. // GetLEDText 非 Windows 平台返回空。
  18. func (s *SettingsService) GetLEDText() string { return "" }
  19. // GetLEDColor 非 Windows 平台返回默认红。
  20. func (s *SettingsService) GetLEDColor() string { return "#ff4d4d" }
  21. // GetLEDSpeed 非 Windows 平台返回默认 60。
  22. func (s *SettingsService) GetLEDSpeed() int { return 60 }