fckeuspy-go/vendor/fyne.io/fyne/v2/internal/app/theme_xdg.go

21 lines
588 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//go:build !wasm && !test_web_driver && !android && !ios && !mobile && (linux || openbsd || freebsd || netbsd)
package app
import (
"sync/atomic"
"fyne.io/fyne/v2"
)
// CurrentVariant contains the systems theme variant.
// It is intended for internal use, only!
var CurrentVariant atomic.Uint64
// DefaultVariant returns the systems default fyne.ThemeVariant.
// Normally, you should not need this. It is extracted out of the root app package to give the
// settings app access to it.
func DefaultVariant() fyne.ThemeVariant {
return fyne.ThemeVariant(CurrentVariant.Load())
}