-- lx-bundle:true

-- This file is part of Lx and Qui, created by Liqube <www.liqube.com>
-- Copyright Liqube Audio. All rights reserved.
-- Lx Interim License. See LICENSE for details.

--- Set the one normal metric baseline shared by every new UI Theme
-- Themes only need to mention a metric when they deliberately want a different size
-- @module qui.defaults

local theme = require("qui.theme")

theme.set_defaults({
	accelerator = {
		underline_min_width = 5,
		underline_thickness = 1,
		underline_inset = 2,
	},
	input = {
		padding_x = 6,
		padding_y = 5,
		indicator_size = 16,
		compact_indicator_size = 12,
		indicator_gap = 6,
		checkmark_padding = 0,
	},
	panel = {
		frame_width = 0,
	},
	separator = {
		thickness = 1,
	},
	section = {
		lead_width = 10,
		title_gap = 6,
		content_gap = 8,
	},
	button = {
		padding_x = 14,
		padding_y = 7,
	},
	textbox = {
		padding_x = 4,
	},
	radio = {
		checkmark_padding = 4,
	},
	listbox = {
		padding_y = 4,
	},
	tree = {
		padding_y = 4,
		indent = 18,
		indicator_size = 9,
	},
	scrollbar = {
		thickness = 12,
		minimum_thumb = 16,
		natural_length = 120,
	},
	combobox = {
		padding_y = 6,
		arrow_width = 18,
		overlay_gap = 2,
	},
	menu = {
		padding_x = 10,
		padding_y = 4,
		item_height = 24,
		separator_height = 7,
		detail_gap = 24,
		indicator_width = 16,
		indicator_size = 12,
		indicator_gap = 6,
		submenu_width = 14,
		submenu_size = 8,
		submenu_gap = 6,
	},
})

return true
