mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Merge pull request #3040 from BimBimSalaBim/master
E-Reader Font Boldness Slider #3020
This commit is contained in:
commit
5da4861716
@ -46,7 +46,8 @@ export default {
|
||||
font: 'serif',
|
||||
fontScale: 100,
|
||||
lineSpacing: 115,
|
||||
spread: 'auto'
|
||||
spread: 'auto',
|
||||
textStroke: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -109,11 +110,14 @@ export default {
|
||||
|
||||
const fontScale = this.ereaderSettings.fontScale / 100
|
||||
|
||||
const textStroke = this.ereaderSettings.textStroke / 100
|
||||
|
||||
return {
|
||||
'*': {
|
||||
color: `${fontColor}!important`,
|
||||
'background-color': `${backgroundColor}!important`,
|
||||
'line-height': lineSpacing * fontScale + 'rem!important'
|
||||
'line-height': lineSpacing * fontScale + 'rem!important',
|
||||
'-webkit-text-stroke': textStroke + 'px ' + fontColor + '!important'
|
||||
},
|
||||
a: {
|
||||
color: `${fontColor}!important`
|
||||
|
@ -98,6 +98,12 @@
|
||||
</div>
|
||||
<ui-range-input v-model="ereaderSettings.lineSpacing" :min="100" :max="300" :step="5" @input="settingsUpdated" />
|
||||
</div>
|
||||
<div class="flex items-center mb-4">
|
||||
<div class="w-40">
|
||||
<p class="text-lg">{{ $strings.LabelFontBoldness }}:</p>
|
||||
</div>
|
||||
<ui-range-input v-model="ereaderSettings.textStroke" :min="0" :max="300" :step="5" @input="settingsUpdated" />
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<div class="w-40">
|
||||
<p class="text-lg">{{ $strings.LabelLayout }}:</p>
|
||||
@ -130,7 +136,9 @@ export default {
|
||||
font: 'serif',
|
||||
fontScale: 100,
|
||||
lineSpacing: 115,
|
||||
spread: 'auto'
|
||||
fontBoldness: 100,
|
||||
spread: 'auto',
|
||||
textStroke: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -378,7 +386,12 @@ export default {
|
||||
try {
|
||||
const settings = localStorage.getItem('ereaderSettings')
|
||||
if (settings) {
|
||||
this.ereaderSettings = JSON.parse(settings)
|
||||
const _ereaderSettings = JSON.parse(settings)
|
||||
for (const key in this.ereaderSettings) {
|
||||
if (_ereaderSettings[key] !== undefined) {
|
||||
this.ereaderSettings[key] = _ereaderSettings[key]
|
||||
}
|
||||
}
|
||||
this.settingsUpdated()
|
||||
}
|
||||
} catch (error) {
|
||||
@ -416,4 +429,4 @@ export default {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Папка",
|
||||
"LabelFolders": "Папки",
|
||||
"LabelFontBold": "Получерно",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Шрифт",
|
||||
"LabelFontItalic": "Курсив",
|
||||
"LabelFontScale": "Мащаб на Шрифта",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Неуспешно изтриване на потребител",
|
||||
"ToastUserDeleteSuccess": "Потребителят е изтрит"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "ফোল্ডার",
|
||||
"LabelFolders": "ফোল্ডারগুলো",
|
||||
"LabelFontBold": "বোল্ড",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "ফন্ট পরিবার",
|
||||
"LabelFontItalic": "ইটালিক",
|
||||
"LabelFontScale": "ফন্ট স্কেল",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "ব্যবহারকারী মুছতে ব্যর্থ",
|
||||
"ToastUserDeleteSuccess": "ব্যবহারকারী মুছে ফেলা হয়েছে"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Složka",
|
||||
"LabelFolders": "Složky",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Rodina písem",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Měřítko písma",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Nepodařilo se smazat uživatele",
|
||||
"ToastUserDeleteSuccess": "Uživatel smazán"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Mappe",
|
||||
"LabelFolders": "Mapper",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Fontfamilie",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Skriftstørrelse",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Mislykkedes sletning af bruger",
|
||||
"ToastUserDeleteSuccess": "Bruger slettet"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Ordner",
|
||||
"LabelFolders": "Verzeichnisse",
|
||||
"LabelFontBold": "Fett",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Schriftfamilie",
|
||||
"LabelFontItalic": "Kursiv",
|
||||
"LabelFontScale": "Schriftgröße",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Die Sortier-Prefixe wirden geupdated ({0} Einträge)",
|
||||
"ToastUserDeleteFailed": "Benutzer konnte nicht gelöscht werden",
|
||||
"ToastUserDeleteSuccess": "Benutzer gelöscht"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Folder",
|
||||
"LabelFolders": "Folders",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Font family",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Font scale",
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Carpeta",
|
||||
"LabelFolders": "Carpetas",
|
||||
"LabelFontBold": "Negrilla",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Familia tipográfica",
|
||||
"LabelFontItalic": "Itálica",
|
||||
"LabelFontScale": "Tamaño de Fuente",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Prefijos de ordenar actualizaron ({0} items)",
|
||||
"ToastUserDeleteFailed": "Error al eliminar el usuario",
|
||||
"ToastUserDeleteSuccess": "Usuario eliminado"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Kaust",
|
||||
"LabelFolders": "Kataloogid",
|
||||
"LabelFontBold": "Paks",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Fondi pere",
|
||||
"LabelFontItalic": "Kaldkiri",
|
||||
"LabelFontScale": "Fondi suurus",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Kasutaja kustutamine ebaõnnestus",
|
||||
"ToastUserDeleteSuccess": "Kasutaja kustutatud"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Dossier",
|
||||
"LabelFolders": "Dossiers",
|
||||
"LabelFontBold": "Gras",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Polices de caractères",
|
||||
"LabelFontItalic": "Italique",
|
||||
"LabelFontScale": "Taille de la police de caractère",
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Folder",
|
||||
"LabelFolders": "Folders",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "ફોન્ટ કુટુંબ",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Font scale",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Failed to delete user",
|
||||
"ToastUserDeleteSuccess": "User deleted"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "תיקייה",
|
||||
"LabelFolders": "תיקיות",
|
||||
"LabelFontBold": "מודגש",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "משפחת הפונטים",
|
||||
"LabelFontItalic": "נטוי",
|
||||
"LabelFontScale": "קנה מידה של הפונט",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "מחיקת המשתמש נכשלה",
|
||||
"ToastUserDeleteSuccess": "המשתמש נמחק בהצלחה"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Folder",
|
||||
"LabelFolders": "Folders",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "फुहारा परिवार",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Font scale",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Failed to delete user",
|
||||
"ToastUserDeleteSuccess": "User deleted"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Folder",
|
||||
"LabelFolders": "Folderi",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Font family",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Font scale",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Neuspješno brisanje korisnika",
|
||||
"ToastUserDeleteSuccess": "Korisnik obrisan"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Mappa",
|
||||
"LabelFolders": "Mappák",
|
||||
"LabelFontBold": "Félkövér",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Betűtípus család",
|
||||
"LabelFontItalic": "Dőlt",
|
||||
"LabelFontScale": "Betűméret skála",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Felhasználó törlése sikertelen",
|
||||
"ToastUserDeleteSuccess": "Felhasználó törölve"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Cartella",
|
||||
"LabelFolders": "Cartelle",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Font family",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Dimensione Font",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Errore eliminazione utente",
|
||||
"ToastUserDeleteSuccess": "Utente eliminato"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Aplankas",
|
||||
"LabelFolders": "Aplankai",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Famiglia di font",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Šrifto mastelis",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Nepavyko ištrinti naudotojo",
|
||||
"ToastUserDeleteSuccess": "Naudotojas ištrintas"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Map",
|
||||
"LabelFolders": "Mappen",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Lettertypefamilie",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Lettertype schaal",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Verwijderen gebruiker mislukt",
|
||||
"ToastUserDeleteSuccess": "Gebruiker verwijderd"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Mappe",
|
||||
"LabelFolders": "Mapper",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Fontfamilie",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Font størrelse",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Misslykkes å slette bruker",
|
||||
"ToastUserDeleteSuccess": "Bruker slettet"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Folder",
|
||||
"LabelFolders": "Foldery",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Rodzina czcionek",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Font scale",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Nie udało się usunąć użytkownika",
|
||||
"ToastUserDeleteSuccess": "Użytkownik usunięty"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Pasta",
|
||||
"LabelFolders": "Pastas",
|
||||
"LabelFontBold": "Negrito",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Família de fonte",
|
||||
"LabelFontItalic": "Itálico",
|
||||
"LabelFontScale": "Escala de fonte",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Prefixos de ordenação atualizados ({0} item(ns))",
|
||||
"ToastUserDeleteFailed": "Falha ao apagar usuário",
|
||||
"ToastUserDeleteSuccess": "Usuário apagado"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Папка",
|
||||
"LabelFolders": "Папки",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Семейство шрифтов",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Масштаб шрифта",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Не удалось удалить пользователя",
|
||||
"ToastUserDeleteSuccess": "Пользователь удален"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Mapp",
|
||||
"LabelFolders": "Mappar",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Teckensnittsfamilj",
|
||||
"LabelFontItalic": "Italic",
|
||||
"LabelFontScale": "Teckensnittsskala",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Misslyckades med att ta bort användaren",
|
||||
"ToastUserDeleteSuccess": "Användaren borttagen"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Тека",
|
||||
"LabelFolders": "Теки",
|
||||
"LabelFontBold": "Жирний",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Гарнітура",
|
||||
"LabelFontItalic": "Курсив",
|
||||
"LabelFontScale": "Розмір шрифту",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Префікси сортування оновлено ({0})",
|
||||
"ToastUserDeleteFailed": "Не вдалося видалити користувача",
|
||||
"ToastUserDeleteSuccess": "Користувача видалено"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "Thư Mục",
|
||||
"LabelFolders": "Các Thư Mục",
|
||||
"LabelFontBold": "Đậm",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "Gia đình font",
|
||||
"LabelFontItalic": "Nghiêng",
|
||||
"LabelFontScale": "Tỷ lệ font",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "Xóa người dùng thất bại",
|
||||
"ToastUserDeleteSuccess": "Người dùng đã được xóa"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "文件夹",
|
||||
"LabelFolders": "文件夹",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "字体系列",
|
||||
"LabelFontItalic": "斜体",
|
||||
"LabelFontScale": "字体比例",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "删除用户失败",
|
||||
"ToastUserDeleteSuccess": "用户已删除"
|
||||
}
|
||||
}
|
||||
|
@ -307,6 +307,7 @@
|
||||
"LabelFolder": "資料夾",
|
||||
"LabelFolders": "資料夾",
|
||||
"LabelFontBold": "Bold",
|
||||
"LabelFontBoldness": "Font Boldness",
|
||||
"LabelFontFamily": "字體系列",
|
||||
"LabelFontItalic": "斜體",
|
||||
"LabelFontScale": "字體比例",
|
||||
@ -817,4 +818,4 @@
|
||||
"ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)",
|
||||
"ToastUserDeleteFailed": "刪除使用者失敗",
|
||||
"ToastUserDeleteSuccess": "使用者已刪除"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user