Allow larger font sizes
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -203,7 +203,7 @@ public enum WebFont: String, CaseIterable {
|
|||||||
|
|
||||||
}, label: { Image(systemName: "textformat.size.smaller") })
|
}, label: { Image(systemName: "textformat.size.smaller") })
|
||||||
.frame(width: 25, height: 25, alignment: .center)
|
.frame(width: 25, height: 25, alignment: .center)
|
||||||
CustomSlider(value: $storedFontSize, minValue: 10, maxValue: 42) { _ in
|
CustomSlider(value: $storedFontSize, minValue: 10, maxValue: 48) { _ in
|
||||||
if storedFontSize % 1 == 0 {
|
if storedFontSize % 1 == 0 {
|
||||||
updateReaderPreferences()
|
updateReaderPreferences()
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -208,7 +208,7 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
|
|||||||
|
|
||||||
const handleFontSizeChange = async (event: UpdateFontSizeEvent) => {
|
const handleFontSizeChange = async (event: UpdateFontSizeEvent) => {
|
||||||
const newFontSize = event.fontSize ?? 18
|
const newFontSize = event.fontSize ?? 18
|
||||||
if (newFontSize >= 10 && newFontSize <= 28) {
|
if (newFontSize >= 10 && newFontSize <= 48) {
|
||||||
updateFontSize(newFontSize)
|
updateFontSize(newFontSize)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,12 +87,12 @@ export const useReaderSettings = (): ReaderSettings => {
|
|||||||
switch (action) {
|
switch (action) {
|
||||||
case 'setFontSize':
|
case 'setFontSize':
|
||||||
const value = Number(arg)
|
const value = Number(arg)
|
||||||
if (value >= 10 && value <= 34) {
|
if (value >= 10 && value <= 48) {
|
||||||
updateFontSize(value)
|
updateFontSize(value)
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case 'incrementFontSize':
|
case 'incrementFontSize':
|
||||||
updateFontSize(Math.min(fontSize + 2, 34))
|
updateFontSize(Math.min(fontSize + 2, 48))
|
||||||
break
|
break
|
||||||
case 'decrementFontSize':
|
case 'decrementFontSize':
|
||||||
updateFontSize(Math.max(fontSize - 2, 10))
|
updateFontSize(Math.max(fontSize - 2, 10))
|
||||||
|
|||||||
Reference in New Issue
Block a user