Browse Source

Updates images for the settings editor

main
Eric Amodio 6 years ago
parent
commit
67c4a334d2
28 changed files with 171 additions and 171 deletions
  1. +147
    -147
      src/ui/config.ts
  2. BIN
      src/ui/images/settings/file-history-explorer-avatars.png
  3. BIN
      src/ui/images/settings/file-history-explorer.png
  4. BIN
      src/ui/images/settings/repositories-explorer-avatars.png
  5. BIN
      src/ui/images/settings/repositories-explorer-tree-compact.png
  6. BIN
      src/ui/images/settings/repositories-explorer-tree.png
  7. BIN
      src/ui/images/settings/repositories-explorer.png
  8. BIN
      src/ui/images/settings/results-explorer-avatars.png
  9. BIN
      src/ui/images/settings/results-explorer-tree-compact.png
  10. BIN
      src/ui/images/settings/results-explorer-tree.png
  11. BIN
      src/ui/images/settings/results-explorer.png
  12. BIN
      src/ui/images/settings/view-compare-avatars.png
  13. BIN
      src/ui/images/settings/view-compare-tree-compact.png
  14. BIN
      src/ui/images/settings/view-compare-tree.png
  15. BIN
      src/ui/images/settings/view-compare.png
  16. BIN
      src/ui/images/settings/view-file-history-avatars.png
  17. BIN
      src/ui/images/settings/view-file-history.png
  18. BIN
      src/ui/images/settings/view-line-history-avatars.png
  19. BIN
      src/ui/images/settings/view-line-history.png
  20. BIN
      src/ui/images/settings/view-repositories-avatars.png
  21. BIN
      src/ui/images/settings/view-repositories-tree-compact.png
  22. BIN
      src/ui/images/settings/view-repositories-tree.png
  23. BIN
      src/ui/images/settings/view-repositories.png
  24. BIN
      src/ui/images/settings/view-search-avatars.png
  25. BIN
      src/ui/images/settings/view-search-tree-compact.png
  26. BIN
      src/ui/images/settings/view-search-tree.png
  27. BIN
      src/ui/images/settings/view-search.png
  28. +24
    -24
      src/ui/settings/index.html

+ 147
- 147
src/ui/config.ts View File

