From 3b6fd8a1d589297c8990d0af4bee14d607f38369 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sat, 11 Sep 2021 09:24:34 +0300 Subject: [PATCH] Button: default icon size --- frontend/ui/widget/button.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/ui/widget/button.lua b/frontend/ui/widget/button.lua index e0dda9422..2a875a203 100644 --- a/frontend/ui/widget/button.lua +++ b/frontend/ui/widget/button.lua @@ -36,10 +36,8 @@ local Button = InputContainer:new{ text = nil, -- mandatory (unless icon is provided) text_func = nil, icon = nil, - icon_width = Screen:scaleBySize(DGENERIC_ICON_SIZE * 0.8), -- our icons are square - icon_height = Screen:scaleBySize(DGENERIC_ICON_SIZE * 0.8), - -- Reduced size of the icons (0.8) nicely match the size of the default font - -- of text buttons ("cfont", 20), when mixing both text and icon buttons. + icon_width = Screen:scaleBySize(DGENERIC_ICON_SIZE), -- our icons are square + icon_height = Screen:scaleBySize(DGENERIC_ICON_SIZE), icon_rotation_angle = 0, preselect = false, callback = nil,