mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-06-27 12:26:25 +02:00
Only font rendering fix for Linux
This commit is contained in:
+5
-1
@@ -9,9 +9,13 @@
|
|||||||
@apply w-full h-full overflow-hidden text-text bg-surface;
|
@apply w-full h-full overflow-hidden text-text bg-surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
/* Never show ligatures */
|
||||||
|
:root {
|
||||||
font-variant-ligatures: none;
|
font-variant-ligatures: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The following fixes weird font rendering issues on Linux */
|
||||||
|
html[data-platform="linux"] {
|
||||||
font-synthesis: none;
|
font-synthesis: none;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ if (osType !== 'macos') {
|
|||||||
await getCurrentWebviewWindow().setDecorations(false);
|
await getCurrentWebviewWindow().setDecorations(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.documentElement.setAttribute('data-platform', osType);
|
||||||
|
|
||||||
window.addEventListener('keydown', (e) => {
|
window.addEventListener('keydown', (e) => {
|
||||||
const rx = /input|select|textarea/i;
|
const rx = /input|select|textarea/i;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user