Branchwell

PulseCanvas / app · pulsecanvas.ai / commits / 1cf89eea

Unify Pulse Canvas branding and render visualizers in black and white new

written by protomota · 1cf89eeacc946d122aba3a62ada6cb1600fbf757 · parent 0e4fe45e

46 files changed

Sources/PulseCanvas/ExportOverlayView.swift changed

55 struct ExportOverlayView: View {
66 @ObservedObject var exporter: SocialExportController
77 @State private var showSuccess = false
8- private let accent = Color(red: 0.95, green: 0.68, blue: 0.55)
8+ private let accent = Color.white
99
1010 var body: some View {
1111 ZStack {
⋯
4242 }.padding(.horizontal, 60).padding(.vertical, 32)
4343 } else if showSuccess, let url = exporter.exportedURL {
4444 VStack(spacing: 14) {
45- Image(systemName: "checkmark.circle.fill").font(.system(size: 36)).foregroundStyle(.green)
45+ Image(systemName: "checkmark.circle.fill").font(.system(size: 36)).foregroundStyle(.white)
4646 Text("Video saved").font(.system(size: 20, weight: .semibold, design: .rounded))
4747 Text(url.lastPathComponent).font(.system(size: 12)).foregroundStyle(.secondary).lineLimit(2)
4848 Button { NSWorkspace.shared.activateFileViewerSelecting([url]) } label: {
4949 Label("Show in Finder", systemImage: "folder")
5050 }.buttonStyle(StudioButtonStyle(treatment: .primary, compact: true))
5151 }.padding(28).frame(width: 370)
52- .background(Color(red: 0.20, green: 0.17, blue: 0.22), in: RoundedRectangle(cornerRadius: 18))
52+ .background(Color(white: 0.18), in: RoundedRectangle(cornerRadius: 18))
5353 .overlay(RoundedRectangle(cornerRadius: 18).strokeBorder(.white.opacity(0.15)))
5454 .overlay(alignment: .topTrailing) {
5555 Button { withAnimation { showSuccess = false } } label: {

Sources/PulseCanvas/PulseCanvasAgentAccess.swift changed

3434
3535 func host(_ service: PulseMCPService) {
3636 host.start { [weak self, weak service] name, arguments in
37- guard let self, let service else { return ["error": PulseMCPError("APP_UNAVAILABLE", "Open PulseCanvas Studio.").payload] }
37+ guard let self, let service else { return ["error": PulseMCPError("APP_UNAVAILABLE", "Open Pulse Canvas.").payload] }
3838 if name == "get_app_status" || enabled { lastConnection = Date() }
3939 return await service.call(name, arguments)
4040 }
⋯
118118 }
119119 return AuthorizedPath(url: writing ? candidate : resolved, scope: grant)
120120 }
121- throw PulseMCPError("PERMISSION_REQUIRED", "Authorize the containing folder under PulseCanvas Studio → Settings → Agent access.")
121+ throw PulseMCPError("PERMISSION_REQUIRED", "Authorize the containing folder under Pulse Canvas → Settings → Agent access.")
122122 }
123123
124124 static var command: String {
⋯
273273 return response?["enabled"] as? Bool == true
274274 }.value
275275 testing = false
276- feedback = connected ? "Local connection passed." : "Connection failed. Reopen PulseCanvas Studio and try again."
276+ feedback = connected ? "Local connection passed." : "Connection failed. Reopen Pulse Canvas and try again."
277277 }
278278 }
279279 }

Sources/PulseCanvas/PulseCanvasApp.swift changed

