Make HCheckBox themable

This commit is contained in:
miruka
2019-08-20 18:31:20 -04:00
parent e012cf6e31
commit 4abf57c8d4
4 changed files with 36 additions and 19 deletions

View File

@@ -15,10 +15,11 @@ int contentIsWideAbove: 439 * uiScale
int minimumSupportedWidthPlusSpacing: minimumSupportedWidth + spacing * 2
int minimumSupportedHeightPlusSpacing: minimumSupportedHeight + spacing * 2
int baseElementsHeight: 36 * uiScale
int spacing: 12 * uiScale
int radius: 5
int animationDuration: 100
int baseElementsHeight: 36 * uiScale
int spacing: 12 * uiScale
int radius: 5
int animationDuration: 100
real disabledElementsOpacity: 0.3
string preferredIconPack: "light-thin"
@@ -88,14 +89,23 @@ controls:
color background: colors.strongBackground
button:
color background: colors.inputBackground
color text: colors.text
real disabledOpacity: 0.3
color background: colors.inputBackground
color text: colors.text
color hoveredOverlay: hsluv(0, 0, 50, 0.3)
color pressedOverlay: hsluv(0, 0, 50, 0.6)
color checkedOverlay: colors.accentBackground
checkBox:
color checkIconColor: colors.strongAccentBackground
color boxBackground: colors.inputBackground
color boxBorder: hsluv(0, 0, 50, 0.3)
color boxHoveredBorder: colors.accentBackground
color boxPressedBorder: colors.strongAccentBackground
color text: colors.text
interactiveRectangle:
color background: "transparent"