Don't use emojis on Windows

This commit is contained in:
Christian Rocha 2020-10-13 11:27:41 -04:00
parent 8ed7bb7717
commit d4adf0d856
No known key found for this signature in database
GPG key ID: D6CC7A16E5878018
3 changed files with 16 additions and 3 deletions

7
ui/consts_unix.go Normal file
View file

@ -0,0 +1,7 @@
// +build !windows
package ui
const (
pagerStashIcon = "🔒"
)

7
ui/consts_windows.go Normal file
View file

@ -0,0 +1,7 @@
// +build windows
package ui
const (
pagerStashIcon = "•"
)

View file

@ -29,7 +29,6 @@ const (
darkGreen = "#1C8760"
noteHeadingText = " Set Memo "
notePromptText = " > "
pagerStashIcon = "🔒"
)
var (
@ -49,7 +48,7 @@ var (
statusBarHelpStyle = newStyle(statusBarNoteFg.String(), common.NewColorPair("#323232", "#DCDCDC").String())
statusBarStashDotStyle = newStyle(common.Green.String(), statusBarBg.String())
statusBarMessageStyle = newStyle(mintGreen, darkGreen)
statusBarMessageStashDotStyle = newStyle(mintGreen, darkGreen)
statusBarMessageStashIconStyle = newStyle(mintGreen, darkGreen)
statusBarMessageScrollPosStyle = newStyle(mintGreen, darkGreen)
statusBarMessageHelpStyle = newStyle("#B6FFE4", common.Green.String())
@ -410,7 +409,7 @@ func pagerStatusBarView(b *strings.Builder, m pagerModel) {
statusIndicator = statusBarNoteStyle(" ") + spinner.View(m.spinner)
}
} else if isStashed && showStatusMessage {
statusIndicator = statusBarMessageStashDotStyle(" " + pagerStashIcon)
statusIndicator = statusBarMessageStashIconStyle(" " + pagerStashIcon)
} else if isStashed {
statusIndicator = statusBarStashDotStyle(" " + pagerStashIcon)
}