1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix: bring Roboto as main font back

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2022-06-01 16:46:47 +03:00
parent dd3a0f23aa
commit 8bbdca4f4e
9 changed files with 38 additions and 10 deletions

View File

@ -405,7 +405,6 @@
"typed-emitter": "^1.4.0", "typed-emitter": "^1.4.0",
"typedoc": "0.22.15", "typedoc": "0.22.15",
"typedoc-plugin-markdown": "^3.11.12", "typedoc-plugin-markdown": "^3.11.12",
"typeface-roboto": "^1.1.13",
"typescript": "^4.5.5", "typescript": "^4.5.5",
"typescript-plugin-css-modules": "^3.4.0", "typescript-plugin-css-modules": "^3.4.0",
"webpack": "^5.72.0", "webpack": "^5.72.0",

View File

@ -70,7 +70,8 @@ html, body {
overflow: hidden; overflow: hidden;
color: var(--textColorPrimary); color: var(--textColorPrimary);
background-color: var(--mainBackground); background-color: var(--mainBackground);
font: var(--font-size) var(--font-main); font-size: var(--font-size);
font-family: var(--font-main);
} }
#terminal-init { #terminal-init {

View File

@ -3,8 +3,40 @@
* Licensed under MIT License. See LICENSE in root directory for more information. * Licensed under MIT License. See LICENSE in root directory for more information.
*/ */
// Material Design Icons, used primarily in icon.tsx // App's main font
// Latest: https://github.com/google/material-design-icons/tree/master/font // Downloaded from: https://fonts.google.com/specimen/Roboto
@font-face {
font-family: "Roboto";
src: url("../fonts/Roboto-Light.ttf") format("truetype");
font-display: swap;
font-weight: 300; // "light"
}
@font-face {
font-family: "Roboto";
src: url("../fonts/Roboto-LightItalic.ttf") format("truetype");
font-display: swap;
font-weight: 300; // "light" + italic
font-style: italic;
}
@font-face {
font-family: "Roboto";
src: url("../fonts/Roboto-Regular.ttf") format("truetype");
font-display: swap;
font-weight: 400; // "normal"
}
@font-face {
font-family: "Roboto";
src: url("../fonts/Roboto-Bold.ttf") format("truetype");
font-display: swap;
font-weight: 700; // "bold"
}
// Icon fonts, see: `icon.tsx`
// Latest version for manual update: https://github.com/google/material-design-icons/tree/master/font
@font-face { @font-face {
font-family: "Material Icons"; font-family: "Material Icons";
font-style: normal; font-style: normal;
@ -13,6 +45,7 @@
src: url("../fonts/MaterialIcons-Regular.ttf") format("truetype"); src: url("../fonts/MaterialIcons-Regular.ttf") format("truetype");
} }
// Terminal fonts (monospaced) // Terminal fonts (monospaced)
// Source: https://fonts.google.com/?category=Monospace // Source: https://fonts.google.com/?category=Monospace
@font-face { @font-face {
@ -63,6 +96,6 @@
// https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/RobotoMono // https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/RobotoMono
@font-face { @font-face {
font-family: "RobotoMono"; font-family: "RobotoMono";
src: local("RobotoMono"), url("../fonts/roboto-mono-nerd.ttf") format("truetype"); src: local("RobotoMono"), url("../fonts/Roboto-Mono-nerd.ttf") format("truetype");
font-display: block; font-display: block;
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -13002,11 +13002,6 @@ typedoc@0.22.15:
minimatch "^5.0.1" minimatch "^5.0.1"
shiki "^0.10.1" shiki "^0.10.1"
typeface-roboto@^1.1.13:
version "1.1.13"
resolved "https://registry.yarnpkg.com/typeface-roboto/-/typeface-roboto-1.1.13.tgz#9c4517cb91e311706c74823e857b4bac9a764ae5"
integrity sha512-YXvbd3a1QTREoD+FJoEkl0VQNJoEjewR2H11IjVv4bp6ahuIcw0yyw/3udC4vJkHw3T3cUh85FTg8eWef3pSaw==
typescript-plugin-css-modules@^3.4.0: typescript-plugin-css-modules@^3.4.0:
version "3.4.0" version "3.4.0"
resolved "https://registry.yarnpkg.com/typescript-plugin-css-modules/-/typescript-plugin-css-modules-3.4.0.tgz#4ff6905d88028684d1608c05c62cb6346e5548cc" resolved "https://registry.yarnpkg.com/typescript-plugin-css-modules/-/typescript-plugin-css-modules-3.4.0.tgz#4ff6905d88028684d1608c05c62cb6346e5548cc"