mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Adjust default fonts (#5146)
* Adjust default fonts * Adjust default ratio
This commit is contained in:
@@ -46,7 +46,7 @@ panel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tabbedPanel .tabList .tab .tabLabel {
|
.tabbedPanel .tabList .tab .tabLabel {
|
||||||
font-size: 14px;
|
font-size: 13px;
|
||||||
padding-bottom: 4px;
|
padding-bottom: 4px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export class QueryEditor extends BaseEditor {
|
|||||||
private readonly _tabHeight: number = 35;
|
private readonly _tabHeight: number = 35;
|
||||||
|
|
||||||
// The minimum width/height of the editors hosted in the QueryEditor
|
// The minimum width/height of the editors hosted in the QueryEditor
|
||||||
private readonly _minEditorSize: number = 220;
|
private readonly _minEditorSize: number = 100;
|
||||||
|
|
||||||
private _sash: IFlexibleSash;
|
private _sash: IFlexibleSash;
|
||||||
private _editorTopOffset: number;
|
private _editorTopOffset: number;
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ import { CancellationToken } from 'vs/base/common/cancellation';
|
|||||||
import { IStorageService } from 'vs/platform/storage/common/storage';
|
import { IStorageService } from 'vs/platform/storage/common/storage';
|
||||||
|
|
||||||
export const RESULTS_GRID_DEFAULTS = {
|
export const RESULTS_GRID_DEFAULTS = {
|
||||||
cellPadding: [6, 10, 5],
|
cellPadding: [5, 8, 4],
|
||||||
rowHeight: 29
|
rowHeight: 24
|
||||||
};
|
};
|
||||||
|
|
||||||
export const TextCompareEditorVisible = new RawContextKey<boolean>('textCompareEditorVisible', false);
|
export const TextCompareEditorVisible = new RawContextKey<boolean>('textCompareEditorVisible', false);
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ const resultsGridConfiguration: IConfigurationNode = {
|
|||||||
properties: {
|
properties: {
|
||||||
'resultsGrid.fontFamily': {
|
'resultsGrid.fontFamily': {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
default: EDITOR_FONT_DEFAULTS.fontFamily,
|
||||||
description: nls.localize('fontFamily', "Controls the font family.")
|
description: nls.localize('fontFamily', "Controls the font family.")
|
||||||
},
|
},
|
||||||
'resultsGrid.fontWeight': {
|
'resultsGrid.fontWeight': {
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ export class VerticalFlexibleSash extends Disposable implements IVerticalSashLay
|
|||||||
*/
|
*/
|
||||||
export class HorizontalFlexibleSash extends Disposable implements IHorizontalSashLayoutProvider, IFlexibleSash {
|
export class HorizontalFlexibleSash extends Disposable implements IHorizontalSashLayoutProvider, IFlexibleSash {
|
||||||
|
|
||||||
|
private static initialRatio: number = 0.4;
|
||||||
private sash: Sash;
|
private sash: Sash;
|
||||||
private ratio: number;
|
private ratio: number;
|
||||||
private startPosition: number;
|
private startPosition: number;
|
||||||
@@ -174,7 +175,7 @@ export class HorizontalFlexibleSash extends Disposable implements IHorizontalSas
|
|||||||
|
|
||||||
constructor(container: HTMLElement, private minHeight: number) {
|
constructor(container: HTMLElement, private minHeight: number) {
|
||||||
super();
|
super();
|
||||||
this.ratio = 0.5;
|
this.ratio = HorizontalFlexibleSash.initialRatio;
|
||||||
this.left = 0;
|
this.left = 0;
|
||||||
this.sash = new Sash(container, this, { orientation: Orientation.HORIZONTAL });
|
this.sash = new Sash(container, this, { orientation: Orientation.HORIZONTAL });
|
||||||
|
|
||||||
@@ -240,7 +241,7 @@ export class HorizontalFlexibleSash extends Disposable implements IHorizontalSas
|
|||||||
}
|
}
|
||||||
|
|
||||||
private onSashReset(): void {
|
private onSashReset(): void {
|
||||||
this.ratio = 0.5;
|
this.ratio = HorizontalFlexibleSash.initialRatio;
|
||||||
this._onPositionChange.fire(this.position);
|
this._onPositionChange.fire(this.position);
|
||||||
this.sash.layout();
|
this.sash.layout();
|
||||||
}
|
}
|
||||||
@@ -253,7 +254,7 @@ export class HorizontalFlexibleSash extends Disposable implements IHorizontalSas
|
|||||||
let sashPosition = Math.floor((sashRatio || 0.5) * contentHeight);
|
let sashPosition = Math.floor((sashRatio || 0.5) * contentHeight);
|
||||||
let midPoint = Math.floor(0.5 * contentHeight);
|
let midPoint = Math.floor(0.5 * contentHeight);
|
||||||
|
|
||||||
if (contentHeight > this.minHeight * 2) {
|
if (contentHeight > this.minHeight * 4) {
|
||||||
if (sashPosition < this.minHeight) {
|
if (sashPosition < this.minHeight) {
|
||||||
sashPosition = this.minHeight;
|
sashPosition = this.minHeight;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,10 @@ margin-bottom: 2px;
|
|||||||
/* OE and connection element group */
|
/* OE and connection element group */
|
||||||
.monaco-tree .monaco-tree-rows > .monaco-tree-row > .content > .connection-tile,
|
.monaco-tree .monaco-tree-rows > .monaco-tree-row > .content > .connection-tile,
|
||||||
.monaco-tree .monaco-tree-rows > .monaco-tree-row > .content > .object-element-group {
|
.monaco-tree .monaco-tree-rows > .monaco-tree-row > .content > .object-element-group {
|
||||||
padding: 5px;
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-bottom: 3px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ export interface IObjectExplorerTemplateData {
|
|||||||
*/
|
*/
|
||||||
export class ServerTreeRenderer implements IRenderer {
|
export class ServerTreeRenderer implements IRenderer {
|
||||||
|
|
||||||
public static CONNECTION_HEIGHT = 25;
|
public static CONNECTION_HEIGHT = 23;
|
||||||
public static CONNECTION_GROUP_HEIGHT = 38;
|
public static CONNECTION_GROUP_HEIGHT = 38;
|
||||||
private static CONNECTION_TEMPLATE_ID = 'connectionProfile';
|
private static CONNECTION_TEMPLATE_ID = 'connectionProfile';
|
||||||
private static CONNECTION_GROUP_TEMPLATE_ID = 'connectionProfileGroup';
|
private static CONNECTION_GROUP_TEMPLATE_ID = 'connectionProfileGroup';
|
||||||
public static OBJECTEXPLORER_HEIGHT = 25;
|
public static OBJECTEXPLORER_HEIGHT = 23;
|
||||||
private static OBJECTEXPLORER_TEMPLATE_ID = 'objectExplorer';
|
private static OBJECTEXPLORER_TEMPLATE_ID = 'objectExplorer';
|
||||||
/**
|
/**
|
||||||
* _isCompact is used to render connections tiles with and without the action buttons.
|
* _isCompact is used to render connections tiles with and without the action buttons.
|
||||||
|
|||||||
@@ -2585,7 +2585,9 @@ export const EDITOR_FONT_DEFAULTS = {
|
|||||||
),
|
),
|
||||||
fontWeight: 'normal',
|
fontWeight: 'normal',
|
||||||
fontSize: (
|
fontSize: (
|
||||||
platform.isMacintosh ? 12 : 14
|
// {{SQL CARBON EDIT}} - change default font size
|
||||||
|
//platform.isMacintosh ? 12 : 14
|
||||||
|
12
|
||||||
),
|
),
|
||||||
lineHeight: 0,
|
lineHeight: 0,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
|
|||||||
@@ -76,7 +76,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.monaco-workbench .part > .content {
|
.monaco-workbench .part > .content {
|
||||||
font-size: 13px;
|
/* {{SQL CARBON EDIT}} */
|
||||||
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.monaco-workbench .part > .content > .monaco-progress-container,
|
.monaco-workbench .part > .content > .monaco-progress-container,
|
||||||
|
|||||||
Reference in New Issue
Block a user