Skip to content

Commit c29960a

Browse files
committed
Presets: fix regression #606
1 parent 315cb24 commit c29960a

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

presets/examples/11.jsonc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"type": "small"
55
},
66
"display": {
7-
"percentType": 9,
7+
"percent": {
8+
"type": 9
9+
},
810
"separator": "\u001b[31m-> "
911
},
1012
"modules": [

presets/examples/8.jsonc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
"color": {
99
"keys": "magenta"
1010
},
11-
"sizeNdigits": 0,
12-
"sizeMaxPrefix": "MB",
13-
"percentType": 9
11+
"size": {
12+
"ndigits": 0,
13+
"maxPrefix": "MB"
14+
},
15+
"percent": {
16+
"type": 9
17+
}
1418
},
1519
"modules": [
1620
{

presets/examples/9.jsonc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
"type": "small"
55
},
66
"display": {
7-
"percentType": 6,
87
"keyWidth": 11,
98
"bar": {
109
"charElapsed": "=",
1110
"charTotal": "-",
1211
"width": 13
12+
},
13+
"percent": {
14+
"type": 9
1315
}
1416
},
1517
"modules": [

src/data/config_user.jsonc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
}
1010
},
1111
"display": {
12-
"percentType": 9 // colored percent number
12+
"percent": {
13+
"type": 9
14+
} // colored percent number
1315
},
1416
"modules": [
1517
"title",

0 commit comments

Comments
 (0)