1818 Text("Application").font(.headline)
1919 Text("PulseCanvas first-party code is open source and public domain (Unlicense). Third-party components and assets have separate terms.")
2020 #if STORE_BUILD
21- Text("Metal edition").font(.headline)
22- Text("This App Store edition includes \(NativeEffects.activeIDs.count) Metal visualizers. The projectM engine, OpenGL presets, and texture pack are not included.")
21+ Text("\(NativeEffects.activeIDs.count) built-in visualizers")
2322 #else
2423 Text("projectM engine").font(.headline)
2524 Text("projectM 4.2.0 is included under LGPL 2.1 or later. Engine source and rebuild instructions accompany the matching source package.")
⋯
7271 @StateObject private var updater = AppUpdater()
7372 #endif
7473 var body: some Scene {
75- WindowGroup("PulseCanvas Studio") {
74+ WindowGroup("Pulse Canvas") {
7675 CreatorView(render: render, audio: audio, radio: radio, studio: studio, exporter: exporter, presentation: presentation, lifecycle: lifecycle)
7776 .preferredColorScheme(.dark)
7877 .modifier(PulseCanvasOnboardingPresentation(onReplay: { audio.pause() }))
⋯
122121 #endif
123122 .commands {
124123 CommandGroup(after: .appInfo) {
125- Button("Welcome to PulseCanvas Studio") {
124+ Button("Welcome to Pulse Canvas") {
126125 audio.pause()
127126 NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil)
128127 }
⋯
156155 PulseMCPSettings(access: agentAccess)
157156 #endif
158157 Section("Onboarding") {
159- Button("Welcome to PulseCanvas Studio", systemImage: "sparkles") {
158+ Button("Welcome to Pulse Canvas", systemImage: "sparkles") {
160159 NSApp.keyWindow?.close()
161160 audio.pause()
162161 NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil)
⋯
174173 #if DIRECT_BUILD && canImport(Sparkle) && !LOCAL_BUILD
175174 Section("Updates") {
176175 Toggle("Automatically check for updates", isOn: $updater.automaticChecks)
177- Text("The direct-download edition checks pulsecanvas.ai for signed updates. System profiling is disabled.").font(.callout).foregroundStyle(.secondary)
176+ Text("Pulse Canvas checks pulsecanvas.ai for signed updates. System profiling is disabled.").font(.callout).foregroundStyle(.secondary)
178177 Button("Check for Updates…") { updater.checkForUpdates() }.disabled(!updater.canCheck)
179178 }
180179 #endif
⋯
191190 }, prepare: { radio.leave(); audio.pause() }, openProject: { data in
192191 NotificationCenter.default.post(name: .pulseCanvasOpenBackupProject, object: data)
193192 })
194- .padding(24).tint(Color(red: 0.95, green: 0.68, blue: 0.55)).controlSize(.large)
193+ .padding(24).tint(Color.white).controlSize(.large)
195194 .disabled(exporter.isExporting)
196195 }.frame(minWidth: 540, minHeight: 480).preferredColorScheme(.dark)
197196 }.defaultSize(width: 620, height: 580)
⋯
225224 @State private var showProjectSettings = false
226225 @State private var showRadio = false
227226 @State private var showMusicPicker = false
228- private let accent = Color(red: 0.95, green: 0.68, blue: 0.55)
229- private let background = Color(red: 0.145, green: 0.12, blue: 0.16)
230- private let panel = Color(red: 0.20, green: 0.17, blue: 0.22)
227+ private let accent = Color.white
228+ private let background = Color(white: 0.13)
229+ private let panel = Color(white: 0.18)
231230
232231 var body: some View {
233232 ZStack {
⋯
299298 HStack {
300299 Text(message.isEmpty ? (radio.isActive ? radio.status : audio.status) : message).lineLimit(1)
301300 Spacer()
302- if !exporter.status.isEmpty { Text(exporter.status).lineLimit(1).foregroundStyle(exporter.didFail ? .red : .secondary) }
301+ if !exporter.status.isEmpty { Text(exporter.status).lineLimit(1).foregroundStyle(exporter.didFail ? .white : .secondary) }
303302 Text(presetLibrary.pool.enabled ? "\(presetLibrary.eligibleScenes.count) of \(presetLibrary.availableScenes.count) visualizers" : "\(presetLibrary.availableScenes.count) visualizers").foregroundStyle(.secondary)
304303 }.font(.system(size: 11)).padding(.horizontal, 20).padding(.vertical, 9)
305304 }
⋯
328327 .sheet(isPresented: $showHelp) {
329328 VStack(alignment: .leading, spacing: 18) {
330329 Text("Create a music visual").font(.title2)
331- Button("Welcome to PulseCanvas Studio") {
330+ Button("Welcome to Pulse Canvas") {
332331 showHelp = false; audio.pause()
333332 NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil)
334333 }.buttonStyle(StudioButtonStyle())
⋯
469468 let dimensions = exporter.aspect.dimensions(resolution: exporter.resolution)
470469 Text("\(dimensions.width) × \(dimensions.height) / \(exporter.fps) fps").monospacedDigit().foregroundStyle(.secondary)
471470 }.font(.system(size: 11))
472- if let error = render.errorMessage { Text(error).font(.caption).foregroundStyle(.red) }
471+ if let error = render.errorMessage { Text(error).font(.caption).foregroundStyle(.white) }
473472 }
474473 }
475474
⋯
496495 HStack(spacing: 0) {
497496 ForEach(0..<palette.stops.count, id: \.self) { index in
498497 let rgb = palette.stops[index]
499- Rectangle().fill(Color(red: Double(rgb.x), green: Double(rgb.y), blue: Double(rgb.z)))
498+ Rectangle().fill(Color(white: Double(rgb.x * 0.2126 + rgb.y * 0.7152 + rgb.z * 0.0722)))
500499 }
501500 }.frame(width: 70, height: 18).clipShape(RoundedRectangle(cornerRadius: 4))
502501 Text(palette.title).font(.system(size: 12))
⋯
509508 }
510509 }
511510 } else {
512- Text("This preset supplies its own colors, shapes, waves, and feedback. Adjust motion and audio response below.")
511+ Text("This preset supplies its own shapes, waves, and frame blending. Adjust motion and audio response below.")
513512 .font(.system(size: 12)).foregroundStyle(.secondary)
514513 }
515514 Divider()
⋯
725724 let band = bands.indices.contains(index) && bands[index].isFinite ? CGFloat(bands[index]) : 0
726725 let height = max(2, size.size.height * min(1, max(0, band)))
727726 RoundedRectangle(cornerRadius: 0.5)
728- .fill(Color(red: 0.95, green: 0.68, blue: 0.55).opacity(0.7))
727+ .fill(Color.white.opacity(0.7))
729728 .frame(width: 3, height: height)
730729 .animation(.linear(duration: 0.065), value: height)
731730 }
⋯
743742 let chooseMusic: () -> Void
744743 var compactness: CGFloat = 0
745744 @State private var playbackRevision = 0
746- private let accent = Color(red: 0.95, green: 0.68, blue: 0.55)
745+ private let accent = Color.white
747746 var body: some View {
748747 let _ = playbackRevision
749748 VStack(alignment: .leading, spacing: 14 - 6 * compactness) {

Sources/PulseCanvas/PulseCanvasMCP.swift changed

238238 initialized = true
239239 respond(["protocolVersion": versions.contains(version) ? version : versions[0],
240240 "capabilities": ["tools": ["listChanged": false]],
241- "serverInfo": ["name": "pulsecanvas", "title": "PulseCanvas Studio",
241+ "serverInfo": ["name": "pulsecanvas", "title": "Pulse Canvas",
242242 "version": Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "development"],
243- "instructions": "Open PulseCanvas Studio on this Mac and enable Settings → Agent access. Read get_app_status and get_capabilities before changing data."])
243+ "instructions": "Open Pulse Canvas on this Mac and enable Settings → Agent access. Read get_app_status and get_capabilities before changing data."])
244244 case "ping": respond([:])
245245 case "tools/list" where initialized: respond(["tools": tools.map(\.schema)])
246246 case "tools/call" where initialized:
⋯
280280 static var configuredRoot: URL {
281281 UserDataStorage.defaultSupport.appendingPathComponent("AgentConnection", isDirectory: true)
282282 }
283- private static let unavailable = PulseMCPError("APP_UNAVAILABLE", "Open PulseCanvas Studio on this Mac, then retry.")
283+ private static let unavailable = PulseMCPError("APP_UNAVAILABLE", "Open Pulse Canvas on this Mac, then retry.")
284284 private static let lifetime: TimeInterval = 180
285285
286286 static func root() throws -> URL {

Sources/PulseCanvas/PulseCanvasMCPService.swift changed

4242 "pendingExports": access.enabled ? jobs.pendingCount : 0]]
4343 }
4444 guard access.enabled else {
45- throw PulseMCPError("CONNECTION_DISABLED", "Enable local agent access in PulseCanvas Studio → Settings → Agent access.")
45+ throw PulseMCPError("CONNECTION_DISABLED", "Enable local agent access in Pulse Canvas → Settings → Agent access.")
4646 }
4747 if let permission = tool.permission { try require(permission) }
4848 return ["value": try await execute(name, args)]
⋯
169169
170170 private func require(_ permission: String) throws {
171171 guard access.enabled, access.permits(permission) else {
172- throw PulseMCPError("PERMISSION_REQUIRED", "Enable \(permission) access in PulseCanvas Studio → Settings → Agent access.")
172+ throw PulseMCPError("PERMISSION_REQUIRED", "Enable \(permission) access in Pulse Canvas → Settings → Agent access.")
173173 }
174174 }
175175

Sources/PulseCanvas/PulseCanvasOnboarding.swift changed

