mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
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:
parent
940d7cc80f
commit
67c81c5b14
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue