Class ViewSettings
java.lang.Object
io.github.jbastgen.stemma.app.config.ViewSettings
UI settings. These correspond to the "Tweaks" of the design prototype.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow the commit graph is drawn.static enumHow the library shows the repositories.static enumHow a repository is laid out. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe accent colour as#rrggbb; empty = the colour of the theme.doubleThe share of the width of those panels that the list of changed files takes, in percent; changed by dragging.doubleHeight of the panels below the history (changed files and details, or working tree and commit form); changed by dragging.The company branding (feature 16).booleanThe icons of the toolbar of a repository in colour (true) or flat grey.intUnchanged lines shown before and after each change in the diff view (3 like git; 100000 = all).booleanTheme "Automatic": the light or dark look follows the operating system (where it tells, seeSystemTheme);themeis the fallback.The colours of the lanes of the commit graph,#rrggbbseparated by commas; fewer than two = the colours of the theme.Rules that pin a colour to branches, one per line:release/* = #22aa66.doubleWidth of the list in the library's "list + preview" layout; changed by dragging its divider.Whatbranding.jsonof the configuration folder sets (feature 18); it replaces the branding, accent and graph colours without being stored.The main view of each repository (feature 37), by the path of the repository:HISTORY,FILESorOVERVIEW.doubleWidth of the sidebar in a repository view; changed by dragging its divider.booleantrue = side-by-side diff, false = unified.The bright look is the default.doubledoubleThe size of the window when Stemma ended in its normal state (not maximized), 0 = none yet; remembered for the next start (feature 62).booleanLong lines of a diff are wrapped (else the diff scrolls sideways). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()A deep copy, for the settings dialog to edit.voidcopyLookFrom(ViewSettings other) Takes over the look and layout choices (not the panel widths) ofother.The accent in use: the primary brand colour while the branding is on, else the chosen one.The branding in use.The graph colours in use.The rules for the colours of branches in use.The theme that is shown: the one of the operating system while "Automatic" is on and the system tells, elsetheme.
-
Field Details
-
theme
The bright look is the default. -
followSystem
public boolean followSystemTheme "Automatic": the light or dark look follows the operating system (where it tells, seeSystemTheme);themeis the fallback. -
libraryLayout
-
repoLayout
-
graphStyle
-
splitDiff
public boolean splitDifftrue = side-by-side diff, false = unified. -
colorToolbar
public boolean colorToolbarThe icons of the toolbar of a repository in colour (true) or flat grey. -
diffContext
public int diffContextUnchanged lines shown before and after each change in the diff view (3 like git; 100000 = all). -
wrapDiff
public boolean wrapDiffLong lines of a diff are wrapped (else the diff scrolls sideways). -
accent
The accent colour as#rrggbb; empty = the colour of the theme. -
graphColors
The colours of the lanes of the commit graph,#rrggbbseparated by commas; fewer than two = the colours of the theme. -
graphRules
Rules that pin a colour to branches, one per line:release/* = #22aa66. -
repoViews
The main view of each repository (feature 37), by the path of the repository:HISTORY,FILESorOVERVIEW. -
brand
The company branding (feature 16). -
managed
Whatbranding.jsonof the configuration folder sets (feature 18); it replaces the branding, accent and graph colours without being stored. -
sidebarWidth
public double sidebarWidthWidth of the sidebar in a repository view; changed by dragging its divider. -
libraryListWidth
public double libraryListWidthWidth of the list in the library's "list + preview" layout; changed by dragging its divider. -
bottomHeight
public double bottomHeightHeight of the panels below the history (changed files and details, or working tree and commit form); changed by dragging. -
windowWidth
public double windowWidthThe size of the window when Stemma ended in its normal state (not maximized), 0 = none yet; remembered for the next start (feature 62). -
windowHeight
public double windowHeight -
bottomFilesPercent
public double bottomFilesPercentThe share of the width of those panels that the list of changed files takes, in percent; changed by dragging.
-
-
Constructor Details
-
ViewSettings
public ViewSettings()
-
-
Method Details
-
effectiveTheme
The theme that is shown: the one of the operating system while "Automatic" is on and the system tells, elsetheme. -
effectiveBrand
The branding in use. -
effectiveAccent
The accent in use: the primary brand colour while the branding is on, else the chosen one. -
effectiveGraphColors
The graph colours in use. -
effectiveGraphRules
The rules for the colours of branches in use. -
copyLookFrom
Takes over the look and layout choices (not the panel widths) ofother. -
copy
A deep copy, for the settings dialog to edit.
-