improvements

This commit is contained in:
eevee
2024-05-12 18:50:19 +03:00
parent 5eed399ef2
commit 36cf61aa15
8 changed files with 23 additions and 15 deletions
@@ -55,7 +55,7 @@ extension Color {
var normalized: Color {
brightness < 0.5
? self.lighter(by: 0.35)
? self.lighter(by: 0.5 - brightness)
: self.darker(by: brightness - 0.5)
}
@@ -16,7 +16,7 @@ extension String {
.removeMatches("\\(.*\\)")
.removeMatches("- .*")
.prefix(30)
//.trimmingCharacters(in: .whitespaces)
.trimmingCharacters(in: .whitespaces)
)
}