Skip to content

Commit b705856

Browse files
committed
More title polish (#49340)
1 parent edb49f6 commit b705856

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/vs/workbench/browser/parts/quickinput/quickInput.css

+4-11
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,28 @@
1818

1919
.quick-input-left-action-bar {
2020
display: flex;
21-
margin-left: 6px;
21+
margin-left: 4px;
2222
flex: 1;
2323
}
2424

2525
.quick-input-left-action-bar.monaco-action-bar .actions-container {
2626
justify-content: flex-start;
2727
}
2828

29-
.quick-input-left-action-bar .action-label.icon {
30-
margin: 0 5px 0 0;
31-
}
32-
3329
.quick-input-title {
3430
padding: 3px 0px;
3531
text-align: center;
3632
}
3733

3834
.quick-input-right-action-bar {
3935
display: flex;
40-
margin-right: 6px;
36+
margin-right: 4px;
4137
flex: 1;
4238
}
4339

44-
.quick-input-right-action-bar .action-label.icon {
45-
margin: 0 0 0 5px;
46-
}
47-
4840
.quick-input-titlebar .monaco-action-bar .action-label.icon {
49-
width: 16px;
41+
margin: 0;
42+
width: 19px;
5043
height: 100%;
5144
background-position: center;
5245
background-repeat: no-repeat;

src/vs/workbench/browser/parts/quickinput/quickInput.ts

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import { ActionBar, ActionItem } from 'vs/base/browser/ui/actionbar/actionbar';
4040
import { Action } from 'vs/base/common/actions';
4141
import URI from 'vs/base/common/uri';
4242
import { IdGenerator } from 'vs/base/common/idGenerator';
43+
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
4344

4445
const $ = dom.$;
4546

@@ -710,6 +711,7 @@ export class QuickInputService extends Component implements IQuickInputService {
710711
@IPartService private partService: IPartService,
711712
@IQuickOpenService private quickOpenService: IQuickOpenService,
712713
@IEditorGroupsService private editorGroupService: IEditorGroupsService,
714+
@IKeybindingService private keybindingService: IKeybindingService,
713715
@IContextKeyService contextKeyService: IContextKeyService,
714716
@IThemeService themeService: IThemeService
715717
) {
@@ -1037,6 +1039,9 @@ export class QuickInputService extends Component implements IQuickInputService {
10371039
this.ui.list.matchOnDetail = false;
10381040
this.ui.ignoreFocusOut = false;
10391041

1042+
const keybinding = this.keybindingService.lookupKeybinding(BackAction.ID);
1043+
backButton.tooltip = keybinding ? localize('quickInput.backWithKeybinding', "Back ({0})", keybinding.getLabel()) : localize('quickInput.back', "Back");
1044+
10401045
this.inQuickOpen('quickInput', true);
10411046

10421047
this.ui.container.style.display = '';

0 commit comments

Comments
 (0)