From 0495ac28a660a377ce061e78300fa6116aaf41f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jefferson=20Gonz=C3=A1lez?= Date: Mon, 6 Feb 2023 13:40:12 -0400 Subject: [PATCH] plugins scale: also rescale style.expanded_scrollbar_size (#1380) --- data/plugins/scale.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/data/plugins/scale.lua b/data/plugins/scale.lua index 0c9c8657..7c9e6d4c 100644 --- a/data/plugins/scale.lua +++ b/data/plugins/scale.lua @@ -39,12 +39,13 @@ local function set_scale(scale) if config.plugins.scale.mode == "ui" then SCALE = scale - style.padding.x = style.padding.x * s - style.padding.y = style.padding.y * s - style.divider_size = style.divider_size * s - style.scrollbar_size = style.scrollbar_size * s - style.caret_width = style.caret_width * s - style.tab_width = style.tab_width * s + style.padding.x = style.padding.x * s + style.padding.y = style.padding.y * s + style.divider_size = style.divider_size * s + style.scrollbar_size = style.scrollbar_size * s + style.expanded_scrollbar_size = style.expanded_scrollbar_size * s + style.caret_width = style.caret_width * s + style.tab_width = style.tab_width * s for _, name in ipairs {"font", "big_font", "icon_font", "icon_big_font", "code_font"} do style[name]:set_size(s * style[name]:get_size())