mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Tweak settings limits
This commit is contained in:
parent
ffe4e65ef2
commit
43094dc2e4
@ -41,7 +41,7 @@ def change_font_size_by(amt):
|
||||
sd = get_session_data()
|
||||
sz = sd.get('base_font_size')
|
||||
nsz = sz + amt
|
||||
nsz = max(8, min(nsz, 40))
|
||||
nsz = max(8, min(nsz, 80))
|
||||
change_font_size(nsz)
|
||||
|
||||
def show_custom_size(ev):
|
||||
|
@ -13,7 +13,7 @@ from session import defaults
|
||||
CONTAINER = unique_id('standalone-scrolling-settings')
|
||||
|
||||
# Scroll speeds in lines/sec
|
||||
MIN_SCROLL_SPEED_AUTO = 0.25
|
||||
MIN_SCROLL_SPEED_AUTO = 0.05
|
||||
MAX_SCROLL_SPEED_AUTO = 5
|
||||
|
||||
MIN_SCROLL_AUTO_DELAY = -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user