updated Toggle Size for new specs
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
34bc7b6b66
commit
c721db80c4
@ -72,9 +72,9 @@ open class Toggle: Control, Changeable {
|
|||||||
// MARK: - Configuration Properties
|
// MARK: - Configuration Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// Sizes are from InVision design specs.
|
// Sizes are from InVision design specs.
|
||||||
public let toggleSize = CGSize(width: 52, height: 24)
|
public let toggleSize = CGSize(width: 52, height: 28)
|
||||||
public let toggleContainerSize = CGSize(width: 52, height: 44)
|
public let toggleContainerSize = CGSize(width: 52, height: 44)
|
||||||
public let knobSize = CGSize(width: 20, height: 20)
|
public let knobSize = CGSize(width: 24, height: 24)
|
||||||
|
|
||||||
private var toggleColorConfiguration = ControlColorConfiguration().with {
|
private var toggleColorConfiguration = ControlColorConfiguration().with {
|
||||||
$0.setSurfaceColors(VDSColor.elementsSecondaryOnlight, VDSColor.paletteGray44, forState: .normal)
|
$0.setSurfaceColors(VDSColor.elementsSecondaryOnlight, VDSColor.paletteGray44, forState: .normal)
|
||||||
@ -197,7 +197,7 @@ open class Toggle: Control, Changeable {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
private func updateLabel() {
|
private func updateLabel() {
|
||||||
|
|
||||||
stackView.spacing = showText ? 12 : 0
|
stackView.spacing = showText ? VDSLayout.Spacing.space3X.value : 0
|
||||||
|
|
||||||
if stackView.subviews.contains(label) {
|
if stackView.subviews.contains(label) {
|
||||||
label.removeFromSuperview()
|
label.removeFromSuperview()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user