Skip to content

Commit

Permalink
Merge pull request #1779 from nextcloud/hex-color-fixes
Browse files Browse the repository at this point in the history
Fix color to hexstring conversion
  • Loading branch information
SystemKeeper authored Aug 24, 2024
2 parents 19b3c79 + 51e35ce commit db18988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NextcloudTalk/NCUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@ import AVFoundation
// We don't expect an alpha component right now
return String(
format: "#%02lX%02lX%02lX",
Int(red * multiplier),
Int(green * multiplier),
Int(blue * multiplier)
min(Int(red * multiplier), 255),
min(Int(green * multiplier), 255),
min(Int(blue * multiplier), 255)
)
}

Expand Down

0 comments on commit db18988

Please sign in to comment.