提交 57bd4f30 编写于 作者: I isidor

Change all trees from 24px to 22px

上级 1a00c058
......@@ -21,7 +21,7 @@
.monaco-split-view > .split-view-view > .header {
position: relative;
line-height: 24px;
line-height: 22px;
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
......
......@@ -64,8 +64,8 @@ export class View extends ee.EventEmitter {
this.size = 0;
this._sizing = types.isUndefined(opts.sizing) ? ViewSizing.Flexible : opts.sizing;
this._fixedSize = types.isUndefined(opts.fixedSize) ? 24 : opts.fixedSize;
this._minimumSize = types.isUndefined(opts.minimumSize) ? 24 : opts.minimumSize;
this._fixedSize = types.isUndefined(opts.fixedSize) ? 22 : opts.fixedSize;
this._minimumSize = types.isUndefined(opts.minimumSize) ? 22 : opts.minimumSize;
}
public get sizing(): ViewSizing { return this._sizing; }
......@@ -108,7 +108,7 @@ export class HeaderView extends View {
constructor(opts: IHeaderViewOptions) {
super(opts);
this.headerSize = types.isUndefined(opts.headerSize) ? 24 : opts.headerSize;
this.headerSize = types.isUndefined(opts.headerSize) ? 22 : opts.headerSize;
}
public render(container: HTMLElement, orientation: Orientation): void {
......@@ -292,7 +292,7 @@ export class FixedCollapsibleView extends AbstractCollapsibleView {
constructor(opts: IFixedCollapsibleViewOptions) {
super(objects.mixin({ sizing: ViewSizing.Fixed }, opts));
this._expandedBodySize = types.isUndefined(opts.expandedBodySize) ? 24 : opts.expandedBodySize;
this._expandedBodySize = types.isUndefined(opts.expandedBodySize) ? 22 : opts.expandedBodySize;
}
public get fixedSize(): number { return this.state === CollapsibleState.EXPANDED ? this.expandedSize : this.headerSize; }
......
......@@ -421,7 +421,7 @@ class Renderer implements IRenderer<QuickOpenEntry> {
return (<QuickOpenEntryItem>entry).getHeight();
}
return 24;
return 22;
}
public getTemplateId(entry: QuickOpenEntry): string {
......
......@@ -61,7 +61,7 @@ export class QuickOpenController extends DefaultController {
export class QuickOpenWidget implements IModelProvider {
public static MAX_WIDTH = 600; // Max total width of quick open widget
public static MAX_ITEMS_HEIGHT = 20 * 24; // Max height of item list below input field
public static MAX_ITEMS_HEIGHT = 20 * 22; // Max height of item list below input field
private options: IQuickOpenOptions;
private builder: Builder;
......@@ -693,7 +693,7 @@ export class QuickOpenWidget implements IModelProvider {
this.tree.setInput(null);
// Reset Tree Height
this.treeContainer.style({ height: (this.options.minItemsToShow ? this.options.minItemsToShow * 24 : 0) + 'px' });
this.treeContainer.style({ height: (this.options.minItemsToShow ? this.options.minItemsToShow * 22 : 0) + 'px' });
// Clear any running Progress
this.progressBar.stop().getContainer().hide();
......
......@@ -57,7 +57,7 @@
width: 20%;
color: #646465;
font-family: "Segoe WPC", "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";
line-height: 24px;
line-height: 22px;
font-size: 13px;
}
......@@ -90,7 +90,7 @@
.monaco-editor .reference-zone-widget .tree .reference-file {
position: relative;
line-height: 24px;
line-height: 22px;
color: #1E1E1E;
}
......
......@@ -537,7 +537,7 @@ export class AdaptiveCollapsibleViewletView extends FixedCollapsibleView impleme
) {
super({
expandedBodySize: initialBodySize,
headerSize: 24,
headerSize: 22,
initialState: collapsed ? CollapsibleState.COLLAPSED : CollapsibleState.EXPANDED
});
......@@ -656,7 +656,7 @@ export class CollapsibleViewletView extends CollapsibleView implements IViewletV
@IContextMenuService protected contextMenuService: IContextMenuService
) {
super({
minimumSize: 2 * 24,
minimumSize: 2 * 22,
initialState: collapsed ? CollapsibleState.COLLAPSED : CollapsibleState.EXPANDED
});
......
......@@ -228,7 +228,7 @@ export class CallStackRenderer implements tree.IRenderer {
}
public getHeight(tree:tree.ITree, element:any): number {
return 24;
return 22;
}
public getTemplateId(tree: tree.ITree, element: any): string {
......@@ -381,7 +381,7 @@ export class VariablesRenderer implements tree.IRenderer {
}
public getHeight(tree: tree.ITree, element: any): number {
return 24;
return 22;
}
public getTemplateId(tree: tree.ITree, element: any): string {
......@@ -541,7 +541,7 @@ export class WatchExpressionsRenderer implements tree.IRenderer {
}
public getHeight(tree:tree.ITree, element:any): number {
return 24;
return 22;
}
public getTemplateId(tree: tree.ITree, element: any): string {
......@@ -764,7 +764,7 @@ export class BreakpointsRenderer implements tree.IRenderer {
}
public getHeight(tree:tree.ITree, element:any): number {
return 24;
return 22;
}
public getTemplateId(tree: tree.ITree, element: any): string {
......
......@@ -399,7 +399,7 @@ class BreakpointsView extends viewlet.AdaptiveCollapsibleViewletView {
}
private static getExpandedBodySize(length: number): number {
return Math.min(BreakpointsView.MAX_VISIBLE_FILES, length) * 24;
return Math.min(BreakpointsView.MAX_VISIBLE_FILES, length) * 22;
}
public shutdown(): void {
......
......@@ -10,7 +10,7 @@
}
.debug-viewlet .monaco-tree .monaco-tree-row > .content {
line-height: 24px;
line-height: 22px;
}
.monaco-workbench .debug-select {
......
......@@ -12,7 +12,7 @@
}
.monaco-workbench .repl .repl-tree {
height: calc(100% - 24px);
height: calc(100% - 22px);
}
.monaco-workbench .repl .surveyor {
......@@ -26,7 +26,7 @@
}
.monaco-workbench .repl .repl-tree .monaco-tree .monaco-tree-row > .content {
line-height: 24px;
line-height: 22px;
word-wrap: break-word;
-webkit-user-select: initial;
}
......@@ -109,7 +109,7 @@
padding: 0;
outline: none;
font-family: Monaco, Menlo, Consolas, "Droid Sans Mono", "Inconsolata", "Courier New", monospace, "Droid Sans Fallback";
line-height: 24px;
line-height: 22px;
}
.monaco-workbench .repl .repl-tree .monaco-tree .monaco-tree-rows > .monaco-tree-row {
......@@ -137,7 +137,7 @@
.monaco-workbench .repl .repl-input-wrapper {
border-top: 1px solid rgba(128, 128, 128, 0.35);
box-sizing: border-box;
height: 24px;
height: 22px;
}
.monaco-workbench .repl .repl-input-wrapper:before {
......@@ -164,12 +164,12 @@
.monaco-workbench .repl .repl-input-wrapper.linux:before {
content: '\276f';
line-height: 24px;
line-height: 22px;
}
.monaco-workbench .repl .repl-input-wrapper.mac:before {
content: '\276f';
line-height: 24px;
line-height: 22px;
}
.monaco-workbench .repl .repl-input {
......
......@@ -120,14 +120,14 @@ export class ReplExpressionsRenderer implements tree.IRenderer {
private getHeightForString(s: string): number {
if (!s || !s.length || this.width <= 0 || this.characterWidth <= 0) {
return 24;
return 22;
}
let realLength = 0;
for (let i = 0; i < s.length; i++) {
realLength += strings.isFullWidthCharacter(s.charCodeAt(i)) ? 2 : 1;
}
return 24 * Math.ceil(realLength * this.characterWidth / this.width);
return 22 * Math.ceil(realLength * this.characterWidth / this.width);
}
public setWidth(fullWidth: number, characterWidth: number): void {
......
......@@ -9,7 +9,7 @@
}
.explorer-viewlet .explorer-item, .explorer-viewlet .working-files-item {
line-height: 24px;
line-height: 22px;
}
.explorer-viewlet .explorer-item-label, .explorer-viewlet .working-files-item-label {
......
......@@ -22,7 +22,7 @@ export class EmptyView extends CollapsibleView {
constructor(@IInstantiationService private instantiationService: IInstantiationService) {
super({
minimumSize: 2 * 24
minimumSize: 2 * 22
});
}
......
......@@ -269,7 +269,7 @@ export class FileRenderer extends ActionsRenderer implements Tree.IRenderer {
}
public getContentHeight(tree: Tree.ITree, element: any): number {
return 24;
return 22;
}
public renderContents(tree: Tree.ITree, stat: FileStat, domElement: HTMLElement, previousCleanupFn: Tree.IElementCallback): Tree.IElementCallback {
......
......@@ -78,7 +78,7 @@ export class WorkingFilesSorter implements tree.ISorter {
export class WorkingFilesRenderer extends ActionsRenderer {
public static FILE_ITEM_HEIGHT = 24;
public static FILE_ITEM_HEIGHT = 22;
constructor(
model: WorkingFilesModel,
......
......@@ -31,7 +31,7 @@
/* Status view */
.git-viewlet > .changes-view > .status-view > .monaco-tree .monaco-tree-row .content {
line-height: 24px;
line-height: 22px;
}
.git-viewlet > .changes-view > .status-view > .monaco-tree .monaco-tree-row .content .monaco-action-bar {
......
......@@ -232,7 +232,7 @@ export class Renderer implements tree.IRenderer {
}
public getHeight(tree:tree.ITree, element:any): number {
return 24;
return 22;
}
public getTemplateId(tree: tree.ITree, element: any): string {
......
......@@ -43,7 +43,7 @@ class HelpEntry extends QuickOpenEntryItem {
}
public getHeight(): number {
return 24;
return 22;
}
public getGroupLabel(): string {
......
......@@ -9,13 +9,13 @@
}
.quick-open-widget.marker-handler .row {
height: 24px;
height: 22px;
}
.quick-open-widget.marker-handler .severity {
display: inline-block;
width: 16px;
height: 24px;
height: 22px;
margin-right: 4px;
}
......
......@@ -99,7 +99,7 @@
.search-viewlet .filematch {
position: relative;
line-height: 24px;
line-height: 22px;
padding: 0;
}
......@@ -113,7 +113,7 @@
overflow: hidden;
text-overflow: ellipsis;
position: relative;
line-height: 24px;
line-height: 22px;
}
.search-viewlet .linematch.changedOrRemoved {
......
......@@ -210,7 +210,7 @@ class SearchRenderer extends ActionsRenderer {
}
public getContentHeight(tree: ITree, element: any): number {
return 24;
return 22;
}
public renderContents(tree: ITree, element: FileMatchOrMatch, domElement: HTMLElement, previousCleanupFn: IElementCallback): IElementCallback {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册