Skip to content

Commit

Permalink
fix 2022-10-30-customizing-the-graph-colors-for-smartgit-22-1.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tmssngr committed Sep 14, 2023
1 parent 0810051 commit cc19454
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _posts/2017/2017-02-21-playing-with-themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ date: "2017-02-21"
categories:
- "smartgit"
tags:
- "smartgit"
- "theming"
---

SmartGit 17 allows to use theme files that can define alternative colors for foreground or background of certain controls.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
---
title: "Customizing the Graph colors for SmartGit 22.1"
date: "2022-10-30"
categories:
categories:
- "smartgit"
tags:
- "theming"
---

For SmartGit 22.1 we have extended the Graph color palette to 16 colors. Our main goal was to make collisions less likely. This has become an important objective as we have changed the overall Graph coloring logic to use constant, hash-based colors per branch. A drawback of the enlarged palette is that colors are not that distinctive anymore.

If you prefer to have different colors, you can use a custom theme file which just overrides _graph.connector.<number>_ values, then configure this file in Preferences, User Interface. For example, to have an almost identical palette as for version 21.x, you have to add one more color (e.g. red) and then duplicate these first 8 slots to slots 9-16:

If you prefer to have different colors, you can use a custom theme file which just overrides `graph.connector.<number>` values, then configure this file in Preferences, User Interface. For example, to have an almost identical palette as for version 21.x, you have to add one more color (e.g. red) and then duplicate these first 8 slots to slots 9-16:
```
graph.connector.1=derive(#80ff00, 0.7, 0.7)
graph.connector.2=derive(#0000ff, 0.6, 0.9)
graph.connector.3=derive(#ff8000, 0.6, 0.95)
Expand All @@ -25,9 +27,7 @@ graph.connector.13=derive(#0080ff, 0.7, 0.8)
graph.connector.14=derive(#ffff00, 0.8, 0.7)
graph.connector.15=derive(#00ff40, 0.8, 0.7)
graph.connector.16=derive(#ff0000, 0.8, 0.7)

A compressed theme file [graph-colors-v21.theme](https://www.syntevo.com/blog/wp-content/uploads/2022/10/graph-colors-v21.theme_.zip) with exactly this configuration is attached to this post, it just needs to be unpacked.

```
If you think to have found a nice palette for version 22.1, please share with us at [[email protected]](mailto:[email protected]).

For more details on custom themes, have a look at [Playing with themes](https://www.syntevo.com/blog/?p=4391).
4 changes: 4 additions & 0 deletions tag/theming.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: tagpage
tag: 'theming'
---

0 comments on commit cc19454

Please sign in to comment.