Avatars and Usernames color change (#1610)

* avatars and username color change

* force a replacement for the notification placeholders

* updated also the plain style

* Update project.yml

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>

* changelog

* UI tests updated

---------

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
This commit is contained in:
Mauro
2023-09-01 11:28:28 +02:00
committed by GitHub
parent 6df74aa21a
commit 38d6ffb363
245 changed files with 487 additions and 495 deletions
@@ -18,6 +18,13 @@ import SceneKit
import SwiftUI
class EffectsScene: SCNScene {
static let colors: [Color] = [
.blue,
.red,
.yellow,
.green
]
private enum Constants {
static let confettiSceneName = "ConfettiScene.scn"
static let particlesNodeName = "particles"
@@ -26,7 +33,7 @@ class EffectsScene: SCNScene {
static func confetti() -> EffectsScene? {
guard let scene = EffectsScene(named: Constants.confettiSceneName) else { return nil }
let colors: [[Float]] = Color.element.contentAndAvatars.compactMap(\.floatComponents)
let colors: [[Float]] = colors.compactMap(\.floatComponents)
if let particles = scene.rootNode.childNode(withName: Constants.particlesNodeName, recursively: false)?.particleSystems?.first {
// The particles need a non-zero color variation for the handler to affect the color