diff --git a/ui/consts_unix.go b/ui/consts_unix.go new file mode 100644 index 0000000..fd13ad3 --- /dev/null +++ b/ui/consts_unix.go @@ -0,0 +1,7 @@ +// +build !windows + +package ui + +const ( + pagerStashIcon = "🔒" +) diff --git a/ui/consts_windows.go b/ui/consts_windows.go new file mode 100644 index 0000000..25f9851 --- /dev/null +++ b/ui/consts_windows.go @@ -0,0 +1,7 @@ +// +build windows + +package ui + +const ( + pagerStashIcon = "•" +) diff --git a/ui/pager.go b/ui/pager.go index 3becb6a..d61bde5 100644 --- a/ui/pager.go +++ b/ui/pager.go @@ -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) }