11 import SwiftUI
2- import StoreKit
32 #if os(macOS)
43 import AppKit
54 #else
⋯
111110 @ScaledMetric(relativeTo: .headline) private var tabletLessonTitleSize = 23
112111 @ScaledMetric(relativeTo: .subheadline) private var tabletDetailSize = 20
113112 @ScaledMetric(relativeTo: .footnote) private var tabletNoteSize = 18
114- private let accent = Color(red: 0.95, green: 0.68, blue: 0.55)
115- private let background = Color(red: 50.0 / 255, green: 44.0 / 255, blue: 55.0 / 255)
113+ private let accent = Color.white
114+ private let background = Color(white: 0.18)
116115 private let ink = Color.white
117116 private var names: [String] {
118117 [String(localized: "Welcome"), String(localized: "Visualizers"), String(localized: "Studio"),
⋯
140139 }
141140 private func subtitle(for step: Int) -> String {
142141 switch step {
143- case 0: return String(localized: "Turn sound into moving art with PulseCanvas Studio. A few basics, then the canvas is yours.")
142+ case 0: return String(localized: "Turn sound into moving art with Pulse Canvas. A few basics, then the canvas is yours.")
144143 case 1: return String(localized: "Explore the visualizer library, save your favorites, and shape the colors and motion to suit your music.")
145144 case 2:
146145 return String(localized: "Choose music or import a soundtrack. Studio finds the beat so your scenes can change with the song.")
⋯
501500 configuration.label
502501 .font(fontSize.map { .system(size: $0, weight: .semibold) } ?? (compact ? .subheadline.weight(.medium) : .headline))
503502 .padding(.horizontal, compact ? 16 : 22).padding(.vertical, compact ? 12 : 17)
504- .foregroundStyle(primary ? Color(red: 0.16, green: 0.12, blue: 0.20) : .white)
505- .background(primary ? Color(red: 0.95, green: 0.68, blue: 0.55) : .white.opacity(configuration.isPressed ? 0.12 : 0.065), in: Capsule())
503+ .foregroundStyle(primary ? Color(white: 0.13) : .white)
504+ .background(primary ? Color.white : .white.opacity(configuration.isPressed ? 0.12 : 0.065), in: Capsule())
506505 .overlay(Capsule().strokeBorder(.white.opacity(primary ? 0 : 0.12), lineWidth: 1))
507506 .opacity(enabled ? (configuration.isPressed ? 0.8 : 1) : 0.4)
508507 }

Sources/PulseCanvas/RadioView.swift changed

3838 Divider()
3939 if opening || radio.isCatalogLoading {
4040 VStack(spacing: 16) {
41- ProgressView().controlSize(.large).tint(Color(red: 0.95, green: 0.68, blue: 0.55))
41+ ProgressView().controlSize(.large).tint(Color.white)
4242 Text("Loading Radio…").font(.headline)
4343 Text("Getting stations and songs ready.").font(.callout).foregroundStyle(.secondary)
4444 }.frame(maxWidth: .infinity, maxHeight: .infinity)
⋯
163163 HStack(spacing: 0) {
164164 Button { play(song) } label: {
165165 HStack(spacing: 12) {
166- Image(systemName: "play.circle.fill").font(.title2).foregroundStyle(.orange)
166+ Image(systemName: "play.circle.fill").font(.title2).foregroundStyle(.white)
167167 VStack(alignment: .leading, spacing: 4) {
168168 Text(song.track.title).font(.system(size: 13, weight: .medium)).lineLimit(1)
169169 Text(song.track.genre).font(.caption).foregroundStyle(.secondary).lineLimit(1)
⋯
172172 }.padding(12).frame(maxWidth: .infinity, minHeight: 56).contentShape(Rectangle())
173173 }.buttonStyle(.plain).accessibilityLabel("Play \(song.track.title) in Radio")
174174 Button { radio.toggleFavoriteSong(song.track) } label: {
175- Image(systemName: "heart.fill").foregroundStyle(.orange)
175+ Image(systemName: "heart.fill").foregroundStyle(.white)
176176 .frame(width: 44, height: 56).contentShape(Rectangle())
177177 }.buttonStyle(.plain).accessibilityLabel("Unfavorite song \(song.track.title)")
178178 }.background(.white.opacity(0.04), in: RoundedRectangle(cornerRadius: 10))

Sources/PulseCanvas/Resources/Canvas.metal changed

11 #include <metal_stdlib>
22 using namespace metal;
3+
4+ // Preserve highlight intensity and coverage when projecting colored effects to grayscale.
5+ static float monochromeIntensity(float3 color) { return max(color.r, max(color.g, color.b)); }
36 struct CanvasMeshInput {
47 float3 position;
58 float4 color;
⋯
3134 float specular = pow(abs(dot(normal, normalize(float3(-0.15,0.25,0.96)))), 18);
3235 float depth = clamp(1.2 - length(input.surface) / 100, 0.4, 1.0);
3336 float shade = (0.30 + 0.70 * diffuse + 0.20 * specular) * depth;
34- return float4(input.color.rgb * shade, input.color.a);
37+ return float4(float3(monochromeIntensity(input.color.rgb * shade)), input.color.a);
3538 }
3639
3740 struct CanvasInput { float3 position [[attribute(0)]]; float4 color [[attribute(1)]]; float2 uv [[attribute(2)]]; };
⋯
5558 float shine = pow(max(0.0, dot(normal, normalize(float3(-0.25, 0.3, 0.92)))), 24);
5659 float rim = pow(1 - normal.z, 2);
5760 float3 color = input.color.rgb * (0.2 + 0.75 * diffuse + 0.35 * rim) + shine * 0.45;
58- return float4(color, 0.82 * smoothstep(1.0, 0.82, sqrt(radius2)));
61+ return float4(float3(monochromeIntensity(color)), 0.82 * smoothstep(1.0, 0.82, sqrt(radius2)));
5962 }

Sources/PulseCanvas/Resources/NativeCommon.metal changed

11 #include <metal_stdlib>
22 using namespace metal;
33
4+ // Preserve highlight intensity and coverage when projecting colored effects to grayscale.
5+ static float monochromeIntensity(float3 color) { return max(color.r, max(color.g, color.b)); }
6+
47 // PulseCanvas native effect prelude. Original procedural code: no external images,
58 // preset equations or third-party shader sources. Classic mathematical forms are
69 // implemented from their definitions. This file is prepended to every Native*.metal
⋯
235238 color = 1 - exp(-color * 1.55);
236239 // Static ordered dither keeps smooth gradients from banding in 8-bit video.
237240 float dither = (hash21(floor(position)) - .5) / 255;
238- return float4(saturate(color + dither), 1);
241+ return float4(float3(monochromeIntensity(saturate(color + dither))), 1);
239242 }
240243
241244 // Each effect is `float3 name(Ctx c, constant NativeFrame &f)`; this emits its fragment.

Sources/PulseCanvas/Resources/NativeExpansionAtmospheric.metal changed

597597 return displayColor(color * falloff, pixel);
598598 }
599599
600+ // Palette-free intensity for the standalone study renderer.
600601 #if defined(PULSECANVAS_STUDY)
602+ static float monochromeIntensity(float3 color) { return max(color.r, max(color.g, color.b)); }
603+ #endif
604+ #if defined(PULSECANVAS_STUDY)
601605 struct PreviewFrame { float phase; float beat; };
602606 static float2 screenPoint(uint2 pixel, uint2 size) {
603607 float2 p = (float2(pixel) + 0.5f - 0.5f * float2(size)) * (2.0f / float(min(size.x, size.y)));
⋯
610614 uint2 size = uint2(output.get_width(), output.get_height()); \
611615 if (any(pixel >= size)) { return; } \
612616 StudyFrame frame = {preview.phase, preview.beat, preview.phase, 1.0f, 0.5f}; \
613- output.write(color(screenPoint(pixel, size), pixel, frame), pixel); \
617+ float4 sample = color(screenPoint(pixel, size), pixel, frame); \
618+ output.write(float4(float3(monochromeIntensity(sample.rgb)), sample.a), pixel); \
614619 }
615620 #else
616621 static float4 styleAtmosphere(float4 color, constant NativeFrame& f) {
⋯
622627 float3 tint = paint(value, f);
623628 rgb = mix(rgb, tint * value / max(max(tint.r, tint.g), max(tint.b, 0.01f)), 0.68f);
624629 }
625- return float4(saturate(rgb * f.style.x), color.a);
630+ return float4(float3(monochromeIntensity(saturate(rgb * f.style.x))), color.a);
626631 }
627632
628633 #define STUDY_ENTRY(entry, color) \

Sources/PulseCanvas/Resources/NativeExpansionCommon.metal changed

11 #include <metal_stdlib>
22 using namespace metal;
33
4+ // Preserve highlight intensity and coverage when projecting colored effects to grayscale.
5+ static float monochromeIntensity(float3 color) { return max(color.r, max(color.g, color.b)); }
6+
47 // PulseCanvas native effect prelude. Original procedural code: no external images,
58 // preset equations or third-party shader sources. Classic mathematical forms are
69 // implemented from their definitions. This file is prepended to every Native*.metal
⋯
329332 color = 1 - exp(-color * 1.55);
330333 // Static ordered dither keeps smooth gradients from banding in 8-bit video.
331334 float dither = (hash21(floor(position)) - .5) / 255;
332- return float4(saturate(color + dither), 1);
335+ return float4(float3(monochromeIntensity(saturate(color + dither))), 1);
333336 }
334337
335338 // Each effect is `float3 name(Ctx c, constant NativeFrame &f)`; this emits its fragment.

Sources/PulseCanvas/Resources/Onboarding/logo.png changed

Not a text file.

Sources/PulseCanvas/Resources/Onboarding/share.png changed

Not a text file.

Sources/PulseCanvas/Resources/Onboarding/studio.png changed

Not a text file.

Sources/PulseCanvas/Resources/Onboarding/visuals.png changed

Not a text file.

Sources/PulseCanvas/Resources/Onboarding/welcome.png changed

Not a text file.

Sources/PulseCanvas/Resources/SpatialVisuals.metal changed

