From 1df6ab751bb1de18937066ffa4006153786e1c15 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Thu, 16 Dec 2021 14:46:53 +0200 Subject: [PATCH] ButtonDialogTitle: no bold font in the title by default (#8557) --- frontend/apps/filemanager/filemanager.lua | 4 +--- frontend/apps/filemanager/filemanagerfilesearcher.lua | 1 - frontend/apps/reader/modules/readerlink.lua | 1 - frontend/ui/widget/buttondialogtitle.lua | 2 +- plugins/opds.koplugin/opdsbrowser.lua | 1 - 5 files changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/apps/filemanager/filemanager.lua b/frontend/apps/filemanager/filemanager.lua index 2096f9b0a..d9371f4d6 100644 --- a/frontend/apps/filemanager/filemanager.lua +++ b/frontend/apps/filemanager/filemanager.lua @@ -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, } diff --git a/frontend/apps/filemanager/filemanagerfilesearcher.lua b/frontend/apps/filemanager/filemanagerfilesearcher.lua index e6183aa6f..f0ae66766 100644 --- a/frontend/apps/filemanager/filemanagerfilesearcher.lua +++ b/frontend/apps/filemanager/filemanagerfilesearcher.lua @@ -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) diff --git a/frontend/apps/reader/modules/readerlink.lua b/frontend/apps/reader/modules/readerlink.lua index 7b4933663..2d4e13f2d 100644 --- a/frontend/apps/reader/modules/readerlink.lua +++ b/frontend/apps/reader/modules/readerlink.lua @@ -765,7 +765,6 @@ function ReaderLink:onGoToExternalLink(link_url) end dialog = ButtonDialogTitle:new{ title = text, - use_info_style = true, buttons = buttons, } UIManager:show(dialog) diff --git a/frontend/ui/widget/buttondialogtitle.lua b/frontend/ui/widget/buttondialogtitle.lua index 1e35ae790..1a4c2f530 100644 --- a/frontend/ui/widget/buttondialogtitle.lua +++ b/frontend/ui/widget/buttondialogtitle.lua @@ -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, diff --git a/plugins/opds.koplugin/opdsbrowser.lua b/plugins/opds.koplugin/opdsbrowser.lua index d63e8a52b..b0dc0cb20 100644 --- a/plugins/opds.koplugin/opdsbrowser.lua +++ b/plugins/opds.koplugin/opdsbrowser.lua @@ -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