adam-gui/vendor/fyne.io/fyne/v2/app/app_other.go

35 lines
773 B
Go
Raw Permalink Normal View History

2024-04-29 19:13:50 +02:00
//go:build ci || (!linux && !darwin && !windows && !freebsd && !openbsd && !netbsd && !js && !wasm && !test_web_driver)
// +build ci !linux,!darwin,!windows,!freebsd,!openbsd,!netbsd,!js,!wasm,!test_web_driver
package app
import (
"errors"
"net/url"
"os"
"path/filepath"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/theme"
)
func defaultVariant() fyne.ThemeVariant {
return theme.VariantDark
}
func rootConfigDir() string {
return filepath.Join(os.TempDir(), "fyne-test")
}
func (a *fyneApp) OpenURL(_ *url.URL) error {
return errors.New("Unable to open url for unknown operating system")
}
func (a *fyneApp) SendNotification(_ *fyne.Notification) {
fyne.LogError("Refusing to show notification for unknown operating system", nil)
}
func watchTheme() {
// no-op
}