|
1 | 1 | # sourcegit-theme
|
| 2 | + |
2 | 3 | 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 | + |
0 commit comments