11 #include <metal_stdlib>
22 using namespace metal;
3+
4+ // Preserve highlight intensity and coverage when projecting colored effects to grayscale.
5+ static float monochromeIntensity(float3 color) { return max(color.r, max(color.g, color.b)); }
36 struct SpatialFrame {
47 float2 resolution; float time; int scene;
58 float4 rhythm; // pulse, beat drive, bass, treble
⋯
281284 float2 uv=(input.position.xy/f.resolution-.5)*float2(2*f.resolution.x/f.resolution.y,-2);
282285 uv=spin(uv,f.camera.x);
283286 float t=f.time, beat=f.rhythm.x;
284- if(f.scene==22) return float4(meshVortex(uv,f),1);
287+ if(f.scene==22) return float4(float3(monochromeIntensity(meshVortex(uv, f))), 1);
285288 float zoomSpeed=clamp(f.camera.w,0.f,3.f);
286289 float3 ro=float3(sin(t*.23)*.3,cos(t*.19)*.3,t*1.9*zoomSpeed);
287290 float3 rd=normalize(float3(uv,1.45*clamp(f.style.w,.5f,2.5f)));
⋯
373376 color*=max(0.f,f.style.x);
374377 // Tone-map each palette channel without introducing unrelated rainbow hues.
375378 color=1-exp(-color*1.45);
376- return float4(color,1);
379+ return float4(float3(monochromeIntensity(color)), 1);
377380 }

Sources/PulseCanvas/Resources/Strobe.metal changed

11 #include <metal_stdlib>
22 using namespace metal;
3+
4+ // Preserve highlight intensity and coverage when projecting colored effects to grayscale.
5+ static float monochromeIntensity(float3 color) { return max(color.r, max(color.g, color.b)); }
36 // Original fullscreen overlay, composed after all scene effects.
47 vertex float4 whiteFlashVertex(uint id [[vertex_id]]) {
58 const float2 p[3] = { float2(-1, -1), float2(3, -1), float2(-1, 3) };
⋯
5457 float c = cos(style.z), s = sin(style.z);
5558 uv = float2(c*p.x-s*p.y, s*p.x+c*p.y) + .5;
5659 uv.y = 1 - uv.y;
57- return float4(source.sample(sampling, uv).rgb * style.x, 1);
60+ return float4(float3(monochromeIntensity(source.sample(sampling, uv).rgb * style.x)), 1);
5861 }

Sources/PulseCanvas/StudioControls.swift changed

5454 @Environment(\.isEnabled) private var isEnabled
5555 @Environment(\.isFocused) private var isFocused
5656 @State private var hovering = false
57- private let peach = Color(red: 0.95, green: 0.68, blue: 0.55)
57+ private let peach = Color.white
5858
5959 func makeBody(configuration: Configuration) -> some View {
6060 configuration.label
⋯
6262 .padding(.horizontal, circular ? 0 : (compact ? 11 : 16))
6363 .frame(width: circular ? 44 : nil, height: circular ? 44 : nil)
6464 .frame(minHeight: 44)
65- .foregroundStyle(treatment == .primary ? Color(red: 0.22, green: 0.13, blue: 0.15) : .white.opacity(0.92))
65+ .foregroundStyle(treatment == .primary ? Color(white: 0.15) : .white.opacity(0.92))
6666 .background(fill(pressed: configuration.isPressed), in: RoundedRectangle(cornerRadius: circular ? 22 : 11))
6767 .overlay(RoundedRectangle(cornerRadius: circular ? 22 : 11).strokeBorder(border, lineWidth: isFocused ? 2 : 1))
6868 .opacity(isEnabled ? 1 : 0.4)
⋯
9494 var icon: String? = nil
9595 @Environment(\.isEnabled) private var isEnabled
9696 @Environment(\.isFocused) private var isFocused
97- private let peach = Color(red: 0.95, green: 0.68, blue: 0.55)
97+ private let peach = Color.white
9898
9999 func makeBody(configuration: Configuration) -> some View {
100100 Button { configuration.isOn.toggle() } label: {
⋯
104104 ZStack(alignment: configuration.isOn ? .trailing : .leading) {
105105 Capsule().fill(configuration.isOn ? peach : Color.white.opacity(0.15))
106106 Capsule().strokeBorder(configuration.isOn ? peach : Color.white.opacity(0.22), lineWidth: 1)
107- Circle().fill(configuration.isOn ? Color(red: 0.23, green: 0.14, blue: 0.16) : .white.opacity(0.85))
107+ Circle().fill(configuration.isOn ? Color(white: 0.16) : .white.opacity(0.85))
108108 .frame(width: 22, height: 22).padding(3)
109109 }.frame(width: 48, height: 28)
110110 }.padding(.horizontal, 10).frame(minHeight: 44)
⋯
126126 @Environment(\.isEnabled) private var isEnabled
127127 @Environment(\.isFocused) private var isFocused
128128 @State private var hovering = false
129- private let peach = Color(red: 0.95, green: 0.68, blue: 0.55)
129+ private let peach = Color.white
130130
131131 func makeBody(configuration: Configuration) -> some View {
132132 configuration.label

Sources/PulseCanvas/StudioMusicPicker.swift changed

6565 Button { add(song) } label: {
6666 HStack(spacing: 12) {
6767 Image(systemName: favoriteIDs.contains(song.id) ? "heart.fill" : "music.note")
68- .foregroundStyle(.orange).frame(width: 24)
68+ .foregroundStyle(.white).frame(width: 24)
6969 VStack(alignment: .leading, spacing: 4) {
7070 Text(song.title).font(.headline).lineLimit(1)
7171 Text("\(song.genre) · \(duration(song.duration))").font(.caption).foregroundStyle(.secondary)
7272 }
7373 Spacer(minLength: 8)
7474 if adding == song.id { ProgressView().controlSize(.small) }
75- else { Image(systemName: "plus.circle.fill").font(.title2).foregroundStyle(.orange) }
75+ else { Image(systemName: "plus.circle.fill").font(.title2).foregroundStyle(.white) }
7676 }.padding(14).frame(maxWidth: .infinity, minHeight: 64, alignment: .leading)
7777 .contentShape(RoundedRectangle(cornerRadius: 12))
7878 }.buttonStyle(.plain).background(.white.opacity(0.06), in: RoundedRectangle(cornerRadius: 12))
⋯
8282 }
8383 }
8484 if adding != nil { Label("Downloading and preparing your soundtrack…", systemImage: "arrow.down.circle").font(.callout).foregroundStyle(.secondary) }
85- if let error { Text(error).font(.callout).foregroundStyle(.red).accessibilityIdentifier("studioMusicError") }
85+ if let error { Text(error).font(.callout).foregroundStyle(.white).accessibilityIdentifier("studioMusicError") }
8686 }.padding(24)
87- .background(Color(red: 0.12, green: 0.10, blue: 0.14)).tint(Color(red: 0.95, green: 0.68, blue: 0.55))
87+ .background(Color(white: 0.11)).tint(Color.white)
8888 .task { await catalog.load() }
8989 .onDisappear { addition?.cancel() }
9090 .interactiveDismissDisabled(adding != nil)

Sources/PulseCanvas/StudioTimelineView.swift changed

