adjustable on screen controller layer transparency

This commit is contained in:
TrueZhuangjia
2024-10-15 10:48:53 +08:00
parent 8999fd625d
commit f918779fc8
20 changed files with 266 additions and 61 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ import UIKit
borderAlpha = minimumBorderAlpha
}
self.backgroundColor = UIColor(white: 0.2, alpha: self.backgroundAlpha)
self.backgroundColor = UIColor(white: 0.2, alpha: self.backgroundAlpha - 0.18) // offset to be consistent with onScreen controller layer opacity
self.layer.borderColor = UIColor(white: 0.2, alpha: borderAlpha).cgColor
}
@@ -127,7 +127,7 @@ import UIKit
self.layer.borderColor = UIColor(white: 0.2, alpha: borderAlpha).cgColor
self.layer.borderWidth = 1
self.layer.cornerRadius = 20
self.backgroundColor = UIColor(white: 0.2, alpha: self.backgroundAlpha)
self.backgroundColor = UIColor(white: 0.2, alpha: self.backgroundAlpha - 0.18) // offset to be consistent with OSC opacity
self.layer.shadowColor = UIColor.clear.cgColor
self.layer.shadowRadius = 8
self.layer.shadowOpacity = 0.5