Skip to content

Commit e373bb7

Browse files
committed
update: new configuration format
1 parent 8e33992 commit e373bb7

File tree

3 files changed

+100
-82
lines changed

3 files changed

+100
-82
lines changed

README.md

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,55 @@ Custom Themes for SourceGit
66

77
1. Create a new json file, and provide your favorite colors with follow keys:
88

9+
* Basic Colors
10+
911
| Key | Description |
1012
| --- | --- |
11-
| Color.Window | Window background color |
12-
| Color.WindowBorder | Window border color. Only used on Linux. |
13-
| Color.TitleBar | Title bar background color |
14-
| Color.ToolBar | Tool bar background color |
15-
| Color.Popup | Popup panel background color |
16-
| Color.Contents | Background color used in inputs, data grids, file content viewer, change lists, text diff viewer, etc. |
17-
| Color.Badge | Badge background color |
18-
| Color.BadgeFG | Badge foreground color |
19-
| Color.Conflict | Conflict panel background color |
20-
| Color.ConflictForeground | Conflict panel foreground color |
21-
| Color.DecoratorIconBG | Background color for commit ref icon |
22-
| Color.DecoratorIcon | Foreground color for commit ref icon |
23-
| Color.DecoratorBranch | Background color for commit branch ref name |
24-
| Color.DecoratorTag | Background color for commit tag ref name |
25-
| Color.DecoratorFG | Foreground color for commit ref name |
26-
| Color.Border0 | Border color used in some controls, like Window, Tab, Toolbar, etc. |
27-
| Color.Border1 | Border color used in inputs, like TextBox, ComboBox, etc. |
28-
| Color.Border2 | Border color used in visual lines, like seperators, Rectange, etc. |
29-
| Color.FlatButton.Background | Flat button background color, like `Cancel`, `Commit & Push` button |
30-
| Color.FlatButton.BackgroundHovered | Flat button background color when hovered, like `Cancel` button |
31-
| Color.FG1 | Primary foreground color for all text elements |
32-
| Color.FG2 | Secondary foreground color for all text elements |
33-
| Color.Diff.EmptyBG | Background color used in empty lines in diff viewer |
34-
| Color.Diff.AddedBG | Background color used in added lines in diff viewer |
35-
| Color.Diff.DeletedBG | Background color used in deleted lines in diff viewer |
36-
| Color.Diff.AddedHighlight | Background color used for changed words in added lines in diff viewer |
37-
| Color.Diff.DeletedHighlight | Background color used for changed words in deleted lines in diff viewer |
13+
| Window | Window background color |
14+
| WindowBorder | Window border color. Only used on Linux. |
15+
| TitleBar | Title bar background color |
16+
| ToolBar | Tool bar background color |
17+
| Popup | Popup panel background color |
18+
| Contents | Background color used in inputs, data grids, file content viewer, change lists, text diff viewer, etc. |
19+
| Badge | Badge background color |
20+
| BadgeFG | Badge foreground color |
21+
| Conflict | Conflict panel background color |
22+
| ConflictForeground | Conflict panel foreground color |
23+
| DecoratorIconBG | Background color for commit ref icon |
24+
| DecoratorIcon | Foreground color for commit ref icon |
25+
| DecoratorBranch | Background color for commit branch ref name |
26+
| DecoratorTag | Background color for commit tag ref name |
27+
| DecoratorFG | Foreground color for commit ref name |
28+
| Border0 | Border color used in some controls, like Window, Tab, Toolbar, etc. |
29+
| Border1 | Border color used in inputs, like TextBox, ComboBox, etc. |
30+
| Border2 | Border color used in visual lines, like seperators, Rectange, etc. |
31+
| FlatButton.Background | Flat button background color, like `Cancel`, `Commit & Push` button |
32+
| FlatButton.BackgroundHovered | Flat button background color when hovered, like `Cancel` button |
33+
| FG1 | Primary foreground color for all text elements |
34+
| FG2 | Secondary foreground color for all text elements |
35+
| Diff.EmptyBG | Background color used in empty lines in diff viewer |
36+
| Diff.AddedBG | Background color used in added lines in diff viewer |
37+
| Diff.DeletedBG | Background color used in deleted lines in diff viewer |
38+
| Diff.AddedHighlight | Background color used for changed words in added lines in diff viewer |
39+
| Diff.DeletedHighlight | Background color used for changed words in deleted lines in diff viewer |
40+
41+
* Colors used in commit graph.
42+
43+
Array of colors used to draw commit graph. Optional. At least one color is needed.
3844

3945
For example:
4046

4147
```json
4248
{
43-
"Color.Window": "#FFFF6059"
49+
"Basic": {
50+
"Window": "#FFFF6059"
51+
},
52+
"Graph": [
53+
"Red",
54+
"Yellow",
55+
"Green",
56+
"#FF00FF",
57+
]
4458
}
4559
```
4660

