Create testing specific vite config, add multi font support, bugfixes
This commit is contained in:
parent
48e585d4ec
commit
0041ec3d9a
12 changed files with 73 additions and 17 deletions
|
@ -20,14 +20,19 @@
|
|||
|
||||
const setTextColor = () => {
|
||||
$settings.invertedColor = !$settings.invertedColor;
|
||||
$settings.fgColor = $settings.invertedColor ? 65535 : 0;
|
||||
$settings.bgColor = $settings.invertedColor ? 0 : 65535;
|
||||
};
|
||||
|
||||
const textColorOptions: [string, boolean][] = [
|
||||
[$_('colors.black') + ' on ' + $_('colors.white'), false],
|
||||
[$_('colors.white') + ' on ' + $_('colors.black'), true]
|
||||
];
|
||||
|
||||
const fontPreferenceOptions: [string, string][] = $settings.availableFonts?.map((font) => [
|
||||
$_(`fonts.${font}`) !== `fonts.${font}`
|
||||
? $_(`fonts.${font}`)
|
||||
: font.charAt(0).toUpperCase() + font.slice(1),
|
||||
font
|
||||
]);
|
||||
</script>
|
||||
|
||||
<Row>
|
||||
|
@ -45,6 +50,14 @@
|
|||
on:change={setTextColor}
|
||||
/>
|
||||
|
||||
<SettingsSelect
|
||||
id="fontName"
|
||||
label={$_('section.settings.fontName')}
|
||||
bind:value={$settings.fontName}
|
||||
options={fontPreferenceOptions}
|
||||
size={$uiSettings.inputSize}
|
||||
/>
|
||||
|
||||
<SettingsInput
|
||||
id="timePerScreen"
|
||||
label={$_('section.settings.timePerScreen')}
|
||||
|
|
|
@ -67,7 +67,8 @@
|
|||
"dataSource": {
|
||||
"nostr": "Nostr-Verlag",
|
||||
"custom": "Benutzerdefinierter dataquelle"
|
||||
}
|
||||
},
|
||||
"fontName": "Schriftart"
|
||||
},
|
||||
"control": {
|
||||
"systemInfo": "Systeminfo",
|
||||
|
|
|
@ -84,7 +84,8 @@
|
|||
},
|
||||
"thirdPartySource": "Use mempool.space/coincap.io",
|
||||
"ceDisableSSL": "Disable SSL",
|
||||
"ceEndpoint": "Endpoint hostname"
|
||||
"ceEndpoint": "Endpoint hostname",
|
||||
"fontName": "Font"
|
||||
},
|
||||
"control": {
|
||||
"systemInfo": "System info",
|
||||
|
|
|
@ -66,7 +66,8 @@
|
|||
"dataSource": {
|
||||
"nostr": "editorial nostr",
|
||||
"custom": "Punto final personalizado"
|
||||
}
|
||||
},
|
||||
"fontName": "Fuente"
|
||||
},
|
||||
"control": {
|
||||
"turnOff": "Apagar",
|
||||
|
|
|
@ -58,7 +58,8 @@
|
|||
"hideAll": "Alles verbergen",
|
||||
"flOffWhenDark": "Displaylicht uit als het donker is",
|
||||
"luxLightToggleText": "Stel in op 0 om uit te schakelen",
|
||||
"verticalDesc": "Verticale schermbeschrijving"
|
||||
"verticalDesc": "Verticale schermbeschrijving",
|
||||
"fontName": "Lettertype"
|
||||
},
|
||||
"control": {
|
||||
"systemInfo": "Systeeminformatie",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue