Skip to content

Commit

Permalink
fixup! split enable_touch to touch_controls (for touchscreen controls…
Browse files Browse the repository at this point in the history
…) and touch_gui
  • Loading branch information
grorp committed Jul 11, 2024
1 parent a8585c0 commit b950fd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builtin/mainmenu/content/dlg_install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ local function get_formspec(data)
message_bg = mt_color_orange
end

local ENABLE_TOUCH = core.settings:get_bool("touch_gui")
local TOUCH_GUI = core.settings:get_bool("touch_gui")

local w = ENABLE_TOUCH and 14 or 7
local w = TOUCH_GUI and 14 or 7
local padded_w = w - 2*0.375
local dropdown_w = ENABLE_TOUCH and 10.2 or 4.25
local dropdown_w = TOUCH_GUI and 10.2 or 4.25
local button_w = (padded_w - 0.25) / 3
local button_pad = button_w / 2

local formspec = {
"formspec_version[3]",
"size[", w, ",9.05]",
ENABLE_TOUCH and "padding[0.01,0.01]" or "position[0.5,0.55]",
TOUCH_GUI and "padding[0.01,0.01]" or "position[0.5,0.55]",
"style[title;border=false]",
"box[0,0;", w, ",0.8;#3333]",
"button[0,0;", w, ",0.8;title;", fgettext("Install $1", package.title) , "]",
Expand Down

0 comments on commit b950fd8

Please sign in to comment.