浏览代码

Updates images for the settings editor

main
Eric Amodio 6 年前
父节点
当前提交
67c4a334d2
共有 28 个文件被更改,包括 171 次插入171 次删除
  1. +147
    -147
      src/ui/config.ts
  2. 二进制
      src/ui/images/settings/file-history-explorer-avatars.png
  3. 二进制
      src/ui/images/settings/file-history-explorer.png
  4. 二进制
      src/ui/images/settings/repositories-explorer-avatars.png
  5. 二进制
      src/ui/images/settings/repositories-explorer-tree-compact.png
  6. 二进制
      src/ui/images/settings/repositories-explorer-tree.png
  7. 二进制
      src/ui/images/settings/repositories-explorer.png
  8. 二进制
      src/ui/images/settings/results-explorer-avatars.png
  9. 二进制
      src/ui/images/settings/results-explorer-tree-compact.png
  10. 二进制
      src/ui/images/settings/results-explorer-tree.png
  11. 二进制
      src/ui/images/settings/results-explorer.png
  12. 二进制
      src/ui/images/settings/view-compare-avatars.png
  13. 二进制
      src/ui/images/settings/view-compare-tree-compact.png
  14. 二进制
      src/ui/images/settings/view-compare-tree.png
  15. 二进制
      src/ui/images/settings/view-compare.png
  16. 二进制
      src/ui/images/settings/view-file-history-avatars.png
  17. 二进制
      src/ui/images/settings/view-file-history.png
  18. 二进制
      src/ui/images/settings/view-line-history-avatars.png
  19. 二进制
      src/ui/images/settings/view-line-history.png
  20. 二进制
      src/ui/images/settings/view-repositories-avatars.png
  21. 二进制
      src/ui/images/settings/view-repositories-tree-compact.png
  22. 二进制
      src/ui/images/settings/view-repositories-tree.png
  23. 二进制
      src/ui/images/settings/view-repositories.png
  24. 二进制
      src/ui/images/settings/view-search-avatars.png
  25. 二进制
      src/ui/images/settings/view-search-tree-compact.png
  26. 二进制
      src/ui/images/settings/view-search-tree.png
  27. 二进制
      src/ui/images/settings/view-search.png
  28. +24
    -24
      src/ui/settings/index.html

+ 147
- 147
src/ui/config.ts 查看文件

@ -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;
}

二进制
src/ui/images/settings/file-history-explorer-avatars.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 3.2 KiB

二进制
src/ui/images/settings/file-history-explorer.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 49 KiB

二进制
src/ui/images/settings/repositories-explorer-avatars.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 2.4 KiB

二进制
src/ui/images/settings/repositories-explorer-tree-compact.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 22 KiB

二进制
src/ui/images/settings/repositories-explorer-tree.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 21 KiB

二进制
src/ui/images/settings/repositories-explorer.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 25 KiB

二进制
src/ui/images/settings/results-explorer-avatars.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 2.9 KiB

二进制
src/ui/images/settings/results-explorer-tree-compact.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 32 KiB

二进制
src/ui/images/settings/results-explorer-tree.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 32 KiB

二进制
src/ui/images/settings/results-explorer.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 35 KiB

二进制
src/ui/images/settings/view-compare-avatars.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 2.5 KiB

二进制
src/ui/images/settings/view-compare-tree-compact.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 8.1 KiB

二进制
src/ui/images/settings/view-compare-tree.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 8.1 KiB

二进制
src/ui/images/settings/view-compare.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 8.5 KiB

二进制
src/ui/images/settings/view-file-history-avatars.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 3.3 KiB

二进制
src/ui/images/settings/view-file-history.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 18 KiB

二进制
src/ui/images/settings/view-line-history-avatars.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 10 KiB

二进制
src/ui/images/settings/view-line-history.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 18 KiB

二进制
src/ui/images/settings/view-repositories-avatars.png 查看文件

之前 之后
宽度: 600  |  高度: 442  |  大小: 2.6 KiB

二进制
src/ui/images/settings/view-repositories-tree-compact.png 查看文件

之前 之后
宽度: 600  |  高度: 442  |  大小: 20 KiB

二进制
src/ui/images/settings/view-repositories-tree.png 查看文件

之前 之后
宽度: 600  |  高度: 442  |  大小: 20 KiB

二进制
src/ui/images/settings/view-repositories.png 查看文件

之前 之后
宽度: 600  |  高度: 442  |  大小: 23 KiB

二进制
src/ui/images/settings/view-search-avatars.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 2.4 KiB

二进制
src/ui/images/settings/view-search-tree-compact.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 7.7 KiB

二进制
src/ui/images/settings/view-search-tree.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 7.6 KiB

二进制
src/ui/images/settings/view-search.png 查看文件

之前 之后
宽度: 600  |  高度: 360  |  大小: 7.7 KiB

+ 24
- 24
src/ui/settings/index.html 查看文件

@ -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">

正在加载...
取消
保存