Skip to content

Commit e891e2f

Browse files
usernamehwbpasero
authored andcommitted
Add border for dirty tabs (microsoft#59759)
* Theming for dirty tabs * Improve border for dirty tabs 1. Make it thinner 2. Add a setting to disable it 3. Use 4 colors (activeFocused, activeUnfocused, inactiveFocused, inactiveUnfocused) 4. Move part of logic * Hot apply of setting `dirtyTabBorder` * Rename the setting * Add default dirty border for all themes * 3 of the 4 colors should be derived from the one main color * Rename `dirty` to `modified` * Rename `modifiedActiveFocusedBorder` to `modifiedBorder` * Add modified border color for built-in themes * More contrast * Applying style directly on element * Changing only color * Using full border * Using existing div for border styling * Add setting to telemetry * Uncomment cleanup code * tweak colors and descriptions * 💄
1 parent 005858e commit e891e2f

16 files changed

Lines changed: 103 additions & 20 deletions

File tree

extensions/theme-abyss/themes/abyss-color-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@
372372
"tab.border": "#2b2b4a",
373373
// "tab.activeBackground": "",
374374
"tab.inactiveBackground": "#10192c",
375+
"tab.modifiedBorder": "#0072bf",
375376
// "tab.activeForeground": "",
376377
// "tab.inactiveForeground": "",
377378

extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"editorGroupHeader.tabsBackground": "#131510",
2323
"editorLineNumber.activeForeground": "#adadad",
2424
"tab.inactiveBackground": "#131510",
25+
"tab.modifiedBorder": "#cd9731",
2526
"titleBar.activeBackground": "#423523",
2627
"statusBar.background": "#423523",
2728
"statusBar.debuggingBackground": "#423523",

extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"editorGroupHeader.tabsBackground": "#282828",
2424
"tab.inactiveBackground": "#404040",
2525
"tab.border": "#303030",
26+
"tab.modifiedBorder": "#6796e6",
2627
"tab.inactiveForeground": "#d8d8d8",
2728
"peekView.border": "#3655b5",
2829
"panelTitle.activeForeground": "#ffffff",

extensions/theme-monokai/themes/monokai-color-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"editorGroup.dropBackground": "#41433980",
3636
"tab.inactiveBackground": "#34352f",
3737
"tab.border": "#1e1f1c",
38+
"tab.modifiedBorder": "#007acc",
3839
"tab.inactiveForeground": "#ccccc7", // needs to be bright so it's readable when another editor group is focused
3940
"widget.shadow": "#000000",
4041
"progressBar.background": "#75715E",

extensions/theme-quietlight/themes/quietlight-color-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@
497497
"editor.lineHighlightBackground": "#E4F6D4",
498498
"editorLineNumber.activeForeground": "#9769dc",
499499
"editor.selectionBackground": "#C9D0D9",
500+
"tab.modifiedBorder": "#f1897f",
500501
"panel.background": "#F5F5F5",
501502
"sideBar.background": "#F2F2F2",
502503
"sideBarSectionHeader.background": "#ede8ef",

extensions/theme-red/themes/Red-color-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"activityBar.background": "#580000",
66
"tab.inactiveBackground": "#300a0a",
77
"tab.activeBackground": "#490000",
8+
"tab.modifiedBorder": "#db7e58",
89
"sideBar.background": "#330000",
910
"statusBar.background": "#700000",
1011
"statusBar.noFolderBackground": "#700000",

extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@
422422
"tab.inactiveForeground": "#93A1A1",
423423
"tab.inactiveBackground": "#004052",
424424
"tab.border": "#003847",
425+
"tab.modifiedBorder": "#268bd2",
425426

426427
// Workbench: Activity Bar
427428
"activityBar.background": "#003847",

extensions/theme-solarized-light/themes/solarized-light-color-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@
417417
"tab.activeBackground": "#FDF6E3",
418418
"tab.inactiveForeground": "#586E75",
419419
"tab.inactiveBackground": "#D3CBB7",
420+
"tab.modifiedBorder": "#cb4b16",
420421
// "tab.activeBackground": "",
421422
// "tab.activeForeground": "",
422423
// "tab.inactiveForeground": "",

extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-theme.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"editorGroup.dropBackground": "#25375daa",
2727
"peekViewResult.background": "#001c40",
2828
"tab.inactiveBackground": "#001c40",
29+
"tab.modifiedBorder": "#FFEEAD",
2930
"debugToolBar.background": "#001c40",
3031
"titleBar.activeBackground": "#001126",
3132
"statusBar.background": "#001126",

src/vs/platform/telemetry/common/telemetryUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ const configurationValueWhitelist = [
182182
'workbench.editor.enablePreview',
183183
'workbench.editor.enablePreviewFromQuickOpen',
184184
'workbench.editor.showTabs',
185+
'workbench.editor.highlightModifiedTabs',
185186
'workbench.editor.swipeToNavigate',
186187
'workbench.sideBar.location',
187188
'workbench.startupEditor',

0 commit comments

Comments
 (0)