8000 Add JetBrains Dark theme from @MelonHell · sourcegit-scm/sourcegit-theme@ff450f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit ff450f9

Browse files
committed
Add JetBrains Dark theme from @MelonHell
1 parent de52c3e commit ff450f9

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,55 @@
11
# sourcegit-theme
2+
23
Custom Themes for SourceGit
4+
5+
## How to make & use your theme
6+
7+
1. Create a new json file, and provide your favorite colors with follow keys:
8+
9+
| Key | Description |
10+
| --- | --- |
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 |
38+
39+
For example:
40+
41+
```json
42+
{
43+
"Color.Window": "#FFFF6059"
44+
}
45+
```
46+
47+
2. Open `Preference` -> `Appearance`, choose the json file you just created in `Custom Color Schema`.
48+
49+
> **NOTE**: The `Custom Color Schema` will override the colors with same keys in current active theme.
50+
51+
## Screenshots
52+
53+
[JetBrainsDark](./themes/JetBrainsDark.json) from [@MelonHell](https://gist.github.com/MelonHell)
54+
55+
![JetBrainsDark](screenshots/JetBrainsDark.png)

screenshots/JetBrainsDark.png

355 KB
Loading

themes/JetBrainsDark.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
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"
29+
}

0 commit comments

Comments
 (0)
0