mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Cleanup. Move default font size to a const
Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>
This commit is contained in:
parent
d3d0ebbde3
commit
1d7f577060
@ -28,5 +28,3 @@ See [Development](https://docs.k8slens.dev/latest/contributing/development/) pag
|
||||
## Contributing
|
||||
|
||||
See [Contributing](https://docs.k8slens.dev/latest/contributing/) page.
|
||||
|
||||
.\lens.exe /S /allusers /disableAutoUpdates /D="path"
|
||||
|
||||
@ -37,7 +37,6 @@ export const extensionRoute: RouteProps = {
|
||||
export const terminalRoute: RouteProps = {
|
||||
path: `${preferencesRoute.path}/terminal`,
|
||||
};
|
||||
|
||||
export const preferencesURL = buildURL(preferencesRoute.path);
|
||||
export const appURL = buildURL(appRoute.path);
|
||||
export const proxyURL = buildURL(proxyRoute.path);
|
||||
|
||||
@ -25,7 +25,7 @@ export type EditorConfiguration = Pick<editor.IStandaloneEditorConstructionOptio
|
||||
export const defaultEditorConfig: EditorConfiguration = {
|
||||
tabSize: 2,
|
||||
lineNumbers: "on",
|
||||
fontSize: 22,
|
||||
fontSize: 12,
|
||||
fontFamily: defaultFontFamily,
|
||||
minimap: {
|
||||
enabled: true,
|
||||
|
||||
@ -26,7 +26,7 @@ export const productName = packageInfo.productName;
|
||||
export const appName = `${packageInfo.productName}${isDevelopment ? "Dev" : ""}`;
|
||||
export const publicPath = "/build/" as string;
|
||||
export const defaultTheme = "lens-dark" as string;
|
||||
export const defaultFontSize = 10;
|
||||
export const defaultFontSize = 13;
|
||||
export const defaultFontFamily = "RobotoMono";
|
||||
|
||||
// Webpack build paths
|
||||
|
||||
@ -11,7 +11,7 @@ import type { DockStore, TabId } from "../dock-store/dock.store";
|
||||
import { TerminalApi, TerminalChannels } from "../../../api/terminal-api";
|
||||
import { ThemeStore } from "../../../theme.store";
|
||||
import { disposer } from "../../../utils";
|
||||
import { isMac, defaultFontFamily } from "../../../../common/vars";
|
||||
import { isMac, defaultFontFamily, defaultFontSize } from "../../../../common/vars";
|
||||
import { once } from "lodash";
|
||||
import { UserStore } from "../../../../common/user-store";
|
||||
import { clipboard } from "electron";
|
||||
@ -28,7 +28,7 @@ export class Terminal {
|
||||
|
||||
static async preloadFonts() {
|
||||
const fontPath = require("../../fonts/roboto-mono-nerd.ttf").default; // eslint-disable-line @typescript-eslint/no-var-requires
|
||||
const fontFace = new FontFace("RobotoMono", `url(${fontPath})`);
|
||||
const fontFace = new FontFace(defaultFontFamily, `url(${fontPath})`);
|
||||
|
||||
await fontFace.load();
|
||||
document.fonts.add(fontFace);
|
||||
@ -37,7 +37,7 @@ export class Terminal {
|
||||
private xterm: XTerm | null = new XTerm({
|
||||
cursorBlink: true,
|
||||
cursorStyle: "bar",
|
||||
fontSize: UserStore.getInstance().terminalFontSize || 22,
|
||||
fontSize: UserStore.getInstance().terminalFontSize || defaultFontSize,
|
||||
fontFamily: UserStore.getInstance().terminalFontFamily || defaultFontFamily,
|
||||
});
|
||||
private readonly fitAddon = new FitAddon();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user