35 lines
773 B
Go
35 lines
773 B
Go
|
//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
|
||
|
}
|