mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
- Make list of possible fonts fully OCP - Only mark the loading of a font as 'causesSideEffects' - Make a view model for the terminal font preferences component - Move the TTF files next to where they are registered to help with finding them Signed-off-by: Sebastian Malton <sebastian@malton.name>
19 lines
600 B
TypeScript
19 lines
600 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import { terminalFontInjectionToken } from "./token";
|
|
import SourceCodePro from "./SourceCodePro-Regular.ttf";
|
|
|
|
const sourceCodeProTerminalFontInjectable = getInjectable({
|
|
id: "source-code-pro-terminal-font",
|
|
instantiate: () => ({
|
|
name: "Source Code Pro",
|
|
url: SourceCodePro,
|
|
}),
|
|
injectionToken: terminalFontInjectionToken,
|
|
});
|
|
|
|
export default sourceCodeProTerminalFontInjectable;
|