mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Don't use emojis on Windows
This commit is contained in:
parent
8ed7bb7717
commit
d4adf0d856
3 changed files with 16 additions and 3 deletions
7
ui/consts_unix.go
Normal file
7
ui/consts_unix.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
// +build !windows
|
||||
|
||||
package ui
|
||||
|
||||
const (
|
||||
pagerStashIcon = "🔒"
|
||||
)
|
7
ui/consts_windows.go
Normal file
7
ui/consts_windows.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
// +build windows
|
||||
|
||||
package ui
|
||||
|
||||
const (
|
||||
pagerStashIcon = "•"
|
||||
)
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue