mirror of
https://github.com/anotherhadi/proton-vpn-tui.git
synced 2026-10-05 11:18:27 +02:00
init
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
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: "/",
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user