use mini progress bar by default

pull/506/head
chrox 10 years ago
parent 9f507e6447
commit 4fcb39494c

@ -98,6 +98,11 @@ DCREREADER_CONFIG_MARGIN_SIZES_SMALL = {5, 10, 5, 10}
DCREREADER_CONFIG_MARGIN_SIZES_MEDIUM = {10, 15, 10, 15} DCREREADER_CONFIG_MARGIN_SIZES_MEDIUM = {10, 15, 10, 15}
DCREREADER_CONFIG_MARGIN_SIZES_LARGE = {20, 20, 20, 20} DCREREADER_CONFIG_MARGIN_SIZES_LARGE = {20, 20, 20, 20}
-- crereader progress bar
-- 0 for top "full" progress bar
-- 1 for bottom "mini" progress bar
DCREREADER_PROGRESS_BAR = 1
-- gesture detector defaults -- gesture detector defaults
DGESDETECT_DISABLE_DOUBLE_TAP = true DGESDETECT_DISABLE_DOUBLE_TAP = true

@ -126,9 +126,9 @@ local CreOptions = {
name_text = S.PROGRESS_BAR, name_text = S.PROGRESS_BAR,
toggle = {S.FULL, S.MINI}, toggle = {S.FULL, S.MINI},
values = {0, 1}, values = {0, 1},
default_value = 0, default_value = DCREREADER_PROGRESS_BAR,
args = {0, 1}, args = {0, 1},
default_arg = 0, default_arg = DCREREADER_PROGRESS_BAR,
event = "SetStatusLine", event = "SetStatusLine",
}, },
{ {

@ -21,7 +21,7 @@ function ReaderCoptListener:onReadSettings(config)
end) end)
end end
local status_line = config:readSetting("copt_status_line") or 0 local status_line = config:readSetting("copt_status_line") or DCREREADER_PROGRESS_BAR
self.document:setStatusLineProp(status_line) self.document:setStatusLineProp(status_line)
end end

@ -126,7 +126,7 @@ function ReaderFooter:onTapFooter(arg, ges)
end end
UIManager:setDirty(self.view.dialog, "partial") UIManager:setDirty(self.view.dialog, "partial")
-- consume this tap when footer is visible -- consume this tap when footer is visible
if self.visible then if self.view.footer_visible then
return true return true
end end
end end

Loading…
Cancel
Save