Each stream uses a different color, fixes #136
This commit is contained in:
23
internal/constants/colors.go
Normal file
23
internal/constants/colors.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package constants
|
||||
|
||||
import "github.com/fatih/color"
|
||||
|
||||
func ColorUnbound() color.Color {
|
||||
return *color.New(color.FgCyan)
|
||||
}
|
||||
|
||||
func ColorTinyproxy() color.Color {
|
||||
return *color.New(color.FgHiMagenta)
|
||||
}
|
||||
|
||||
func ColorShadowsocks() color.Color {
|
||||
return *color.New(color.FgHiYellow)
|
||||
}
|
||||
|
||||
func ColorShadowsocksError() color.Color {
|
||||
return *color.New(color.FgHiRed)
|
||||
}
|
||||
|
||||
func ColorOpenvpn() color.Color {
|
||||
return *color.New(color.FgHiMagenta)
|
||||
}
|
||||
Reference in New Issue
Block a user