Change default spinner frames and rate

I find that this looks a little nicer, and it reduces CPU load by not
spinning so fast.
This commit is contained in:
Stefan Haller 2026-07-23 13:12:59 +02:00
parent 940d7cc80f
commit 67c81c5b14
4 changed files with 17 additions and 17 deletions

View file

@ -336,13 +336,13 @@ gui:
spinner:
# The frames of the spinner animation.
frames:
- '|'
- /
- '-'
- \
- ●∙∙
- ∙●∙
- ∙∙●
- ∙●∙
# The "speed" of the spinner in milliseconds.
rate: 50
rate: 180
# Status panel view.
# One of 'dashboard' (default) | 'allBranchesLog'

View file

@ -922,8 +922,8 @@ func GetDefaultConfigForPlatform(platform string) *UserConfig {
PortraitModeAutoMinHeight: 46,
FilterMode: "substring",
Spinner: SpinnerConfig{
Frames: []string{"|", "/", "-", "\\"},
Rate: 50,
Frames: []string{"●∙∙", "∙●∙", "∙∙●", "∙●∙"},
Rate: 180,
},
StatusPanelView: "dashboard",
SwitchToFilesAfterStashPop: true,

View file

@ -162,7 +162,7 @@ func Test_getBranchDisplayStrings(t *testing.T) {
useIcons: false,
checkedOutByWorktree: false,
showDivergenceCfg: "none",
expected: []string{"1m", "", "branch_name Pushing |"},
expected: []string{"1m", "", "branch_name Pushing ●∙∙"},
},
{
branch: &models.Branch{
@ -282,7 +282,7 @@ func Test_getBranchDisplayStrings(t *testing.T) {
useIcons: false,
checkedOutByWorktree: false,
showDivergenceCfg: "none",
expected: []string{"1m", "", "branc… Pushing |"},
expected: []string{"1m", "", "bra… Pushing ●∙∙"},
},
{
branch: &models.Branch{Name: "abc", Recency: "1m"},
@ -292,7 +292,7 @@ func Test_getBranchDisplayStrings(t *testing.T) {
useIcons: false,
checkedOutByWorktree: false,
showDivergenceCfg: "none",
expected: []string{"1m", "", "abc Pushing |"},
expected: []string{"1m", "", "abc Pushing ●∙∙"},
},
{
branch: &models.Branch{Name: "ab", Recency: "1m"},
@ -302,7 +302,7 @@ func Test_getBranchDisplayStrings(t *testing.T) {
useIcons: false,
checkedOutByWorktree: false,
showDivergenceCfg: "none",
expected: []string{"1m", "", "ab Pushing |"},
expected: []string{"1m", "", "ab Pushing ●∙∙"},
},
{
branch: &models.Branch{Name: "a", Recency: "1m"},
@ -312,7 +312,7 @@ func Test_getBranchDisplayStrings(t *testing.T) {
useIcons: false,
checkedOutByWorktree: false,
showDivergenceCfg: "none",
expected: []string{"1m", "", "a Pushing |"},
expected: []string{"1m", "", "a Pushing ●∙∙"},
},
{
branch: &models.Branch{

View file

@ -3631,17 +3631,17 @@
"type": "array",
"description": "The frames of the spinner animation.",
"default": [
"|",
"/",
"-",
"\\"
"●∙∙",
"∙●∙",
"∙∙●",
"∙●∙"
]
},
"rate": {
"type": "integer",
"minimum": 1,
"description": "The \"speed\" of the spinner in milliseconds.",
"default": 50
"default": 180
}
},
"additionalProperties": false,