Don't cache svg files

This commit is contained in:
Ali
2021-06-24 01:59:06 +04:00
parent 23d8cc1657
commit fbe52a1140
16 changed files with 154 additions and 532 deletions

View File

@@ -29,7 +29,7 @@ private func intensityToSliderValue(_ value: Int32, allowDark: Bool) -> CGFloat
private func sliderValueToIntensity(_ value: CGFloat, allowDark: Bool) -> Int32 {
if allowDark {
if value < 100.0 {
return -Int32(value)
return -Int32(max(1.0, value))
} else {
return Int32(value - 100.0)
}