@ -1,5 +1,97 @@
'use strict';
export interface Config {
blame: {
avatars: boolean;
compact: boolean;
dateFormat: string | null;
format: string;
heatmap: {
enabled: boolean;
location: 'left' | 'right';
};
highlight: {
enabled: boolean;
locations: HighlightLocations[];
};
ignoreWhitespace: boolean;
separateLines: boolean;
toggleMode: AnnotationsToggleMode;
};
currentLine: {
scrollable: boolean;
dateFormat: string | null;
enabled: boolean;
format: string;
};
codeLens: CodeLensConfig;
debug: boolean;
defaultDateFormat: string | null;
defaultDateStyle: DateStyle;
defaultGravatarsStyle: GravatarDefaultStyle;
heatmap: {
ageThreshold: number;
coldColor: string;
hotColor: string;
toggleMode: AnnotationsToggleMode;
};
hovers: {
annotations: {
changes: boolean;
details: boolean;
enabled: boolean;
over: 'line' | 'annotation';
};
currentLine: {
changes: boolean;
details: boolean;
enabled: boolean;
over: 'line' | 'annotation';
};
avatars: boolean;
enabled: boolean;
};
insiders: boolean;
keymap: KeyMap;
menus: boolean | MenuConfig;
mode: {
active: string;
statusBar: {
enabled: boolean;
alignment: 'left' | 'right';
};
};
modes: { [key: string]: ModeConfig };
outputLevel: LogLevel;
recentChanges: {
highlight: {
locations: HighlightLocations[];
};
toggleMode: AnnotationsToggleMode;
};
remotes: RemotesConfig[];
showWhatsNewAfterUpgrades: boolean;
statusBar: {
alignment: 'left' | 'right';
command: StatusBarCommand;
dateFormat: string | null;
enabled: boolean;
format: string;
reduceFlicker: boolean;
};
strings: {
codeLens: {
unsavedChanges: {
recentChangeAndAuthors: string;
recentChangeOnly: string;
authorsOnly: string;
};
};
};
views: ViewsConfig;
advanced: AdvancedConfig;
}
export enum AnnotationsToggleMode {
File = 'file',
Window = 'window'
@ -14,12 +106,6 @@ export enum CodeLensCommand {
ToggleFileBlame = 'gitlens.toggleFileBlame'
}
export interface CodeLensLanguageScope {
language: string | undefined;
scopes?: CodeLensScopes[];
symbolScopes?: string[];
}
export enum CodeLensScopes {
Document = 'document',
Containers = 'containers',
@ -39,17 +125,6 @@ export enum DateStyle {
Relative = 'relative'
}
export enum ViewBranchesLayout {
List = 'list',
Tree = 'tree'
}
export enum ViewFilesLayout {
Auto = 'auto',
List = 'list',
Tree = 'tree'
}
export enum FileAnnotationType {
Blame = 'blame',
Heatmap = 'heatmap',
@ -95,6 +170,17 @@ export enum StatusBarCommand {
ToggleFileBlame = 'gitlens.toggleFileBlame'
}
export enum ViewBranchesLayout {
List = 'list',
Tree = 'tree'
}
export enum ViewFilesLayout {
Auto = 'auto',
List = 'list',
Tree = 'tree'
}
export interface AdvancedConfig {
blame: {
customArguments: string[] | null;
@ -142,31 +228,16 @@ export interface CodeLensConfig {
symbolScopes: string[];
}
export interface ViewsConfig {
avatars: boolean;
fileHistory: FileHistoryViewConfig;
files: {
layout: ViewFilesLayout;
compact: boolean;
threshold: number;
};
commitFileFormat: string;
commitFormat: string;
compare: CompareViewConfig;
// dateFormat: string | null;
defaultItemLimit: number;
lineHistory: LineHistoryViewConfig;
repositories: RepositoriesViewConfig;
search: SearchViewConfig;
stashFileFormat: string;
stashFormat: string;
statusFileFormat: string;
export interface CodeLensLanguageScope {
language: string | undefined;
scopes?: CodeLensScopes[];
symbolScopes?: string[];
}
export interface ViewsFilesConfig {
compact: boolean;
layout: ViewFilesLayout;
threshold: number;
export interface CompareViewConfig {
enabled: boolean;
files: ViewsFilesConfig;
location: 'explorer' | 'gitlens' | 'scm';
}
export interface FileHistoryViewConfig {
@ -221,25 +292,6 @@ export interface ModeConfig {
views?: boolean;
}
export interface RepositoriesViewConfig {
autoRefresh: boolean;
autoReveal: boolean;
branches: {
layout: ViewBranchesLayout;
};
enabled: boolean;
files: ViewsFilesConfig;
includeWorkingTree: boolean;
location: 'explorer' | 'gitlens' | 'scm';
showTrackingBranch: boolean;
}
export interface CompareViewConfig {
enabled: boolean;
files: ViewsFilesConfig;
location: 'explorer' | 'gitlens' | 'scm';
}
export interface RemotesConfig {
domain: string;
name?: string;
@ -260,100 +312,48 @@ export interface RemotesUrlsConfig {
fileRange: string;
}
export interface RepositoriesViewConfig {
autoRefresh: boolean;
autoReveal: boolean;
branches: {
layout: ViewBranchesLayout;
};
enabled: boolean;
files: ViewsFilesConfig;
includeWorkingTree: boolean;
location: 'explorer' | 'gitlens' | 'scm';
showTrackingBranch: boolean;
}
export interface SearchViewConfig {
enabled: boolean;
files: ViewsFilesConfig;
location: 'explorer' | 'gitlens' | 'scm';
}
export interface Config {
blame: {
avatars: boolean;
export interface ViewsConfig {
avatars: boolean;
fileHistory: FileHistoryViewConfig;
files: {
layout: ViewFilesLayout;
compact: boolean;
dateFormat: string | null;
format: string;
heatmap: {
enabled: boolean;
location: 'left' | 'right';
};
highlight: {
enabled: boolean;
locations: HighlightLocations[];
};
ignoreWhitespace: boolean;
separateLines: boolean;
toggleMode: AnnotationsToggleMode;
};
currentLine: {
scrollable: boolean;
dateFormat: string | null;
enabled: boolean;
format: string;
};
codeLens: CodeLensConfig;
debug: boolean;
defaultDateFormat: string | null;
defaultDateStyle: DateStyle;
defaultGravatarsStyle: GravatarDefaultStyle;
heatmap: {
ageThreshold: number;
coldColor: string;
hotColor: string;
toggleMode: AnnotationsToggleMode;
};
hovers: {
annotations: {
changes: boolean;
details: boolean;
enabled: boolean;
over: 'line' | 'annotation';
};
currentLine: {
changes: boolean;
details: boolean;
enabled: boolean;
over: 'line' | 'annotation';
};
avatars: boolean;
enabled: boolean;
};
insiders: boolean;
keymap: KeyMap;
menus: boolean | MenuConfig;
mode: {
active: string;
statusBar: {
enabled: boolean;
alignment: 'left' | 'right';
};
};
modes: { [key: string]: ModeConfig };
outputLevel: LogLevel;
recentChanges: {
highlight: {
locations: HighlightLocations[];
};
toggleMode: AnnotationsToggleMode;
};
remotes: RemotesConfig[];
showWhatsNewAfterUpgrades: boolean;
statusBar: {
alignment: 'left' | 'right';
command: StatusBarCommand;
dateFormat: string | null;
enabled: boolean;
format: string;
reduceFlicker: boolean;
};
strings: {
codeLens: {
unsavedChanges: {
recentChangeAndAuthors: string;
recentChangeOnly: string;
authorsOnly: string;
};
};
threshold: number;
};
views: ViewsConfig;
advanced: AdvancedConfig;
commitFileFormat: string;
commitFormat: string;
compare: CompareViewConfig;
// dateFormat: string | null;
defaultItemLimit: number;
lineHistory: LineHistoryViewConfig;
repositories: RepositoriesViewConfig;
search: SearchViewConfig;
stashFileFormat: string;
stashFormat: string;
statusFileFormat: string;
}
export interface ViewsFilesConfig {
compact: boolean;
layout: ViewFilesLayout;
threshold: number;
}

BIN
src/ui/images/settings/file-history-explorer-avatars.png View File

Before After
Width: 600  |  Height: 360  |  Size: 3.2 KiB

BIN
src/ui/images/settings/file-history-explorer.png View File

Before After
Width: 600  |  Height: 360  |  Size: 49 KiB

BIN
src/ui/images/settings/repositories-explorer-avatars.png View File

Before After
Width: 600  |  Height: 360  |  Size: 2.4 KiB

BIN
src/ui/images/settings/repositories-explorer-tree-compact.png View File

Before After
Width: 600  |  Height: 360  |  Size: 22 KiB

BIN
src/ui/images/settings/repositories-explorer-tree.png View File

Before After
Width: 600  |  Height: 360  |  Size: 21 KiB

BIN
src/ui/images/settings/repositories-explorer.png View File

Before After
Width: 600  |  Height: 360  |  Size: 25 KiB

BIN
src/ui/images/settings/results-explorer-avatars.png View File

Before After
Width: 600  |  Height: 360  |  Size: 2.9 KiB

BIN
src/ui/images/settings/results-explorer-tree-compact.png View File

Before After
Width: 600  |  Height: 360  |  Size: 32 KiB

BIN
src/ui/images/settings/results-explorer-tree.png View File

Before After
Width: 600  |  Height: 360  |  Size: 32 KiB

BIN
src/ui/images/settings/results-explorer.png View File

Before After
Width: 600  |  Height: 360  |  Size: 35 KiB

BIN
src/ui/images/settings/view-compare-avatars.png View File

Before After
Width: 600  |  Height: 360  |  Size: 2.5 KiB

BIN
src/ui/images/settings/view-compare-tree-compact.png View File

Before After
Width: 600  |  Height: 360  |  Size: 8.1 KiB

BIN
src/ui/images/settings/view-compare-tree.png View File

Before After
Width: 600  |  Height: 360  |  Size: 8.1 KiB

BIN
src/ui/images/settings/view-compare.png View File

Before After
Width: 600  |  Height: 360  |  Size: 8.5 KiB

BIN
src/ui/images/settings/view-file-history-avatars.png View File

Before After
Width: 600  |  Height: 360  |  Size: 3.3 KiB

BIN
src/ui/images/settings/view-file-history.png View File

Before After
Width: 600  |  Height: 360  |  Size: 18 KiB

BIN
src/ui/images/settings/view-line-history-avatars.png View File

Before After
Width: 600  |  Height: 360  |  Size: 10 KiB

BIN
src/ui/images/settings/view-line-history.png View File

Before After
Width: 600  |  Height: 360  |  Size: 18 KiB

BIN
src/ui/images/settings/view-repositories-avatars.png View File

Before After
Width: 600  |  Height: 442  |  Size: 2.6 KiB

BIN
src/ui/images/settings/view-repositories-tree-compact.png View File

Before After
Width: 600  |  Height: 442  |  Size: 20 KiB

BIN
src/ui/images/settings/view-repositories-tree.png View File

Before After
Width: 600  |  Height: 442  |  Size: 20 KiB

BIN
src/ui/images/settings/view-repositories.png View File

Before After
Width: 600  |  Height: 442  |  Size: 23 KiB

BIN
src/ui/images/settings/view-search-avatars.png View File

Before After
Width: 600  |  Height: 360  |  Size: 2.4 KiB

BIN
src/ui/images/settings/view-search-tree-compact.png View File

Before After
Width: 600  |  Height: 360  |  Size: 7.7 KiB

BIN
src/ui/images/settings/view-search-tree.png View File

Before After
Width: 600  |  Height: 360  |  Size: 7.6 KiB

BIN
src/ui/images/settings/view-search.png View File

Before After
Width: 600  |  Height: 360  |  Size: 7.7 KiB

+ 24
- 24
src/ui/settings/index.html View File

@ -658,22 +658,22 @@
<div class="section__preview">
<img
class="image__preview hidden"
src="{{root}}/images/settings/repositories-explorer.png"
src="{{root}}/images/settings/view-repositories.png"
data-visibility="views.repositories.enabled &amp; views.repositories.files.layout !tree"
/>
<img
class="image__preview hidden"
src="{{root}}/images/settings/repositories-explorer-tree-compact.png"
src="{{root}}/images/settings/view-repositories-tree-compact.png"
data-visibility="views.repositories.enabled &amp; views.repositories.files.layout =tree &amp; views.repositories.files.compact"
/>
<img
class="image__preview hidden"
src="{{root}}/images/settings/repositories-explorer-tree.png"
src="{{root}}/images/settings/view-repositories-tree.png"
data-visibility="views.repositories.enabled &amp; views.repositories.files.layout =tree &amp; views.repositories.files.compact =false"
/>
<img
class="image__preview--overlay hidden"
src="{{root}}/images/settings/repositories-explorer-avatars.png"
src="{{root}}/images/settings/view-repositories-avatars.png"
data-visibility="views.repositories.enabled &amp; views.avatars"
/>
</div>
@ -755,12 +755,12 @@
<div class="section__preview">
<img
class="image__preview hidden"
src="{{root}}/images/settings/file-history-explorer.png"
src="{{root}}/images/settings/view-file-history.png"
data-visibility="views.fileHistory.enabled"
/>
<img
class="image__preview--overlay hidden"
src="{{root}}/images/settings/file-history-explorer-avatars.png"
src="{{root}}/images/settings/view-file-history-avatars.png"
data-visibility="views.fileHistory.enabled &amp; views.fileHistory.avatars"
/>
</div>
@ -831,12 +831,12 @@
<div class="section__preview">
<img
class="image__preview hidden"
src="{{root}}/images/settings/line-history-explorer.png"
src="{{root}}/images/settings/view-line-history.png"
data-visibility="views.lineHistory.enabled"
/>
<img
class="image__preview--overlay hidden"
src="{{root}}/images/settings/line-history-explorer-avatars.png"
src="{{root}}/images/settings/view-line-history-avatars.png"
data-visibility="views.lineHistory.enabled &amp; views.lineHistory.avatars"
/>
</div>
@ -941,23 +941,23 @@
<div class="section__preview">
<img
class="image__preview hidden"
src="{{root}}/images/settings/compare-view.png"
data-visibility="views.compare.files.layout !tree"
src="{{root}}/images/settings/view-compare.png"
data-visibility="views.compare.enabled &amp; views.compare.files.layout !tree"
/>
<img
class="image__preview hidden"
src="{{root}}/images/settings/compare-view-tree-compact.png"
data-visibility="views.compare.files.layout =tree &amp; views.compare.files.compact"
src="{{root}}/images/settings/view-compare-tree-compact.png"
data-visibility="views.compare.enabled &amp; views.compare.files.layout =tree &amp; views.compare.files.compact"
/>
<img
class="image__preview hidden"
src="{{root}}/images/settings/compare-view-tree.png"
data-visibility="views.compare.files.layout =tree &amp; views.compare.files.compact =false"
src="{{root}}/images/settings/view-compare-tree.png"
data-visibility="views.compare.enabled &amp; views.compare.files.layout =tree &amp; views.compare.files.compact =false"
/>
<img
class="image__preview--overlay hidden"
src="{{root}}/images/settings/compare-view-avatars.png"
data-visibility="views.avatars"
src="{{root}}/images/settings/view-compare-avatars.png"
data-visibility="views.compare.enabled &amp; views.avatars"
/>
</div>
<p class="settings-group__hint">
@ -1071,23 +1071,23 @@
<div class="section__preview">
<img
class="image__preview hidden"
src="{{root}}/images/settings/search-view.png"
data-visibility="views.search.files.layout !tree"
src="{{root}}/images/settings/view-search.png"
data-visibility="views.search.enabled &amp; views.search.files.layout !tree"
/>
<img
class="image__preview hidden"
src="{{root}}/images/settings/search-view-tree-compact.png"
data-visibility="views.search.files.layout =tree &amp; views.search.files.compact"
src="{{root}}/images/settings/view-search-tree-compact.png"
data-visibility="views.search.enabled &amp; views.search.files.layout =tree &amp; views.search.files.compact"
/>
<img
class="image__preview hidden"
src="{{root}}/images/settings/search-view-tree.png"
data-visibility="views.search.files.layout =tree &amp; views.search.files.compact =false"
src="{{root}}/images/settings/view-search-tree.png"
data-visibility="views.search.enabled &amp; views.search.files.layout =tree &amp; views.search.files.compact =false"
/>
<img
class="image__preview--overlay hidden"
src="{{root}}/images/settings/search-view-avatars.png"
data-visibility="views.avatars"
src="{{root}}/images/settings/view-search-avatars.png"
data-visibility="views.search.enabled &amp; views.avatars"
/>
</div>
<p class="settings-group__hint">

Loading…
Cancel
Save