ui

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SystrayIcon = "files/images/logo/notifiarr.png"

SystrayIcon is the icon in the system tray or task bar.

View Source
const ToastIcon = "files/images/logo/notifiarr.png"

ToastIcon is the icon in the menu bar.

Variables

View Source
var ErrUnsupported = errors.New("unsupported OS")

ErrUnsupported is just an error.

Functions

func CreateStartupLink() (bool, string, error)
func DeleteStartupLink() (string, error)

func Entry

func Entry(_, val string) (string, bool, error)

Entry wraps dlgs.Entry.

func Error

func Error(_ string) (bool, error)

Error wraps dlgs.Error.

func GetPNG added in v0.8.1

func GetPNG() string

GetPNG purposely returns an empty string when there is no verified file. This is used to give the toast notification an icon. Do not throw errors if the icon is missing, it's nbd, just return empty "".

func HasGUI

func HasGUI() bool

HasGUI returns false on this gui-unsupported OS.

func HasStartupLink() (string, bool)

func Info

func Info(_ string) (bool, error)

Info wraps dlgs.Info.

func OpenCmd

func OpenCmd(cmd ...string) error

OpenCmd opens anything.

func OpenFile

func OpenFile(filePath string) error

OpenFile open Config Files.

func OpenLog

func OpenLog(logFile string) error

OpenLog opens Log Files.

func OpenURL

func OpenURL(url string) error

OpenURL opens URL Links.

func Question

func Question(_ string, _ bool) (bool, error)

Question wraps dlgs.Question.

func StartCmd

func StartCmd(command string, args ...string) error

StartCmd starts a command.

func Toast added in v0.8.1

func Toast(_ string, _ ...interface{}) error

Toast does not do anything on this OS.

func Warning

func Warning(_ string) (bool, error)

Warning wraps dlgs.Warning.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL