Skip to content

Commit 8c9a0f7

Browse files
committed
refactor: file tab strings for delete, rename, show in file tree
1 parent f1ddabb commit 8c9a0f7

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

src/extensionsIntegrated/TabBar/more-options.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ define(function (require, exports, module) {
4040
Strings.CLOSE_ALL_TABS,
4141
Strings.CLOSE_UNMODIFIED_TABS,
4242
"---",
43-
Strings.RENAME_TAB_FILE,
44-
Strings.DELETE_TAB_FILE,
45-
Strings.SHOW_IN_FILE_TREE,
43+
Strings.CMD_FILE_RENAME,
44+
Strings.CMD_FILE_DELETE,
45+
Strings.CMD_SHOW_IN_TREE,
4646
"---",
4747
Strings.REOPEN_CLOSED_FILE
4848
];
@@ -309,13 +309,13 @@ define(function (require, exports, module) {
309309
case Strings.CLOSE_UNMODIFIED_TABS:
310310
handleCloseUnmodifiedTabs(paneId);
311311
break;
312-
case Strings.RENAME_TAB_FILE:
312+
case Strings.CMD_FILE_RENAME:
313313
handleFileRename(filePath);
314314
break;
315-
case Strings.DELETE_TAB_FILE:
315+
case Strings.CMD_FILE_DELETE:
316316
handleFileDelete(filePath);
317317
break;
318-
case Strings.SHOW_IN_FILE_TREE:
318+
case Strings.CMD_SHOW_IN_TREE:
319319
handleShowInFileTree(filePath);
320320
break;
321321
case Strings.REOPEN_CLOSED_FILE:

src/nls/root/strings.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,6 @@ define({
433433
"CLOSE_ALL_TABS": "Close All Tabs",
434434
"CLOSE_UNMODIFIED_TABS": "Close Unmodified Tabs",
435435
"REOPEN_CLOSED_FILE": "Reopen Closed File",
436-
"RENAME_TAB_FILE": "Rename File",
437-
"DELETE_TAB_FILE": "Delete File",
438-
"SHOW_IN_FILE_TREE": "Show in File Tree",
439436

440437
// CodeInspection: errors/warnings
441438
"ERRORS_NO_FILE": "No File Open",

src/styles/brackets_core_ui_variables.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@
205205
@dark-bc-warning-text-low: #333333;
206206
@notification-text: #333333;
207207

208+
// success
209+
@dark-bc-success-bg: #1e3a1e;
210+
208211
// Text
209212
@dark-bc-text: #ccc;
210213
@dark-bc-text-alt: #fff;
@@ -275,4 +278,4 @@
275278

276279
// CSS Codehint icon
277280
@css-codehint-icon: #2ea56c;
278-
@dark-css-codehint-icon: #146a41;
281+
@dark-css-codehint-icon: #146a41;

src/styles/brackets_patterns_override.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,6 +2286,18 @@ dt,
22862286
}
22872287
}
22882288

2289+
.alert.alert-success {
2290+
text-shadow: none;
2291+
background-color: @successBackground;
2292+
border: none;
2293+
2294+
.dark & {
2295+
background: @dark-bc-success-bg;
2296+
border-radius: 2px;
2297+
color: @dark-bc-text;
2298+
}
2299+
}
2300+
22892301
.alert h4 {
22902302
// Specified for the h4 to prevent conflicts of changing @headingsColor
22912303
color: @bc-warning-bg;

0 commit comments

Comments
 (0)