3131 private enum StrobeAction: String, CaseIterable {
3232 case keep = "Keep individual", add = "Apply all", remove = "Remove all"
3333 }
34- private let accent = Color(red: 0.95, green: 0.68, blue: 0.55)
34+ private let accent = Color.white
3535
3636 var body: some View {
3737 VStack(alignment: .leading, spacing: 10 - 4 * compactness) {
⋯
168168 .disabled(exporting || studio.segments.isEmpty || (!randomizeVisualizers && !randomizeBarLengths))
169169 }
170170 }.padding(28).frame(width: 490)
171- .background(Color(red: 0.115, green: 0.095, blue: 0.14))
171+ .background(Color(white: 0.10))
172172 .tint(accent)
173173 .onAppear { randomizeVisualizers = true; randomizeBarLengths = false }
174174 }
⋯
438438 let scenes = favorites
439439 VStack(alignment: .leading, spacing: 8) {
440440 Label("Favorites", systemImage: "heart.fill").font(.system(size: 13, weight: .semibold))
441- .foregroundStyle(Color(red: 0.95, green: 0.68, blue: 0.55)).padding(.horizontal, 8)
441+ .foregroundStyle(Color.white).padding(.horizontal, 8)
442442 if scenes.isEmpty {
443443 Text("Tap a visualizer’s heart in the Library to add it here.")
444444 .font(.system(size: 12)).foregroundStyle(.secondary).padding(8)
⋯
449449 Button {choose(scene)} label: {
450450 HStack(spacing: 10) {
451451 Image(systemName: library.icon(for: scene)).frame(width: 22)
452- .foregroundStyle(.orange.opacity(0.85))
452+ .foregroundStyle(.white.opacity(0.85))
453453 Text(RenderState.sceneNames[scene]).font(.system(size: 12, weight: .medium)).lineLimit(1)
454454 Spacer(minLength: 0)
455- if scene == selected {Image(systemName: "checkmark").foregroundStyle(.orange)}
455+ if scene == selected {Image(systemName: "checkmark").foregroundStyle(.white)}
456456 }.padding(.horizontal, 10).frame(maxWidth: .infinity, minHeight: 44)
457- .background(scene == selected ? Color.orange.opacity(0.12) : .white.opacity(0.04), in: RoundedRectangle(cornerRadius: 7))
457+ .background(scene == selected ? Color.white.opacity(0.12) : .white.opacity(0.04), in: RoundedRectangle(cornerRadius: 7))
458458 .contentShape(Rectangle())
459459 }.buttonStyle(.plain).accessibilityLabel("Use favorite \(RenderState.sceneNames[scene])")
460460 }
⋯
479479 GeometryReader { space in
480480 ZStack(alignment: .leading) {
481481 Capsule().fill(.white.opacity(0.07))
482- Capsule().fill(LinearGradient(colors: palette.stops.map { Color(red: Double($0.x), green: Double($0.y), blue: Double($0.z)) }, startPoint: .leading, endPoint: .trailing))
482+ Capsule().fill(LinearGradient(colors: palette.stops.map { Color(white: Double($0.x * 0.2126 + $0.y * 0.7152 + $0.z * 0.0722)) }, startPoint: .leading, endPoint: .trailing))
483483 .frame(width: selected ? max(3, space.size.width * elapsed) : space.size.width)
484484 }
485485 }.frame(height: 3)

Sources/PulseCanvas/UserBackupView.swift changed

6060 }
6161 if busy { ProgressView("Preparing backup…") }
6262 if !status.isEmpty { Text(status).font(.callout).textSelection(.enabled).accessibilityIdentifier("userBackupStatus") }
63- if let error = UserBackup.startupError { Text(error).foregroundStyle(.red) }
63+ if let error = UserBackup.startupError { Text(error).foregroundStyle(.white) }
6464 if let openProject, !savedProjects.isEmpty {
6565 DisclosureGroup("Saved & restored projects") {
6666 ForEach(savedProjects, id: \.self) { url in

Sources/PulseCanvas/VisualizerBrowser.swift changed

1717 @State private var backupMessage = ""
1818 @State private var backupFailed = false
1919 @FocusState private var searchFocused: Bool
20- private let accent = Color(red: 0.95, green: 0.68, blue: 0.55)
20+ private let accent = Color.white
2121 private var matches: [Int] {
2222 library.filteredScenes(query: query, collection: collection, category: category,
2323 folder: folder, favoritesOnly: favoritesOnly)
⋯
6565 HStack(spacing: 0) {
6666 Button { choose(scene) } label: {
6767 HStack(spacing: 10) {
68- Image(systemName: library.icon(for:scene)).font(.system(size:18, weight:.light)).frame(width: 28, height:32).foregroundStyle(.orange.opacity(0.85))
68+ Image(systemName: library.icon(for:scene)).font(.system(size:18, weight:.light)).frame(width: 28, height:32).foregroundStyle(.white.opacity(0.85))
6969 VStack(alignment: .leading, spacing: 3) {
7070 Text(RenderState.sceneNames[scene]).font(.system(size: 12, weight: .medium)).lineLimit(1)
7171 Text(library.preset(for: scene)?.category ?? "Native Metal · \(library.category(for: scene))").font(.system(size: 10)).foregroundStyle(.secondary).lineLimit(1)
7272 }
7373 Spacer()
74- if selected == scene { Image(systemName: "checkmark").foregroundStyle(.orange) }
74+ if selected == scene { Image(systemName: "checkmark").foregroundStyle(.white) }
7575 }.padding(.horizontal, 12).frame(maxWidth: .infinity, minHeight: 52)
7676 .contentShape(Rectangle())
7777 }.buttonStyle(.plain).accessibilityLabel("Use \(RenderState.sceneNames[scene])")
7878 .help("Select visualizer")
7979 Button {library.toggleFavorite(scene, appearance: appearance?(scene))} label: {
8080 Image(systemName: library.isFavorite(scene) ? "heart.fill" : "heart")
81- .foregroundStyle(library.isFavorite(scene) ? Color.orange : .secondary)
81+ .foregroundStyle(library.isFavorite(scene) ? Color.white : .secondary)
8282 .frame(width: 44, height: 52).contentShape(Rectangle())
8383 }.buttonStyle(.plain)
8484 .accessibilityLabel(library.isFavorite(scene) ? "Unfavorite \(RenderState.sceneNames[scene])" : "Favorite \(RenderState.sceneNames[scene])")
85- }.background(selected == scene ? Color.orange.opacity(0.12) : .white.opacity(0.04), in: RoundedRectangle(cornerRadius: 8))
85+ }.background(selected == scene ? Color.white.opacity(0.12) : .white.opacity(0.04), in: RoundedRectangle(cornerRadius: 8))
8686 .help(library.preset(for:scene)?.originalTitle ?? RenderState.sceneNames[scene])
8787 }
8888 }
⋯
107107 }
108108 if !backupMessage.isEmpty || library.favoritesBackupError != nil {
109109 Text(library.favoritesBackupError ?? backupMessage).font(.caption)
110- .foregroundStyle(backupFailed || library.favoritesBackupError != nil ? Color.red : .secondary)
110+ .foregroundStyle(backupFailed || library.favoritesBackupError != nil ? Color.white : .secondary)
111111 .fixedSize(horizontal: false, vertical: true)
112112 }
113113 }.padding(18).frame(width: 680)

Sources/PulseCanvas/VisualizerPoolControls.swift changed

