mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-04 08:18:34 +00:00
feat(BRIDGE-356): Added retry logic for unavailable preferred keychain on Linux; Feature flag support before bridge initialization; Refactored some bits of the code;
This commit is contained in:
@ -19,6 +19,8 @@ package theme
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
|
||||
"github.com/ProtonMail/proton-bridge/v3/internal/platform"
|
||||
)
|
||||
|
||||
type Theme string
|
||||
@ -34,7 +36,7 @@ func IsAvailable(have Theme) bool {
|
||||
|
||||
func DefaultTheme() Theme {
|
||||
switch runtime.GOOS {
|
||||
case "darwin", "windows":
|
||||
case platform.MACOS, platform.WINDOWS:
|
||||
return detectSystemTheme()
|
||||
default:
|
||||
return Light
|
||||
|
||||
Reference in New Issue
Block a user