themes/JetBrainsDark.json

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
{
2-
"Color.Window": "#2b2d30",
3-
"Color.WindowBorder": "#2b2d30",
4-
"Color.TitleBar": "#2b2d30",
5-
"Color.ToolBar": "#2b2d30",
6-
"Color.Popup": "#2b2d30",
7-
"Color.Contents": "#1e1f22",
8-
"Color.Badge": "#3574f0",
9-
"Color.BadgeFG": "#ffffff",
10-
"Color.Conflict": "#45302b",
11-
"Color.ConflictForeground": "#ced0d6",
12-
"Color.Border0": "#1e1f22",
13-
"Color.Border1": "#4e5157",
14-
"Color.Border2": "#4e5157",
15-
"Color.FlatButton.Background": "#2b2d30",
16-
"Color.FlatButton.BackgroundHovered": "#393b40",
17-
"Color.FG1": "#ced0d6",
18-
"Color.FG2": "#ced0d6",
19-
"Color.Diff.EmptyBG": "#484a4a",
20-
"Color.Diff.AddedBG": "#222e2a",
21-
"Color.Diff.DeletedBG": "#2e2626",
22-
"Color.Diff.AddedHighlight": "#294436",
23-
"Color.Diff.DeletedHighlight": "#45302b",
24-
"Color.DecoratorIconBG": "#404244",
25-
"Color.DecoratorIcon": "#ffffff",
26-
"Color.DecoratorBranch": "#3574f0",
27-
"Color.DecoratorTag": "#57935d",
28-
"Color.DecoratorFG": "#ffffff"
2+
"Basic": {
3+
"Window": "#2b2d30",
4+
"WindowBorder": "#2b2d30",
5+
"TitleBar": "#2b2d30",
6+
"ToolBar": "#2b2d30",
7+
"Popup": "#2b2d30",
8+
"Contents": "#1e1f22",
9+
"Badge": "#3574f0",
10+
"BadgeFG": "#ffffff",
11+
"Conflict": "#45302b",
12+
"ConflictForeground": "#ced0d6",
13+
"Border0": "#1e1f22",
14+
"Border1": "#4e5157",
15+
"Border2": "#4e5157",
16+
"FlatButton.Background": "#2b2d30",
17+
"FlatButton.BackgroundHovered": "#393b40",
18+
"FG1": "#ced0d6",
19+
"FG2": "#ced0d6",
20+
"Diff.EmptyBG": "#484a4a",
21+
"Diff.AddedBG": "#222e2a",
22+
"Diff.DeletedBG": "#2e2626",
23+
"Diff.AddedHighlight": "#294436",
24+
"Diff.DeletedHighlight": "#45302b",
25+
"DecoratorIconBG": "#404244",
26+
"DecoratorIcon": "#ffffff",
27+
"DecoratorBranch": "#3574f0",
28+
"DecoratorTag": "#57935d",
29+
"DecoratorFG": "#ffffff"
30+
}
2931
}
Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
{
2-
"Color.Window": "#2b2d30",
3-
"Color.WindowBorder": "#2b2d30",
4-
"Color.TitleBar": "#222426",
5-
"Color.ToolBar": "#2b2d30",
6-
"Color.Popup": "#2b2d30",
7-
"Color.Contents": "#1e1f22",
8-
"Color.Badge": "#3574f0",
9-
"Color.BadgeFG": "#ffffff",
10-
"Color.Conflict": "#45302b",
11-
"Color.ConflictForeground": "#ced0d6",
12-
"Color.Border0": "#1e1f22",
13-
"Color.Border1": "#4e5157",
14-
"Color.Border2": "#4e5157",
15-
"Color.FlatButton.Background": "#2b2d30",
16-
"Color.FlatButton.BackgroundHovered": "#393b40",
17-
"Color.FG1": "#ced0d6",
18-
"Color.FG2": "#ced0d6",
19-
"Color.Diff.EmptyBG": "#101010",
20-
"Color.Diff.AddedBG": "#1c322b",
21-
"Color.Diff.DeletedBG": "#412323",
22-
"Color.Diff.AddedHighlight": "#265444",
23-
"Color.Diff.DeletedHighlight": "#883838",
24-
"Color.DecoratorIconBG": "#404244",
25-
"Color.DecoratorIcon": "#ffffff",
26-
"Color.DecoratorBranch": "#3574f0",
27-
"Color.DecoratorTag": "#57935d",
28-
"Color.DecoratorFG": "#ffffff"
2+
"Basic": {
3+
"Window": "#2b2d30",
4+
"WindowBorder": "#2b2d30",
5+
"TitleBar": "#222426",
6+
"ToolBar": "#2b2d30",
7+
"Popup": "#2b2d30",
8+
"Contents": "#1e1f22",
9+
"Badge": "#3574f0",
10+
"BadgeFG": "#ffffff",
11+
"Conflict": "#45302b",
12+
"ConflictForeground": "#ced0d6",
13+
"Border0": "#1e1f22",
14+
"Border1": "#4e5157",
15+
"Border2": "#4e5157",
16+
"FlatButton.Background": "#2b2d30",
17+
"FlatButton.BackgroundHovered": "#393b40",
18+
"FG1": "#ced0d6",
19+
"FG2": "#ced0d6",
20+
"Diff.EmptyBG": "#101010",
21+
"Diff.AddedBG": "#1c322b",
22+
"Diff.DeletedBG": "#412323",
23+
"Diff.AddedHighlight": "#265444",
24+
"Diff.DeletedHighlight": "#883838",
25+
"DecoratorIconBG": "#404244",
26+
"DecoratorIcon": "#ffffff",
27+
"DecoratorBranch": "#3574f0",
28+
"DecoratorTag": "#57935d",
29+
"DecoratorFG": "#ffffff"
30+
}
2931
}

0 commit comments

Comments
 (0)