8080 @ObservedObject private var library = ProjectMPresets.shared
8181 let close: () -> Void
8282 @State private var draft = VisualizerPool()
83- private let accent = Color(red: 0.95, green: 0.68, blue: 0.55)
83+ private let accent = Color.white
8484 var body: some View {
8585 VStack(alignment: .leading, spacing: 18) {
8686 Label("Visualizer pool", systemImage: "line.3.horizontal.decrease.circle")
⋯
105105 }.disabled(!draft.enabled).opacity(draft.enabled ? 1 : 0.5)
106106 let count = library.scenes(in: draft).count
107107 Label("\(count.formatted()) matching visualizers", systemImage: count == 0 ? "exclamationmark.circle" : "checkmark.circle")
108- .foregroundStyle(count == 0 ? Color.orange : accent)
108+ .foregroundStyle(count == 0 ? Color.white : accent)
109109 if count == 0 {
110110 Text("Choose another category, add favorites, or turn the limit off. Randomizers stay idle when the pool is empty.")
111111 .font(.callout).foregroundStyle(.secondary).fixedSize(horizontal: false, vertical: true)

Sources/PulseCanvas/VisualizerPresetStrip.swift changed

137137 let rect = bounds.insetBy(dx: 0.5, dy: 0.5), path = NSBezierPath(roundedRect: rect, xRadius: 9, yRadius: 9)
138138 (isSelected ? accent.withAlphaComponent(0.13) : fill.withAlphaComponent(0.65)).setFill(); path.fill()
139139 (isSelected ? accent.withAlphaComponent(0.8) : NSColor.white.withAlphaComponent(0.08)).setStroke(); path.lineWidth = 1; path.stroke()
140- let color = isSelected ? accent : NSColor(red: 0.79, green: 0.69, blue: 0.89, alpha: 1)
140+ let color = isSelected ? accent : NSColor(white: 0.74, alpha: 1)
141141 if let image {
142142 let size = image.size
143143 let scale = min(32 / max(1, size.width), 32 / max(1, size.height))

Sources/PulseCanvas/VisualizerRenderer.swift changed

9090 func makeNSView(context: Context) -> MTKView {
9191 let view = MTKView(frame: .zero, device: MTLCreateSystemDefaultDevice())
9292 view.colorPixelFormat = .bgra8Unorm
93- view.clearColor = MTLClearColor(red: 0.003, green: 0.003, blue: 0.012, alpha: 1)
93+ view.clearColor = MTLClearColor(red: 0.003, green: 0.003, blue: 0.003, alpha: 1)
9494 view.framebufferOnly = false
9595 view.preferredFramesPerSecond = 60
9696 view.delegate = context.coordinator
⋯
695695 let pass = MTLRenderPassDescriptor()
696696 pass.colorAttachments[0].texture = target
697697 pass.colorAttachments[0].loadAction = .clear; pass.colorAttachments[0].storeAction = .store
698- pass.colorAttachments[0].clearColor = MTLClearColor(red: 0.002, green: 0.002, blue: 0.007, alpha: 1)
698+ pass.colorAttachments[0].clearColor = MTLClearColor(red: 0.002, green: 0.002, blue: 0.002, alpha: 1)
699699 // Bead sprites arrive sorted far to near and blend without a depth buffer.
700700 let beads = indices.isEmpty
701701 if !beads {

Version.xcconfig changed

11 // Shared development version for Mac, iPhone/iPad and Vision Pro. Build numbers stay platform-specific.
2- MARKETING_VERSION = 1.3.8
2+ MARKETING_VERSION = 1.3.9

assets/app-icon/PulseCanvas-Octagon.png changed

Not a text file.

macOS/Info.plist changed

99 <key>CFBundleIdentifier</key>
1010 <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111 <key>CFBundleName</key>
12- <string>PulseCanvas Studio</string>
12+ <string>Pulse Canvas</string>
1313 <key>CFBundleDisplayName</key>
14- <string>PulseCanvas Studio</string>
14+ <string>Pulse Canvas</string>
1515 <key>CFBundleIconFile</key>
1616 <string>AppIcon</string>
1717 <key>CFBundlePackageType</key>
⋯
7272 <key>iCloud.com.protomota.pulsecanvas</key>
7373 <dict>
7474 <key>NSUbiquitousContainerName</key>
75- <string>PulseCanvas Studio</string>
75+ <string>Pulse Canvas</string>
7676 <key>NSUbiquitousContainerIsDocumentScopePublic</key>
7777 <false/>
7878 <key>NSUbiquitousContainerSupportedFolderLevels</key>

macOS/Release.xcconfig changed

33 // Proposed release values. Verify identifier availability before registration.
44 PRODUCT_BUNDLE_IDENTIFIER = com.protomota.pulsecanvas
55 #include "../Version.xcconfig"
6- CURRENT_PROJECT_VERSION = 44
6+ CURRENT_PROJECT_VERSION = 45
77 MACOSX_DEPLOYMENT_TARGET = 14.0
88 ARCHS = arm64
99 ONLY_ACTIVE_ARCH = NO

mobile/Assets.xcassets/AppIcon.appiconset/AppIcon.png changed

Not a text file.

mobile/Info.plist changed

55 <key>CFBundleDevelopmentRegion</key>
66 <string>en</string>
77 <key>CFBundleDisplayName</key>
8- <string>PulseCanvas</string>
8+ <string>Pulse Canvas</string>
99 <key>CFBundleDocumentTypes</key>
1010 <array>
1111 <dict>
1212 <key>CFBundleTypeName</key>
13- <string>PulseCanvas Studio project</string>
13+ <string>Pulse Canvas project</string>
1414 <key>LSHandlerRank</key>
1515 <string>Owner</string>
1616 <key>LSItemContentTypes</key>
⋯
7171 <string>public.json</string>
7272 </array>
7373 <key>UTTypeDescription</key>
74- <string>PulseCanvas Studio project</string>
74+ <string>Pulse Canvas project</string>
7575 <key>UTTypeIdentifier</key>
7676 <string>com.protomota.pulsecanvas.project</string>
7777 <key>UTTypeTagSpecification</key>
⋯
8888 <key>iCloud.com.protomota.pulsecanvas</key>
8989 <dict>
9090 <key>NSUbiquitousContainerName</key>
91- <string>PulseCanvas Studio</string>
91+ <string>Pulse Canvas</string>
9292 <key>NSUbiquitousContainerIsDocumentScopePublic</key>
9393 <false/>
9494 <key>NSUbiquitousContainerSupportedFolderLevels</key>

mobile/MobileExport.swift changed

2727 Text(saved ? String(localized: "Video saved") : hasCurrentResult ? String(localized: "Your video is ready") : exporter.status).font(.headline)
2828 if let estimate = exporter.estimatedSecondsRemaining { Text("About \(MobileTransport.time(estimate)) remaining").foregroundStyle(.secondary) }
2929 }
30- if let error { Text(error).foregroundStyle(.red) }
31- if exporter.didFail { Text(exporter.status).foregroundStyle(.red) }
30+ if let error { Text(error).foregroundStyle(.white) }
31+ if exporter.didFail { Text(exporter.status).foregroundStyle(.white) }
3232 }.padding(24)
3333 }.safeAreaInset(edge: .bottom, spacing: 0) {
3434 VStack(spacing: 10) {
⋯
107107 var body: some View {
108108 List {
109109 Section {
110- Text("PulseCanvas Studio").font(.title2.bold())
110+ Text("Pulse Canvas").font(.title2.bold())
111111 Text("Music into moving visuals. Free to use, with no account or subscription.")
112112 }
113113 Section("Onboarding") {
114- Button("Welcome to PulseCanvas Studio", systemImage: "sparkles") {
114+ Button("Welcome to Pulse Canvas", systemImage: "sparkles") {
115115 NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil)
116116 }.accessibilityIdentifier("settingsWelcomePulseCanvas")
117117 }
⋯
128128 }
129129 Section("Legal & Credits") {
130130 Text("First-party source is open source and public domain (Unlicense). Third-party assets keep their separate terms. Native Metal effects only; no projectM engine or external preset pack is included.")
131- Link("Source code on GitHub", destination: URL(string: "https://github.com/projectatomai/pulsecanvas")!)
131+ Link("Source code", destination: URL(string: "https://branchwell.ai/pulsecanvas/app")!)
132132 Link("Privacy policy", destination: URL(string: "https://pulsecanvas.ai/privacy/")!)
133133 if let url = Bundle.main.url(forResource: "PulseCanvas-LICENSE", withExtension: "txt", subdirectory: "Legal"), let license = try? String(contentsOf: url, encoding: .utf8) {
134134 DisclosureGroup("Application license") { Text(license).font(.caption).textSelection(.enabled) }

mobile/MobilePlaybackSession.swift changed

103103 }
104104 MPNowPlayingInfoCenter.default().nowPlayingInfo = [
105105 MPMediaItemPropertyTitle: radio.isActive ? radio.currentTrack?.title ?? "PulseCanvas Radio" : audio.title,
106- MPMediaItemPropertyAlbumTitle: "PulseCanvas Studio",
106+ MPMediaItemPropertyAlbumTitle: "Pulse Canvas",
107107 MPMediaItemPropertyPlaybackDuration: audio.duration,
108108 MPNowPlayingInfoPropertyElapsedPlaybackTime: audio.playbackSeconds,
109109 MPNowPlayingInfoPropertyPlaybackRate: audio.isPlaying ? 1.0 : 0.0,

mobile/MobileWorkspace.swift changed

88 }
99
1010 enum MobileTheme {
11- static let background = Color(red: 0.12, green: 0.10, blue: 0.14)
12- static let panel = Color(red: 0.19, green: 0.16, blue: 0.21)
13- static let accent = Color(red: 0.95, green: 0.68, blue: 0.55)
11+ static let background = Color(white: 0.11)
12+ static let panel = Color(white: 0.17)
13+ static let accent = Color.white
1414 }
1515
1616 struct MobileButton: ButtonStyle {
⋯
120120 } catch { editor.message = error.localizedDescription }
121121 }
122122 .fileExporter(isPresented: $savingProject, document: projectDocument, contentType: .pulseCanvasProject,
123- defaultFilename: "PulseCanvas Studio.pulsecanvas") { result in
123+ defaultFilename: "Pulse Canvas.pulsecanvas") { result in
124124 if case .failure(let error) = result { editor.message = error.localizedDescription }
125125 if case .success(let url) = result {
126126 do { try UserBackup.rememberProject(projectDocument.data, name: url.path) }
127127 catch { editor.message = String(localized: "Project saved, but its backup copy wasn't updated: \(error.localizedDescription)") }
128128 }
129129 }
130- .alert("PulseCanvas Studio", isPresented: Binding(get: { editor.message != nil }, set: { if !$0 { editor.message = nil } })) {
130+ .alert("Pulse Canvas", isPresented: Binding(get: { editor.message != nil }, set: { if !$0 { editor.message = nil } })) {
131131 Button("OK") { editor.message = nil }
132132 } message: { Text(editor.message ?? "") }
133133 .confirmationDialog("Randomize this timeline?", isPresented: $randomizePrompt, titleVisibility: .visible) {
⋯
290290 ProgressView("Preparing your soundtrack…").font(.callout)
291291 .accessibilityIdentifier("mobileSoundtrackPreparing")
292292 }
293- if let error = render.errorMessage { Text(error).foregroundStyle(.red).accessibilityIdentifier("mobileRenderError") }
293+ if let error = render.errorMessage { Text(error).foregroundStyle(.white).accessibilityIdentifier("mobileRenderError") }
294294 }
295295 }
296296 }
⋯
435435 Button("Reset") { editor.studio.reset(render) }
436436 Button { editor.studio.randomize(render) } label: { Image(systemName: "dice.fill").font(.title2) }.accessibilityLabel("Randomize visual style")
437437 }.buttonStyle(MobileButton())
438- Picker("Palette", selection: $render.palette) { ForEach(VisualPalette.allCases, id: \.rawValue) { Text($0.title).tag($0.rawValue) } }
438+ Picker("Tone", selection: $render.palette) { ForEach(VisualPalette.allCases, id: \.rawValue) { Text($0.title).tag($0.rawValue) } }
439439 .pickerStyle(.menu).accessibilityIdentifier("mobilePalettePicker")
440440 LazyVGrid(columns: [GridItem(.adaptive(minimum: 230), spacing: 24)], spacing: 24) {
441441 control("Chaos", value: $render.chaos, range: 0...1)

mobile/Release.xcconfig changed

22 PRODUCT_NAME = PulseCanvas Mobile
33 DEVELOPMENT_TEAM = 22HV69L32T
44 #include "../Version.xcconfig"
5- CURRENT_PROJECT_VERSION = 27
5+ CURRENT_PROJECT_VERSION = 28
66 IPHONEOS_DEPLOYMENT_TARGET = 18.0
77 SUPPORTED_PLATFORMS = iphoneos iphonesimulator
88 TARGETED_DEVICE_FAMILY = 1,2

scripts/NativeExpansionSmoke.swift changed

125125 for time in [12.3, 47.1, 96.4] {
126126 let bytes = try render(renderer, analyzer, at: time)
127127 var cells = Set<Int>(), lit = 0
128- for i in Swift.stride(from: 0, to: bytes.count, by: 4) where max(bytes[i], max(bytes[i+1], bytes[i+2])) > 20 {
128+ for i in Swift.stride(from: 0, to: bytes.count, by: 4) {
129+ if bytes[i] != bytes[i + 1] || bytes[i] != bytes[i + 2] {
130+ throw ExportError("Color leaked into \(names[scene]) \(tag) at \(time)s")
131+ }
132+ guard bytes[i] > 20 else { continue }
129133 lit += 1
130134 cells.insert(((i/4) / width * 4 / height) * 4 + (i/4) % width * 4 / width)
131135 }

scripts/prepare-store-resources.sh changed

2727 import json
2828 from pathlib import Path
2929 count = json.loads(Path('.build/store-resources/Resources/NativeVisualizers.json').read_text())['activeCount']
30- Path('.build/store-resources/Legal/Edition.txt').write_text(f'PulseCanvas Studio — Metal edition\n{count} native Metal visualizers. No projectM engine, OpenGL presets, community texture pack or Sparkle updater is included in this App Store build.\n')
30+ Path('.build/store-resources/Legal/Edition.txt').write_text(f'Pulse Canvas\n{count} built-in visualizers.\n')
3131 PY

visionOS/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/icon.png changed

Not a text file.

visionOS/Info.plist changed

1717 <key>CFBundleName</key>
1818 <string>PulseCanvas Vision</string>
1919 <key>CFBundleDisplayName</key>
20- <string>PulseCanvas Studio</string>
20+ <string>Pulse Canvas</string>
2121 <key>CFBundlePackageType</key>
2222 <string>APPL</string>
2323 <key>CFBundleShortVersionString</key>
⋯
5454 <key>UTTypeIdentifier</key>
5555 <string>com.protomota.pulsecanvas.project</string>
5656 <key>UTTypeDescription</key>
57- <string>PulseCanvas Studio project</string>
57+ <string>Pulse Canvas project</string>
5858 <key>UTTypeConformsTo</key>
5959 <array>
6060 <string>public.json</string>
⋯
7474 <array>
7575 <dict>
7676 <key>CFBundleTypeName</key>
77- <string>PulseCanvas Studio project</string>
77+ <string>Pulse Canvas project</string>
7878 <key>LSItemContentTypes</key>
7979 <array>
8080 <string>com.protomota.pulsecanvas.vision-project</string>
⋯
8989 <key>iCloud.com.protomota.pulsecanvas</key>
9090 <dict>
9191 <key>NSUbiquitousContainerName</key>
92- <string>PulseCanvas Studio</string>
92+ <string>Pulse Canvas</string>
9393 <key>NSUbiquitousContainerIsDocumentScopePublic</key>
9494 <false/>
9595 <key>NSUbiquitousContainerSupportedFolderLevels</key>

visionOS/PulseCanvasVisionApp.swift changed

1010 session.editor.reloadCloudLooks(); session.radio.reloadCloudFavorites()
1111 }
1212 .modifier(PulseCanvasOnboardingPresentation(onReplay: { session.suspend() }))
13- .tint(Color(red: 0.95, green: 0.68, blue: 0.55))
13+ .tint(Color.white)
1414 }.defaultSize(width: 1400, height: 950)
1515 ImmersiveSpace(id: "visualizer-stage") {
1616 VisionImmersiveView(studio: session.activeStudio, session: session)

visionOS/Release.xcconfig changed

22 PRODUCT_NAME = PulseCanvas Vision
33 DEVELOPMENT_TEAM = 22HV69L32T
44 #include "../Version.xcconfig"
5- CURRENT_PROJECT_VERSION = 30
5+ CURRENT_PROJECT_VERSION = 31
66 XROS_DEPLOYMENT_TARGET = 2.0
77 SUPPORTED_PLATFORMS = xros xrsimulator
88 TARGETED_DEVICE_FAMILY = 7

visionOS/VisionImmersiveView.swift changed

162162 let returnToStudio: () -> Void
163163 var body: some View {
164164 VStack(spacing: 10) {
165- if let message = studio.message { Text(message).font(.callout).foregroundStyle(.orange) }
165+ if let message = studio.message { Text(message).font(.callout).foregroundStyle(.white) }
166166 HStack(alignment: .center, spacing: 12) {
167167 VisionImmersivePlayback(studio: studio, transport: studio.transport, session: session)
168168 if session.radioMode {

visionOS/VisionInfoView.swift changed

1111 var body: some View {
1212 VStack(alignment: .leading, spacing: 24) {
1313 HStack {
14- Label("PulseCanvas Studio", systemImage: "waveform").font(.title2.bold())
14+ Label("Pulse Canvas", systemImage: "waveform").font(.title2.bold())
1515 Spacer()
1616 Button("Done", action: close).accessibilityIdentifier("closeVisionInfoButton")
1717 }
⋯
5050
5151 private var onboarding: some View {
5252 VStack(alignment: .leading, spacing: 12) {
53- Button("Welcome to PulseCanvas Studio", systemImage: "sparkles") {
53+ Button("Welcome to Pulse Canvas", systemImage: "sparkles") {
5454 replayOnboarding()
5555 }.accessibilityIdentifier("settingsWelcomePulseCanvas")
5656 Text("See the onboarding again, from the beginning.").font(.callout).foregroundStyle(.secondary)
⋯
5959
6060 private var legal: some View {
6161 VStack(alignment: .leading, spacing: 20) {
62- Link("Source code on GitHub", destination: URL(string: "https://github.com/projectatomai/pulsecanvas")!)
62+ Link("Source code", destination: URL(string: "https://branchwell.ai/pulsecanvas/app")!)
6363 Text(Bundle.main.url(forResource: "PulseCanvas-LICENSE", withExtension: "txt", subdirectory: "Legal")
6464 .flatMap { try? String(contentsOf: $0, encoding: .utf8) } ?? "License unavailable")
6565 .font(.body).textSelection(.enabled)

visionOS/VisionStudioView.swift changed

2020 @State private var showLibrary = false
2121 @State private var showStyle = false
2222 @State private var legal = false
23- @State private var replayOnboardingAfterSupport = false
23+ @State private var replayOnboardingAfterInfo = false
2424 @State private var launchApplied = false
2525
2626 var body: some View {
⋯
6969 .frame(width: 680, height: 640)
7070 }
7171 .sheet(isPresented: $legal, onDismiss: {
72- guard replayOnboardingAfterSupport else { return }
73- replayOnboardingAfterSupport = false
74- // Finish removing the support sheet before replacing its root view.
72+ guard replayOnboardingAfterInfo else { return }
73+ replayOnboardingAfterInfo = false
74+ // Finish removing the information sheet before replacing its root view.
7575 NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil)
7676 }) {
7777 VisionInfoView(session: session, close: { legal = false }, replayOnboarding: {
78- replayOnboardingAfterSupport = true
78+ replayOnboardingAfterInfo = true
7979 legal = false
8080 })
8181 }
⋯
105105 }
106106 }
107107 .fileExporter(isPresented: $exportProject, document: VisionProjectDocument(data: projectData),
108- contentType: .pulseCanvas, defaultFilename: "PulseCanvas Studio") { result in
108+ contentType: .pulseCanvas, defaultFilename: "Pulse Canvas") { result in
109109 if case .failure(let error) = result { studio.message = error.localizedDescription }
110110 if case .success(let url) = result {
111111 do { try UserBackup.rememberProject(projectData, name: url.path) }
112112 catch { studio.message = String(localized: "Project saved, but its backup copy wasn't updated: \(error.localizedDescription)") }
113113 }
114114 }
115- .alert("PulseCanvas Studio", isPresented: Binding(get: { studio.message != nil }, set: { if !$0 { studio.message = nil } })) {
115+ .alert("Pulse Canvas", isPresented: Binding(get: { studio.message != nil }, set: { if !$0 { studio.message = nil } })) {
116116 Button("OK") { studio.message = nil }
117117 } message: { Text(studio.message ?? "") }
118118 }
⋯
153153 Toggle("Hide room", isOn: $session.fullImmersion).labelsHidden()
154154 .toggleStyle(.switch).disabled(session.immersiveActive)
155155 .accessibilityIdentifier("hideRoomToggle")
156- .tint(Color(red: 0.95, green: 0.68, blue: 0.55))
156+ .tint(Color.white)
157157 }.fixedSize()
158158 immersiveButton
159159 }.labelStyle(.iconOnly).buttonStyle(.borderless).tint(.white)
⋯
481481 .frame(width: 44, height: 52).contentShape(Rectangle())
482482 }.buttonStyle(.plain).hoverEffect(.highlight)
483483 .accessibilityLabel(library.isFavorite(scene) ? "Unfavorite \(NativeEffects.names[scene])" : "Favorite \(NativeEffects.names[scene])")
484- }.background(scene == studio.selectedScene ? Color.orange.opacity(0.18) : Color.white.opacity(0.04),
484+ }.background(scene == studio.selectedScene ? Color.white.opacity(0.18) : Color.white.opacity(0.04),
485485 in: RoundedRectangle(cornerRadius: 12))
486486 }
487487 if scenes.isEmpty {
⋯
574574 var body: some View {
575575 VStack(spacing: 14) {
576576 HStack {
577- Picker("Palette", selection: Binding(get: { look.palette }, set: { value in studio.updateLook(for: clipID) { $0.palette = value } })) {
577+ Picker("Tone", selection: Binding(get: { look.palette }, set: { value in studio.updateLook(for: clipID) { $0.palette = value } })) {
578578 ForEach(VisualPalette.allCases, id: \.rawValue) { Text($0.title).tag($0.rawValue) }
579579 }
580580 Button("Reset") { studio.resetLook(for: clipID) }
⋯
696696 }.padding(20).background(.white.opacity(0.05), in: RoundedRectangle(cornerRadius: 18))
697697 Text(visualizers ? "Fresh looks replace visual settings; saved favorites keep their look. Your soundtrack stays." : "Visualizer order, soundtrack and saved styles stay unchanged.")
698698 .font(.callout).foregroundStyle(.secondary)
699- if let error { Text(error).font(.callout).foregroundStyle(.orange) }
699+ if let error { Text(error).font(.callout).foregroundStyle(.white) }
700700 HStack {
701701 Button("Cancel", role: .cancel, action: close)
702702 Spacer()
⋯
810810 value: Binding(get: { clip.bars }, set: { studio.bars($0, clip: clip.id) }), in: 1...64)
811811 .accessibilityLabel("Bars for \(NativeEffects.names[clip.scene])")
812812 }.padding(16).frame(width: 300)
813- .background(studio.selected == clip.id ? Color.orange.opacity(0.2) : Color.white.opacity(0.06),
813+ .background(studio.selected == clip.id ? Color.white.opacity(0.2) : Color.white.opacity(0.06),
814814 in: RoundedRectangle(cornerRadius: 20))
815815 }
816816 }
⋯
861861 }.buttonStyle(.plain).hoverEffect(.highlight)
862862 .accessibilityLabel(library.isFavorite(scene) ? "Unfavorite \(NativeEffects.names[scene])" : "Favorite \(NativeEffects.names[scene])")
863863 }.padding(.horizontal, 10)
864- .background(scene == clip.scene ? Color.orange.opacity(0.15) : Color.white.opacity(0.04),
864+ .background(scene == clip.scene ? Color.white.opacity(0.15) : Color.white.opacity(0.04),
865865 in: RoundedRectangle(cornerRadius: 12))
866866 }
867867 if scenes.isEmpty { Text("No matching visualizers").foregroundStyle(.secondary).padding(24) }

visionOS/VisionVideoExportView.swift changed

3838 .foregroundStyle(.secondary).monospacedDigit()
3939 }
4040 }
41- if let saveError { Text(saveError).foregroundStyle(.red) }
41+ if let saveError { Text(saveError).foregroundStyle(.white) }
4242 if !exporter.isExporting && exporter.exportedURL == nil && exporter.didFail {
43- Text(exporter.status).foregroundStyle(.red)
43+ Text(exporter.status).foregroundStyle(.white)
4444 }
4545 HStack {
4646 Button(exporter.isExporting ? "Cancel export" : "Done") {

Browse files at this commit