|
|
@ -174,11 +174,11 @@ class NumberButtonView(
|
|
|
|
fun draw(canvas: Canvas) {
|
|
|
|
fun draw(canvas: Canvas) {
|
|
|
|
val activeColor = when {
|
|
|
|
val activeColor = when {
|
|
|
|
value < 0.0 -> lowContrast
|
|
|
|
value < 0.0 -> lowContrast
|
|
|
|
|
|
|
|
(targetType == AT_LEAST) && ((value == 0.0) && (threshold != 0.0)) -> lowContrast
|
|
|
|
(targetType == AT_LEAST) && (value >= threshold) -> color
|
|
|
|
(targetType == AT_LEAST) && (value >= threshold) -> color
|
|
|
|
(targetType == AT_MOST) && (value <= threshold) -> color
|
|
|
|
(targetType == AT_MOST) && (value <= threshold) -> color
|
|
|
|
else -> mediumContrast
|
|
|
|
else -> mediumContrast
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
val label: String
|
|
|
|
val label: String
|
|
|
|
val typeface: Typeface
|
|
|
|
val typeface: Typeface
|
|
|
|
val textSize: Float
|
|
|
|
val textSize: Float
|
|
|
|