UI: Disable font ligatures by default (#1729)

This commit is contained in:
catloversg 2024-10-28 12:39:01 +07:00 committed by GitHub
parent 0bf378a1b0
commit a12c48ed43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

@ -18,7 +18,7 @@ export const InterfacePage = (): React.ReactElement => {
checked={Settings.DisableASCIIArt} checked={Settings.DisableASCIIArt}
onChange={(newValue) => (Settings.DisableASCIIArt = newValue)} onChange={(newValue) => (Settings.DisableASCIIArt = newValue)}
text="Disable ascii art" text="Disable ascii art"
tooltip={<>If this is set all ASCII art will be disabled.</>} tooltip={<>If this is set, all ASCII arts will be disabled.</>}
/> />
<OptionSwitch <OptionSwitch
checked={Settings.DisableTextEffects} checked={Settings.DisableTextEffects}
@ -35,13 +35,13 @@ export const InterfacePage = (): React.ReactElement => {
checked={Settings.DisableOverviewProgressBars} checked={Settings.DisableOverviewProgressBars}
onChange={(newValue) => (Settings.DisableOverviewProgressBars = newValue)} onChange={(newValue) => (Settings.DisableOverviewProgressBars = newValue)}
text="Disable Overview Progress Bars" text="Disable Overview Progress Bars"
tooltip={<>If this is set, the progress bars in the character overview will be hidden.</>} tooltip={<>If this is set, progress bars in the character overview will be hidden.</>}
/> />
<OptionSwitch <OptionSwitch
checked={Settings.ShowMiddleNullTimeUnit} checked={Settings.ShowMiddleNullTimeUnit}
onChange={(newValue) => (Settings.ShowMiddleNullTimeUnit = newValue)} onChange={(newValue) => (Settings.ShowMiddleNullTimeUnit = newValue)}
text="Show all intermediary times unit, even when null." text="Show all intermediary time units, even when null."
tooltip={<>ex : 1 hours 13 seconds becomes 1 hours 0 minutes 13 seconds.</>} tooltip={<>Example: 1 hour 13 seconds becomes 1 hour 0 minutes 13 seconds.</>}
/> />
<Tooltip <Tooltip
title={ title={

@ -137,7 +137,7 @@ export const Settings = {
MonacoFontFamily: "JetBrainsMono", MonacoFontFamily: "JetBrainsMono",
/** Text size for script editor. */ /** Text size for script editor. */
MonacoFontSize: 20, MonacoFontSize: 20,
/** Whether to use font ligatures */ /** Whether to use font ligatures in the script editor */
MonacoFontLigatures: false, MonacoFontLigatures: false,
/** Whether to use Vim mod by default in the script editor */ /** Whether to use Vim mod by default in the script editor */
MonacoDefaultToVim: false, MonacoDefaultToVim: false,

@ -24,6 +24,8 @@ export function LoadingScreen(): React.ReactElement {
document.title = `Bitburner ${version}`; document.title = `Bitburner ${version}`;
} }
document.body.style.fontVariantLigatures = "none";
useEffect(() => { useEffect(() => {
const id = setTimeout(() => { const id = setTimeout(() => {
if (!loaded) setShow(true); if (!loaded) setShow(true);