return function(h,k,V)local O=h[k]or h[ControlState.Default]local z={Color=V.Theme[O].Color,Transparency=V.Theme[O].Transparency}if k==ControlState.Disabled or k==ControlState.Pressed then z.Transparency=.5*z.Transparency+.5 end return z end
-- Copied from GenericButton. TODO: factor it out
return function(contentMap, controlState, style)
	local contentThemeClass = contentMap[controlState] or contentMap[ControlState.Default]

	local contentStyle = {
		Color = style.Theme[contentThemeClass].Color,
		Transparency = style.Theme[contentThemeClass].Transparency,
	}

	--Based on the design specs, the disabled and pressed state is 0.5 * alpha value
	if controlState == ControlState.Disabled or controlState == ControlState.Pressed then
		contentStyle.Transparency = 0.5 * contentStyle.Transparency + 0.5
	end
	return contentStyle
end
