mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Various minor fixes (#4172)
- css tweaks: use correct CSS "hyphens:" instead of "hyphenate:" - screenshoter: more logical order of lines (no change in what it does) - textviewer: make diagonal swipe really trigger a full refresh - textwidget: more adequate text length to help with centering - toggleswitch: fix sizing & centering with correct calculations (this reduces a bit the size of switches, and may cause a new truncation in some translations)
This commit is contained in:
@@ -38,8 +38,9 @@ end
|
||||
|
||||
function Screenshoter:onScreenshot(filename)
|
||||
local screenshot_name = filename or os.date(self.screenshot_fn_fmt)
|
||||
Screen:shot(screenshot_name)
|
||||
local widget = ConfirmBox:new{
|
||||
text = T( _("Saving screenshot to %1.\nWould you like to set it as screensaver?"), screenshot_name),
|
||||
text = T( _("Saved screenshot to %1.\nWould you like to set it as screensaver?"), screenshot_name),
|
||||
ok_text = _("Yes"),
|
||||
ok_callback = function()
|
||||
G_reader_settings:saveSetting("screensaver_type", "image_file")
|
||||
@@ -48,7 +49,6 @@ function Screenshoter:onScreenshot(filename)
|
||||
cancel_text = _("No"),
|
||||
}
|
||||
UIManager:show(widget)
|
||||
Screen:shot(screenshot_name)
|
||||
-- trigger full refresh
|
||||
UIManager:setDirty(nil, "full")
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user