mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 17:52:33 +02:00
e8e64eff12
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
52 lines
915 B
Go
52 lines
915 B
Go
package icons
|
|
|
|
import "github.com/anotherhadi/spilltea/internal/config"
|
|
|
|
type Icons struct {
|
|
Forward string
|
|
Drop string
|
|
Edit string
|
|
Intercept string
|
|
History string
|
|
Replay string
|
|
Diff string
|
|
Request string
|
|
Response string
|
|
Plugin string
|
|
Findings string
|
|
Scope string
|
|
Detail string
|
|
Docs string
|
|
New string
|
|
Temp string
|
|
Project string
|
|
}
|
|
|
|
var I *Icons
|
|
|
|
func Init(cfg *config.Config) {
|
|
if cfg.TUI.UseNerdfontIcons {
|
|
I = &Icons{
|
|
Forward: " ",
|
|
Drop: " ",
|
|
Edit: " ",
|
|
Intercept: " ",
|
|
History: " ",
|
|
Replay: " ",
|
|
Diff: " ",
|
|
Request: " ",
|
|
Response: " ",
|
|
Plugin: " ",
|
|
Findings: " ",
|
|
Scope: " ",
|
|
Detail: " ",
|
|
Docs: " ",
|
|
New: " ",
|
|
Temp: " ",
|
|
Project: " ",
|
|
}
|
|
} else {
|
|
I = &Icons{}
|
|
}
|
|
}
|