Skip to content

Commit 0cb98f6

Browse files
Revert palette file format back to JSON (#967)
* Some static typing and use notification to check if the theme has changed in swatches * Use Vector2i for scrolling, hide scrollbars in the node properties * More static typing improvements * More static typing & docstring improvements, remove some methods from Palettes.gd * [WIP] Go back to json for palettes instead of tres * Revert back to using dictionaries for palette colors instead of array Reverts part of the previous commit * Read width & height from files, don't store the name * Fix palette renaming * Copy non-json palettes into json files * Fix palette duplication * Add a new _fill_imported_palette_with_colors() to avoid duplicate code in import file methods * Fix palette file importing when not initialising * Export palettes as images * Replace "tres" with "json" filter in the open sprite dialog * When exporting a palette as an image, automatically set the file name to the palette name * Replace default palette files with json * Remove the Global.palette_panel variable, use signals instead. * Static typing in signals * Fix warning in Palettes.gd * Fix formatting * Add missing comments to the palette files * Update Palettes.gd * A few more static typing improvements
1 parent 18a74c7 commit 0cb98f6

28 files changed

+1059
-1438
lines changed
+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"colors": [
3+
{
4+
"color": "(0.0824, 0.0902, 0.102, 1)",
5+
"index": 0
6+
},
7+
{
8+
"color": "(0.4941, 0.0196, 0.1294, 1)",
9+
"index": 1
10+
},
11+
{
12+
"color": "(0.8392, 0.1373, 0.0667, 1)",
13+
"index": 2
14+
},
15+
{
16+
"color": "(1, 0.5137, 0.149, 1)",
17+
"index": 3
18+
},
19+
{
20+
"color": "(1, 0.8196, 0, 1)",
21+
"index": 4
22+
},
23+
{
24+
"color": "(0.9765, 0.9922, 1, 1)",
25+
"index": 5
26+
},
27+
{
28+
"color": "(1, 0.502, 0.6392, 1)",
29+
"index": 6
30+
},
31+
{
32+
"color": "(1, 0.149, 0.4549, 1)",
33+
"index": 7
34+
},
35+
{
36+
"color": "(0.5765, 0.1294, 0.4118, 1)",
37+
"index": 8
38+
},
39+
{
40+
"color": "(0.2588, 0, 0.4039, 1)",
41+
"index": 9
42+
},
43+
{
44+
"color": "(0.1373, 0.2863, 0.4588, 1)",
45+
"index": 10
46+
},
47+
{
48+
"color": "(0.4039, 0.6824, 0.8314, 1)",
49+
"index": 11
50+
},
51+
{
52+
"color": "(0.749, 1, 0.2314, 1)",
53+
"index": 12
54+
},
55+
{
56+
"color": "(0.0627, 0.8196, 0.4588, 1)",
57+
"index": 13
58+
},
59+
{
60+
"color": "(0, 0.4667, 0.6, 1)",
61+
"index": 14
62+
},
63+
{
64+
"color": "(0, 0.1569, 0.349, 1)",
65+
"index": 15
66+
}
67+
],
68+
"comment": "Author: PineTreePizza\nFound in Lospec by CheetoHead/greusser\nhttps://lospec.com/palette-list/bubblegum-16",
69+
"height": 2,
70+
"width": 8
71+
}

pixelorama_data/Palettes/BubbleGum16.tres

-113
This file was deleted.
+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"colors": [
3+
{
4+
"color": "(0.702, 0.3137, 0.0078, 1)",
5+
"index": 0
6+
},
7+
{
8+
"color": "(1, 0.6, 0.2667, 1)",
9+
"index": 1
10+
},
11+
{
12+
"color": "(1, 0.4392, 0, 1)",
13+
"index": 2
14+
},
15+
{
16+
"color": "(0, 0.6, 0.702, 1)",
17+
"index": 3
18+
},
19+
{
20+
"color": "(0, 0.8549, 1, 1)",
21+
"index": 4
22+
},
23+
{
24+
"color": "(0.702, 0.0078, 0.0078, 1)",
25+
"index": 5
26+
},
27+
{
28+
"color": "(1, 0.2667, 0.2667, 1)",
29+
"index": 6
30+
},
31+
{
32+
"color": "(1, 0.0078, 0.0039, 1)",
33+
"index": 7
34+
},
35+
{
36+
"color": "(0, 0.702, 0.2, 1)",
37+
"index": 8
38+
},
39+
{
40+
"color": "(0, 1, 0.2824, 1)",
41+
"index": 9
42+
},
43+
{
44+
"color": "(0.502, 0.0078, 0.702, 1)",
45+
"index": 10
46+
},
47+
{
48+
"color": "(0.7922, 0.2667, 1, 1)",
49+
"index": 11
50+
},
51+
{
52+
"color": "(0.702, 0, 0.9922, 1)",
53+
"index": 12
54+
},
55+
{
56+
"color": "(0.4941, 0.702, 0, 1)",
57+
"index": 13
58+
},
59+
{
60+
"color": "(0.7098, 1, 0, 1)",
61+
"index": 14
62+
},
63+
{
64+
"color": "(0.0078, 0.0667, 0.702, 1)",
65+
"index": 15
66+
},
67+
{
68+
"color": "(0.2667, 0.3294, 1, 1)",
69+
"index": 16
70+
},
71+
{
72+
"color": "(0.0039, 0.0824, 1, 1)",
73+
"index": 17
74+
},
75+
{
76+
"color": "(0.702, 0.549, 0, 1)",
77+
"index": 18
78+
},
79+
{
80+
"color": "(1, 0.7843, 0, 1)",
81+
"index": 19
82+
},
83+
{
84+
"color": "(0.0078, 0.6196, 0.702, 1)",
85+
"index": 20
86+
},
87+
{
88+
"color": "(0.4745, 0.9373, 1, 1)",
89+
"index": 21
90+
},
91+
{
92+
"color": "(0, 0.8824, 1, 1)",
93+
"index": 22
94+
},
95+
{
96+
"color": "(0.702, 0.302, 0, 1)",
97+
"index": 23
98+
},
99+
{
100+
"color": "(1, 0.4314, 0, 1)",
101+
"index": 24
102+
}
103+
],
104+
"comment": "Author: Erevoid",
105+
"height": 4,
106+
"width": 8
107+
}

0 commit comments

Comments
 (0)