From ed5c1cef205116afda7fbb285167544a664b0d7f Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Fri, 22 Sep 2023 09:06:30 +0300 Subject: [PATCH] ButtonTable: remove unused (#10926) --- frontend/apps/reader/modules/readercropping.lua | 2 -- frontend/apps/reader/modules/readerstyletweak.lua | 2 -- frontend/ui/widget/dictquicklookup.lua | 2 -- frontend/ui/widget/imageviewer.lua | 2 -- frontend/ui/widget/inputdialog.lua | 2 -- frontend/ui/widget/menu.lua | 2 -- frontend/ui/widget/multiconfirmbox.lua | 2 -- 7 files changed, 14 deletions(-) diff --git a/frontend/apps/reader/modules/readercropping.lua b/frontend/apps/reader/modules/readercropping.lua index 626ab84bf..ad69c67d9 100644 --- a/frontend/apps/reader/modules/readercropping.lua +++ b/frontend/apps/reader/modules/readercropping.lua @@ -57,8 +57,6 @@ function ReaderCropping:onPageCrop(mode) -- prepare bottom buttons so we know the size available for the page above it local button_table = ButtonTable:new{ width = Screen:getWidth(), - button_font_face = "cfont", - button_font_size = 20, buttons = {{ { text = _("Cancel"), diff --git a/frontend/apps/reader/modules/readerstyletweak.lua b/frontend/apps/reader/modules/readerstyletweak.lua index 0a7bc5e23..3832ab5c4 100644 --- a/frontend/apps/reader/modules/readerstyletweak.lua +++ b/frontend/apps/reader/modules/readerstyletweak.lua @@ -152,8 +152,6 @@ function TweakInfoWidget:init() local button_table = ButtonTable:new{ width = content:getSize().w, - button_font_face = "cfont", - button_font_size = 20, buttons = buttons, zero_sep = true, show_parent = self, diff --git a/frontend/ui/widget/dictquicklookup.lua b/frontend/ui/widget/dictquicklookup.lua index 77ec6d689..de5e7db34 100644 --- a/frontend/ui/widget/dictquicklookup.lua +++ b/frontend/ui/widget/dictquicklookup.lua @@ -543,8 +543,6 @@ function DictQuickLookup:init() local buttons_width = inner_width - 2*buttons_padding self.button_table = ButtonTable:new{ width = buttons_width, - button_font_face = "cfont", - button_font_size = 20, buttons = buttons, zero_sep = true, show_parent = self, diff --git a/frontend/ui/widget/imageviewer.lua b/frontend/ui/widget/imageviewer.lua index 2fdddf91b..46a8e22dd 100644 --- a/frontend/ui/widget/imageviewer.lua +++ b/frontend/ui/widget/imageviewer.lua @@ -208,8 +208,6 @@ function ImageViewer:init() } self.button_table = ButtonTable:new{ width = self.width - 2*self.button_padding, - button_font_face = "cfont", - button_font_size = 20, buttons = buttons, zero_sep = true, show_parent = self, diff --git a/frontend/ui/widget/inputdialog.lua b/frontend/ui/widget/inputdialog.lua index 907381624..150110ec7 100644 --- a/frontend/ui/widget/inputdialog.lua +++ b/frontend/ui/widget/inputdialog.lua @@ -258,8 +258,6 @@ function InputDialog:init() -- Buttons Table self.button_table = ButtonTable:new{ width = self.width - 2*self.button_padding, - button_font_face = "cfont", - button_font_size = 20, buttons = self.buttons, zero_sep = true, show_parent = self, diff --git a/frontend/ui/widget/menu.lua b/frontend/ui/widget/menu.lua index 3f2a0d1a6..dab43dd0d 100644 --- a/frontend/ui/widget/menu.lua +++ b/frontend/ui/widget/menu.lua @@ -794,8 +794,6 @@ function Menu:init() }, call_hold_input_on_tap = true, bordersize = 0, - text_font_face = "cfont", - text_font_size = 20, text_font_bold = false, } self.page_info = HorizontalGroup:new{ diff --git a/frontend/ui/widget/multiconfirmbox.lua b/frontend/ui/widget/multiconfirmbox.lua index 7987cc366..fb3bebf18 100644 --- a/frontend/ui/widget/multiconfirmbox.lua +++ b/frontend/ui/widget/multiconfirmbox.lua @@ -91,8 +91,6 @@ function MultiConfirmBox:init() local button_table = ButtonTable:new{ width = content:getSize().w, - button_font_face = "cfont", - button_font_size = 20, buttons = { { {