2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00

ButtonDialogTitle: no bold font in the title by default (#8557)

This commit is contained in:
hius07 2021-12-16 14:46:53 +02:00 committed by GitHub
parent d4eecd9f00
commit 1df6ab751b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 7 deletions

View File

@ -51,7 +51,7 @@ local T = BaseUtil.template
local FileManager = InputContainer:extend{
title = _("KOReader"),
root_path = lfs.currentdir(),
clipboard = nil, -- for single file operations
selected_files = nil, -- for group file operations
@ -119,7 +119,6 @@ function FileManager:setupLayout()
width = icon_size,
height = icon_size,
padding = Size.padding.default,
padding_left = Size.padding.large,
padding_right = Size.padding.large,
padding_bottom = 0,
callback = function()
@ -134,7 +133,6 @@ function FileManager:setupLayout()
height = icon_size,
padding = Size.padding.default,
padding_left = Size.padding.large,
padding_right = Size.padding.default,
padding_bottom = 0,
callback = function() self:onShowPlusMenu() end,
}

View File

@ -236,7 +236,6 @@ function FileSearcher:onMenuHold(item)
self.results_dialog = ButtonDialogTitle:new{
title = is_file and fullpath or fullpath .. "/",
use_info_style = true,
buttons = buttons,
}
UIManager:show(self.results_dialog)

View File

@ -765,7 +765,6 @@ function ReaderLink:onGoToExternalLink(link_url)
end
dialog = ButtonDialogTitle:new{
title = text,
use_info_style = true,
buttons = buttons,
}
UIManager:show(dialog)

View File

@ -22,7 +22,7 @@ local ButtonDialogTitle = InputContainer:new{
title_face = Font:getFace("x_smalltfont"),
title_padding = Size.padding.large,
title_margin = Size.margin.title,
use_info_style = false, -- set to true to have the same look as ConfirmBox
use_info_style = true, -- set to false to have bold font style of the title
info_face = Font:getFace("infofont"),
info_padding = Size.padding.default,
info_margin = Size.margin.default,

View File

@ -670,7 +670,6 @@ function OPDSBrowser:createNewDownloadDialog(path, filename, buttons)
self.download_dialog = ButtonDialogTitle:new{
title = T(_("Download folder:\n%1\n\nDownload filename:\n%2\n\nDownload file type:"),
BD.dirpath(path), filename),
use_info_style = true,
buttons = buttons
}
end