Skip to content

Commit 7606bcb

Browse files
committed
add solarized themes
1 parent 45f8d44 commit 7606bcb

4 files changed

Lines changed: 261 additions & 1 deletion

File tree

CodeEdit.xcodeproj/project.pbxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
28A51006281701B40087B0CC /* codeedit-github-dark.json in Resources */ = {isa = PBXBuildFile; fileRef = 28A51004281701B40087B0CC /* codeedit-github-dark.json */; };
6464
28B0A19827E385C300B73177 /* NavigatorSidebarToolbarTop.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28B0A19727E385C300B73177 /* NavigatorSidebarToolbarTop.swift */; };
6565
28B8F884280FFE4600596236 /* NSTableView+Background.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28B8F883280FFE4600596236 /* NSTableView+Background.swift */; };
66+
28F43DDC2973840A008BBA45 /* codeedit-solarized-light.json in Resources */ = {isa = PBXBuildFile; fileRef = 28F43DDA2973840A008BBA45 /* codeedit-solarized-light.json */; };
67+
28F43DDD2973840A008BBA45 /* codeedit-solarized-dark.json in Resources */ = {isa = PBXBuildFile; fileRef = 28F43DDB2973840A008BBA45 /* codeedit-solarized-dark.json */; };
6668
28FFE1BF27E3A441001939DB /* NavigatorSidebarToolbarBottom.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28FFE1BE27E3A441001939DB /* NavigatorSidebarToolbarBottom.swift */; };
6769
2B7A583527E4BA0100D25D4E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468438427DC76E200F8E88E /* AppDelegate.swift */; };
6870
2B7AC06B282452FB0082A5B8 /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2B7AC06A282452FB0082A5B8 /* Media.xcassets */; };
@@ -439,6 +441,8 @@
439441
28A51004281701B40087B0CC /* codeedit-github-dark.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "codeedit-github-dark.json"; sourceTree = "<group>"; };
440442
28B0A19727E385C300B73177 /* NavigatorSidebarToolbarTop.swift */ = {isa = PBXFileReference; indentWidth = 4; lastKnownFileType = sourcecode.swift; path = NavigatorSidebarToolbarTop.swift; sourceTree = "<group>"; tabWidth = 4; };
441443
28B8F883280FFE4600596236 /* NSTableView+Background.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSTableView+Background.swift"; sourceTree = "<group>"; };
444+
28F43DDA2973840A008BBA45 /* codeedit-solarized-light.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "codeedit-solarized-light.json"; sourceTree = "<group>"; };
445+
28F43DDB2973840A008BBA45 /* codeedit-solarized-dark.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "codeedit-solarized-dark.json"; sourceTree = "<group>"; };
442446
28FFE1BE27E3A441001939DB /* NavigatorSidebarToolbarBottom.swift */ = {isa = PBXFileReference; indentWidth = 4; lastKnownFileType = sourcecode.swift; path = NavigatorSidebarToolbarBottom.swift; sourceTree = "<group>"; tabWidth = 4; };
443447
2B15CA0028254139004E8F22 /* OpenWithCodeEdit.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = OpenWithCodeEdit.entitlements; sourceTree = "<group>"; };
444448
2B7AC06A282452FB0082A5B8 /* Media.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Media.xcassets; sourceTree = "<group>"; };
@@ -880,6 +884,8 @@
880884
28069DA527F5BD320016BC47 /* DefaultThemes */ = {
881885
isa = PBXGroup;
882886
children = (
887+
28F43DDB2973840A008BBA45 /* codeedit-solarized-dark.json */,
888+
28F43DDA2973840A008BBA45 /* codeedit-solarized-light.json */,
883889
28A50FFF281673530087B0CC /* codeedit-xcode-dark.json */,
884890
28A51000281673530087B0CC /* codeedit-xcode-light.json */,
885891
28A51004281701B40087B0CC /* codeedit-github-dark.json */,
@@ -2414,12 +2420,14 @@
24142420
283BDCBD2972EEBD002AFF81 /* Package.resolved in Resources */,
24152421
B658FB3727DA9E1000EA4DBD /* Preview Assets.xcassets in Resources */,
24162422
28A51006281701B40087B0CC /* codeedit-github-dark.json in Resources */,
2423+
28F43DDD2973840A008BBA45 /* codeedit-solarized-dark.json in Resources */,
24172424
58A5DFA529339F6400D1BD5D /* default_keybindings.json in Resources */,
24182425
28A51002281673530087B0CC /* codeedit-xcode-light.json in Resources */,
24192426
28A51005281701B40087B0CC /* codeedit-github-light.json in Resources */,
24202427
D7211D4727E06BFE008F2ED7 /* Localizable.strings in Resources */,
24212428
28A51001281673530087B0CC /* codeedit-xcode-dark.json in Resources */,
24222429
B658FB3427DA9E1000EA4DBD /* Assets.xcassets in Resources */,
2430+
28F43DDC2973840A008BBA45 /* codeedit-solarized-light.json in Resources */,
24232431
474397C52893AC4B00518C8C /* codeedit-midnight.json in Resources */,
24242432
043C321A27E32295006AE443 /* MainMenu.xib in Resources */,
24252433
);
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"author" : "CodeEdit",
3+
"displayName" : "Solarized Dark",
4+
"editor" : {
5+
"invisibles" : {
6+
"color" : "#073642"
7+
},
8+
"comments" : {
9+
"color" : "#586E75"
10+
},
11+
"numbers" : {
12+
"color" : "#DC322F"
13+
},
14+
"commands" : {
15+
"color" : "#CB4B16"
16+
},
17+
"lineHighlight" : {
18+
"color" : "#073642"
19+
},
20+
"values" : {
21+
"color" : "#D33682"
22+
},
23+
"background" : {
24+
"color" : "#002B36"
25+
},
26+
"keywords" : {
27+
"color" : "#859900"
28+
},
29+
"text" : {
30+
"color" : "#839496"
31+
},
32+
"insertionPoint" : {
33+
"color" : "#839496"
34+
},
35+
"strings" : {
36+
"color" : "#2AA198"
37+
},
38+
"selection" : {
39+
"color" : "#586E75"
40+
},
41+
"types" : {
42+
"color" : "#268BD2"
43+
},
44+
"variables" : {
45+
"color" : "#B58900"
46+
},
47+
"attributes" : {
48+
"color" : "#6C71C4"
49+
},
50+
"characters" : {
51+
"color" : "#DC322F"
52+
}
53+
},
54+
"distributionURL" : "https:\/\/github.com\/CodeEditApp\/CodeEdit",
55+
"terminal" : {
56+
"white" : {
57+
"color" : "#D9D9D9"
58+
},
59+
"brightMagenta" : {
60+
"color" : "#AF52DE"
61+
},
62+
"brightRed" : {
63+
"color" : "#FF3B30"
64+
},
65+
"blue" : {
66+
"color" : "#007AFF"
67+
},
68+
"red" : {
69+
"color" : "#FF3B30"
70+
},
71+
"green" : {
72+
"color" : "#28CD41"
73+
},
74+
"boldText" : {
75+
"color" : "#D9D9D9"
76+
},
77+
"brightGreen" : {
78+
"color" : "#28CD41"
79+
},
80+
"background" : {
81+
"color" : "#1F2024"
82+
},
83+
"cursor" : {
84+
"color" : "#D9D9D9"
85+
},
86+
"selection" : {
87+
"color" : "#515B70"
88+
},
89+
"magenta" : {
90+
"color" : "#AF52DE"
91+
},
92+
"black" : {
93+
"color" : "#1F2024"
94+
},
95+
"text" : {
96+
"color" : "#D9D9D9"
97+
},
98+
"brightWhite" : {
99+
"color" : "#FFFFFF"
100+
},
101+
"brightBlue" : {
102+
"color" : "#007AFF"
103+
},
104+
"brightYellow" : {
105+
"color" : "#FFFF00"
106+
},
107+
"cyan" : {
108+
"color" : "#59ADC4"
109+
},
110+
"yellow" : {
111+
"color" : "#FFCC00"
112+
},
113+
"brightCyan" : {
114+
"color" : "#55BEF0"
115+
},
116+
"brightBlack" : {
117+
"color" : "#8E8E93"
118+
}
119+
},
120+
"version" : "0.0.1",
121+
"license" : "MIT",
122+
"type" : "dark",
123+
"name" : "codeedit-solarized-dark",
124+
"description" : "Solarized dark theme."
125+
}
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"author" : "CodeEdit",
3+
"displayName" : "Solarized Light",
4+
"editor" : {
5+
"invisibles" : {
6+
"color" : "#EEE8D5"
7+
},
8+
"comments" : {
9+
"color" : "#93A1A1"
10+
},
11+
"numbers" : {
12+
"color" : "#DC322F"
13+
},
14+
"commands" : {
15+
"color" : "#CB4B16"
16+
},
17+
"lineHighlight" : {
18+
"color" : "#EEE8D5"
19+
},
20+
"values" : {
21+
"color" : "#D33682"
22+
},
23+
"background" : {
24+
"color" : "#FDF6E3"
25+
},
26+
"keywords" : {
27+
"color" : "#859900"
28+
},
29+
"text" : {
30+
"color" : "#657B83"
31+
},
32+
"insertionPoint" : {
33+
"color" : "#657B83"
34+
},
35+
"strings" : {
36+
"color" : "#2AA198"
37+
},
38+
"selection" : {
39+
"color" : "#93A1A1"
40+
},
41+
"types" : {
42+
"color" : "#268BD2"
43+
},
44+
"variables" : {
45+
"color" : "#B58900"
46+
},
47+
"attributes" : {
48+
"color" : "#6C71C4"
49+
},
50+
"characters" : {
51+
"color" : "#DC322F"
52+
}
53+
},
54+
"distributionURL" : "https:\/\/github.com\/CodeEditApp\/CodeEdit",
55+
"terminal" : {
56+
"white" : {
57+
"color" : "#D9D9D9"
58+
},
59+
"brightMagenta" : {
60+
"color" : "#AF52DE"
61+
},
62+
"brightRed" : {
63+
"color" : "#FF3B30"
64+
},
65+
"blue" : {
66+
"color" : "#007AFF"
67+
},
68+
"red" : {
69+
"color" : "#FF3B30"
70+
},
71+
"green" : {
72+
"color" : "#28CD41"
73+
},
74+
"boldText" : {
75+
"color" : "#D9D9D9"
76+
},
77+
"brightGreen" : {
78+
"color" : "#28CD41"
79+
},
80+
"background" : {
81+
"color" : "#1F2024"
82+
},
83+
"cursor" : {
84+
"color" : "#D9D9D9"
85+
},
86+
"selection" : {
87+
"color" : "#515B70"
88+
},
89+
"magenta" : {
90+
"color" : "#AF52DE"
91+
},
92+
"black" : {
93+
"color" : "#1F2024"
94+
},
95+
"text" : {
96+
"color" : "#D9D9D9"
97+
},
98+
"brightWhite" : {
99+
"color" : "#FFFFFF"
100+
},
101+
"brightBlue" : {
102+
"color" : "#007AFF"
103+
},
104+
"brightYellow" : {
105+
"color" : "#FFFF00"
106+
},
107+
"cyan" : {
108+
"color" : "#59ADC4"
109+
},
110+
"yellow" : {
111+
"color" : "#FFCC00"
112+
},
113+
"brightCyan" : {
114+
"color" : "#55BEF0"
115+
},
116+
"brightBlack" : {
117+
"color" : "#8E8E93"
118+
}
119+
},
120+
"version" : "0.0.1",
121+
"license" : "MIT",
122+
"type" : "light",
123+
"name" : "codeedit-solarized-light",
124+
"description" : "Solarized light theme."
125+
}

CodeEdit/Features/AppPreferences/Sections/ThemePreferences/Model/ThemeModel.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ final class ThemeModel: ObservableObject {
214214
"codeedit-xcode-light",
215215
"codeedit-github-dark",
216216
"codeedit-github-light",
217-
"codeedit-midnight"
217+
"codeedit-midnight",
218+
"codeedit-solarized-dark",
219+
"codeedit-solarized-light"
218220
]
219221
for themeName in bundledThemeNames {
220222
guard let defaultUrl = Bundle.main.url(forResource: themeName, withExtension: "json") else {

0 commit comments

Comments
 (0)