mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -39,9 +39,11 @@ const XTerm = forwardRef<XTermRef, XTermProps>((props, ref) => {
|
|||||||
}
|
}
|
||||||
const terminal = new Terminal({
|
const terminal = new Terminal({
|
||||||
allowTransparency: true,
|
allowTransparency: true,
|
||||||
fontFamily: '"Fira Code", "Harmony", "Noto Serif SC", monospace',
|
fontFamily: '"JetBrains Mono", "Aa偷吃可爱长大的", "Noto Serif SC", monospace',
|
||||||
cursorInactiveStyle: 'outline',
|
cursorInactiveStyle: 'outline',
|
||||||
drawBoldTextInBrightColors: false
|
drawBoldTextInBrightColors: false,
|
||||||
|
fontSize: 14,
|
||||||
|
lineHeight: 1.2
|
||||||
})
|
})
|
||||||
terminalRef.current = terminal
|
terminalRef.current = terminal
|
||||||
const fitAddon = new FitAddon()
|
const fitAddon = new FitAddon()
|
||||||
@@ -53,7 +55,7 @@ const XTerm = forwardRef<XTermRef, XTermProps>((props, ref) => {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
terminal.loadAddon(fitAddon)
|
terminal.loadAddon(fitAddon)
|
||||||
terminal.loadAddon(new WebglAddon())
|
//terminal.loadAddon(new WebglAddon())
|
||||||
terminal.open(domRef.current)
|
terminal.open(domRef.current)
|
||||||
|
|
||||||
terminal.writeln(
|
terminal.writeln(
|
||||||
|
BIN
napcat.webui/src/fonts/AaCute.ttf
Normal file
BIN
napcat.webui/src/fonts/AaCute.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/src/fonts/JetBrainsMono.ttf
Normal file
BIN
napcat.webui/src/fonts/JetBrainsMono.ttf
Normal file
Binary file not shown.
@@ -1,111 +1,17 @@
|
|||||||
/* HarmonyOS Sans SC */
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Harmony';
|
font-family: 'Aa偷吃可爱长大的';
|
||||||
src: url('/webui/fonts/harmony/HarmonyOS_Sans_SC_Bold.ttf') format('truetype');
|
src: url('../fonts/AaCute.ttf') format('truetype');
|
||||||
font-weight: bold;
|
font-weight: normal;
|
||||||
font-style: normal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Harmony';
|
font-family: 'JetBrains Mono';
|
||||||
src: url('/webui/fonts/harmony/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
|
src: url('../fonts/JetBrainsMono.ttf') format('truetype');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
.xterm {
|
||||||
/* Ubuntu */
|
-webkit-font-smoothing: antialiased;
|
||||||
@font-face {
|
-moz-osx-font-smoothing: grayscale;
|
||||||
font-family: 'Ubuntu';
|
text-rendering: optimizeLegibility;
|
||||||
src: url('/webui/fonts/ubuntu/Ubuntu-Bold.ttf') format('truetype');
|
font-smooth: always;
|
||||||
font-weight: bold;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url('/webui/fonts/ubuntu/Ubuntu-Regular.ttf') format('truetype');
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url('/webui/fonts/ubuntu/Ubuntu-Light.ttf') format('truetype');
|
|
||||||
font-weight: 300;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url('/webui/fonts/ubuntu/Ubuntu-BoldItalic.ttf') format('truetype');
|
|
||||||
font-weight: bold;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url('/webui/fonts/ubuntu/Ubuntu-Italic.ttf') format('truetype');
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url('/webui/fonts/ubuntu/Ubuntu-LightItalic.ttf') format('truetype');
|
|
||||||
font-weight: 300;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url('/webui/fonts/ubuntu/Ubuntu-Medium.ttf') format('truetype');
|
|
||||||
font-weight: 500;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
src: url('/webui/fonts/ubuntu/Ubuntu-MediumItalic.ttf') format('truetype');
|
|
||||||
font-weight: 500;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* LibreBaskerville */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Libre Baskerville';
|
|
||||||
src: url('/webui/fonts/LibreBaskerville/LibreBaskerville-Bold.ttf') format('truetype');
|
|
||||||
font-weight: bold;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Libre Baskerville';
|
|
||||||
src: url('/webui/fonts/LibreBaskerville/LibreBaskerville-Regular.ttf') format('truetype');
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Libre Baskerville';
|
|
||||||
src: url('/webui/fonts/LibreBaskerville/LibreBaskerville-Italic.ttf') format('truetype');
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* NotoSerifSC */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Noto Serif SC';
|
|
||||||
src: url('/webui/fonts/NotoSerifSC-VariableFont_wght.ttf') format('truetype');
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Outfit */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Outfit';
|
|
||||||
src: url('/webui/fonts/Outfit-VariableFont_wght.ttf') format('truetype');
|
|
||||||
}
|
|
||||||
|
|
||||||
/* FiraCode */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Fira Code';
|
|
||||||
src: url('/webui/fonts/FiraCode-VariableFont_wght.ttf') format('truetype');
|
|
||||||
}
|
}
|
@@ -7,7 +7,7 @@
|
|||||||
body {
|
body {
|
||||||
font-family:
|
font-family:
|
||||||
PingFang SC,
|
PingFang SC,
|
||||||
'Harmony',
|
'Aa偷吃可爱长大的',
|
||||||
Helvetica Neue,
|
Helvetica Neue,
|
||||||
Microsoft YaHei,
|
Microsoft YaHei,
|
||||||
sans-serif !important;
|
sans-serif !important;
|
||||||
@@ -17,23 +17,23 @@ body {
|
|||||||
.hm-medium {
|
.hm-medium {
|
||||||
font-family:
|
font-family:
|
||||||
PingFang SC,
|
PingFang SC,
|
||||||
'Harmony',
|
'Aa偷吃可爱长大的',
|
||||||
Helvetica Neue,
|
Helvetica Neue,
|
||||||
Microsoft YaHei,
|
Microsoft YaHei,
|
||||||
sans-serif !important;
|
sans-serif !important;
|
||||||
@apply font-bold;
|
@apply font-bold;
|
||||||
}
|
}
|
||||||
.font-ubuntu {
|
.font-ubuntu {
|
||||||
font-family: 'Ubuntu', sans-serif;
|
font-family: 'Aa偷吃可爱长大的', sans-serif;
|
||||||
}
|
}
|
||||||
.font-outfit {
|
.font-outfit {
|
||||||
font-family: 'Outfit', sans-serif;
|
font-family: 'Aa偷吃可爱长大的', sans-serif;
|
||||||
}
|
}
|
||||||
.font-libre {
|
.font-libre {
|
||||||
font-family: 'Libre Baskerville', serif;
|
font-family: 'Aa偷吃可爱长大的', serif;
|
||||||
}
|
}
|
||||||
.font-noto-serif {
|
.font-noto-serif {
|
||||||
font-family: 'Noto Serif SC', serif;
|
font-family: 'Aa偷吃可爱长大的', serif;
|
||||||
}
|
}
|
||||||
.hide-scrollbar::-webkit-scrollbar {
|
.hide-scrollbar::-webkit-scrollbar {
|
||||||
width: 0 !important;
|
width: 0 !important;
|
||||||
|
Reference in New Issue
Block a user