Skip to content

Commit

Permalink
Don't use emojis on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Oct 13, 2020
1 parent 8ed7bb7 commit d4adf0d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ui/consts_unix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// +build !windows

package ui

const (
pagerStashIcon = "🔒"
)
7 changes: 7 additions & 0 deletions ui/consts_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// +build windows

package ui

const (
pagerStashIcon = "•"
)
5 changes: 2 additions & 3 deletions ui/pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const (
darkGreen = "#1C8760"
noteHeadingText = " Set Memo "
notePromptText = " > "
pagerStashIcon = "🔒"
)

var (
Expand All @@ -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())

Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit d4adf0d

Please sign in to comment.