mirror of
https://github.com/anotherhadi/proton-vpn-tui.git
synced 2026-10-05 19:28:28 +02:00
88 lines
1.2 KiB
Go
88 lines
1.2 KiB
Go
package icons
|
|
|
|
import (
|
|
"github.com/anotherhadi/ilovetui/style"
|
|
)
|
|
|
|
type Icons struct {
|
|
Settings string
|
|
Vpn string
|
|
SecureCore string
|
|
Tor string
|
|
P2p string
|
|
Free string
|
|
Fastest string
|
|
Random string
|
|
|
|
Connected string
|
|
Disconnected string
|
|
Connecting string
|
|
Loading string
|
|
|
|
Country string
|
|
City string
|
|
Server string
|
|
|
|
Expanded string
|
|
Collapsed string
|
|
|
|
Favorite string
|
|
|
|
Search string
|
|
Load string
|
|
|
|
PillLeft string
|
|
PillRight string
|
|
}
|
|
|
|
var I *Icons
|
|
|
|
func Init() {
|
|
if style.S.NerdFonts {
|
|
I = &Icons{
|
|
Settings: "",
|
|
Vpn: "",
|
|
SecureCore: "",
|
|
Tor: "",
|
|
P2p: "",
|
|
Free: "",
|
|
Fastest: "",
|
|
Random: "",
|
|
|
|
Connected: "",
|
|
Disconnected: "",
|
|
Connecting: "",
|
|
Loading: "",
|
|
|
|
Country: "",
|
|
City: "",
|
|
Server: "",
|
|
|
|
Expanded: "",
|
|
Collapsed: "",
|
|
|
|
Favorite: "",
|
|
|
|
Search: "",
|
|
Load: "",
|
|
|
|
PillLeft: "",
|
|
PillRight: "",
|
|
}
|
|
} else {
|
|
I = &Icons{
|
|
Connected: "●",
|
|
Disconnected: "○",
|
|
Connecting: "…",
|
|
Loading: "…",
|
|
|
|
Expanded: "v",
|
|
Collapsed: ">",
|
|
|
|
Favorite: "*",
|
|
|
|
Search: "/",
|
|
}
|
|
}
|
|
}
|