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
| 5 | 5 | struct ExportOverlayView: View { |
| 6 | 6 | @ObservedObject var exporter: SocialExportController |
| 7 | 7 | @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 | |
| 9 | 9 | |
| 10 | 10 | var body: some View { |
| 11 | 11 | ZStack { |
| ⋯ | ||
| 42 | 42 | }.padding(.horizontal, 60).padding(.vertical, 32) |
| 43 | 43 | } else if showSuccess, let url = exporter.exportedURL { |
| 44 | 44 | 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) | |
| 46 | 46 | Text("Video saved").font(.system(size: 20, weight: .semibold, design: .rounded)) |
| 47 | 47 | Text(url.lastPathComponent).font(.system(size: 12)).foregroundStyle(.secondary).lineLimit(2) |
| 48 | 48 | Button { NSWorkspace.shared.activateFileViewerSelecting([url]) } label: { |
| 49 | 49 | Label("Show in Finder", systemImage: "folder") |
| 50 | 50 | }.buttonStyle(StudioButtonStyle(treatment: .primary, compact: true)) |
| 51 | 51 | }.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)) | |
| 53 | 53 | .overlay(RoundedRectangle(cornerRadius: 18).strokeBorder(.white.opacity(0.15))) |
| 54 | 54 | .overlay(alignment: .topTrailing) { |
| 55 | 55 | Button { withAnimation { showSuccess = false } } label: { |
Sources/PulseCanvas/PulseCanvasAgentAccess.swift changed
| 34 | 34 | |
| 35 | 35 | func host(_ service: PulseMCPService) { |
| 36 | 36 | 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] } | |
| 38 | 38 | if name == "get_app_status" || enabled { lastConnection = Date() } |
| 39 | 39 | return await service.call(name, arguments) |
| 40 | 40 | } |
| ⋯ | ||
| 118 | 118 | } |
| 119 | 119 | return AuthorizedPath(url: writing ? candidate : resolved, scope: grant) |
| 120 | 120 | } |
| 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.") | |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | static var command: String { |
| ⋯ | ||
| 273 | 273 | return response?["enabled"] as? Bool == true |
| 274 | 274 | }.value |
| 275 | 275 | 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." | |
| 277 | 277 | } |
| 278 | 278 | } |
| 279 | 279 | } |
Sources/PulseCanvas/PulseCanvasApp.swift changed
| 18 | 18 | Text("Application").font(.headline) |
| 19 | 19 | Text("PulseCanvas first-party code is open source and public domain (Unlicense). Third-party components and assets have separate terms.") |
| 20 | 20 | #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") | |
| 23 | 22 | #else |
| 24 | 23 | Text("projectM engine").font(.headline) |
| 25 | 24 | Text("projectM 4.2.0 is included under LGPL 2.1 or later. Engine source and rebuild instructions accompany the matching source package.") |
| ⋯ | ||
| 72 | 71 | @StateObject private var updater = AppUpdater() |
| 73 | 72 | #endif |
| 74 | 73 | var body: some Scene { |
| 75 | - WindowGroup("PulseCanvas Studio") { | |
| 74 | + WindowGroup("Pulse Canvas") { | |
| 76 | 75 | CreatorView(render: render, audio: audio, radio: radio, studio: studio, exporter: exporter, presentation: presentation, lifecycle: lifecycle) |
| 77 | 76 | .preferredColorScheme(.dark) |
| 78 | 77 | .modifier(PulseCanvasOnboardingPresentation(onReplay: { audio.pause() })) |
| ⋯ | ||
| 122 | 121 | #endif |
| 123 | 122 | .commands { |
| 124 | 123 | CommandGroup(after: .appInfo) { |
| 125 | - Button("Welcome to PulseCanvas Studio") { | |
| 124 | + Button("Welcome to Pulse Canvas") { | |
| 126 | 125 | audio.pause() |
| 127 | 126 | NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil) |
| 128 | 127 | } |
| ⋯ | ||
| 156 | 155 | PulseMCPSettings(access: agentAccess) |
| 157 | 156 | #endif |
| 158 | 157 | Section("Onboarding") { |
| 159 | - Button("Welcome to PulseCanvas Studio", systemImage: "sparkles") { | |
| 158 | + Button("Welcome to Pulse Canvas", systemImage: "sparkles") { | |
| 160 | 159 | NSApp.keyWindow?.close() |
| 161 | 160 | audio.pause() |
| 162 | 161 | NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil) |
| ⋯ | ||
| 174 | 173 | #if DIRECT_BUILD && canImport(Sparkle) && !LOCAL_BUILD |
| 175 | 174 | Section("Updates") { |
| 176 | 175 | 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) | |
| 178 | 177 | Button("Check for Updates…") { updater.checkForUpdates() }.disabled(!updater.canCheck) |
| 179 | 178 | } |
| 180 | 179 | #endif |
| ⋯ | ||
| 191 | 190 | }, prepare: { radio.leave(); audio.pause() }, openProject: { data in |
| 192 | 191 | NotificationCenter.default.post(name: .pulseCanvasOpenBackupProject, object: data) |
| 193 | 192 | }) |
| 194 | - .padding(24).tint(Color(red: 0.95, green: 0.68, blue: 0.55)).controlSize(.large) | |
| 193 | + .padding(24).tint(Color.white).controlSize(.large) | |
| 195 | 194 | .disabled(exporter.isExporting) |
| 196 | 195 | }.frame(minWidth: 540, minHeight: 480).preferredColorScheme(.dark) |
| 197 | 196 | }.defaultSize(width: 620, height: 580) |
| ⋯ | ||
| 225 | 224 | @State private var showProjectSettings = false |
| 226 | 225 | @State private var showRadio = false |
| 227 | 226 | @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) | |
| 231 | 230 | |
| 232 | 231 | var body: some View { |
| 233 | 232 | ZStack { |
| ⋯ | ||
| 299 | 298 | HStack { |
| 300 | 299 | Text(message.isEmpty ? (radio.isActive ? radio.status : audio.status) : message).lineLimit(1) |
| 301 | 300 | 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) } | |
| 303 | 302 | Text(presetLibrary.pool.enabled ? "\(presetLibrary.eligibleScenes.count) of \(presetLibrary.availableScenes.count) visualizers" : "\(presetLibrary.availableScenes.count) visualizers").foregroundStyle(.secondary) |
| 304 | 303 | }.font(.system(size: 11)).padding(.horizontal, 20).padding(.vertical, 9) |
| 305 | 304 | } |
| ⋯ | ||
| 328 | 327 | .sheet(isPresented: $showHelp) { |
| 329 | 328 | VStack(alignment: .leading, spacing: 18) { |
| 330 | 329 | Text("Create a music visual").font(.title2) |
| 331 | - Button("Welcome to PulseCanvas Studio") { | |
| 330 | + Button("Welcome to Pulse Canvas") { | |
| 332 | 331 | showHelp = false; audio.pause() |
| 333 | 332 | NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil) |
| 334 | 333 | }.buttonStyle(StudioButtonStyle()) |
| ⋯ | ||
| 469 | 468 | let dimensions = exporter.aspect.dimensions(resolution: exporter.resolution) |
| 470 | 469 | Text("\(dimensions.width) × \(dimensions.height) / \(exporter.fps) fps").monospacedDigit().foregroundStyle(.secondary) |
| 471 | 470 | }.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) } | |
| 473 | 472 | } |
| 474 | 473 | } |
| 475 | 474 | |
| ⋯ | ||
| 496 | 495 | HStack(spacing: 0) { |
| 497 | 496 | ForEach(0..<palette.stops.count, id: \.self) { index in |
| 498 | 497 | 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))) | |
| 500 | 499 | } |
| 501 | 500 | }.frame(width: 70, height: 18).clipShape(RoundedRectangle(cornerRadius: 4)) |
| 502 | 501 | Text(palette.title).font(.system(size: 12)) |
| ⋯ | ||
| 509 | 508 | } |
| 510 | 509 | } |
| 511 | 510 | } 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.") | |
| 513 | 512 | .font(.system(size: 12)).foregroundStyle(.secondary) |
| 514 | 513 | } |
| 515 | 514 | Divider() |
| ⋯ | ||
| 725 | 724 | let band = bands.indices.contains(index) && bands[index].isFinite ? CGFloat(bands[index]) : 0 |
| 726 | 725 | let height = max(2, size.size.height * min(1, max(0, band))) |
| 727 | 726 | 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)) | |
| 729 | 728 | .frame(width: 3, height: height) |
| 730 | 729 | .animation(.linear(duration: 0.065), value: height) |
| 731 | 730 | } |
| ⋯ | ||
| 743 | 742 | let chooseMusic: () -> Void |
| 744 | 743 | var compactness: CGFloat = 0 |
| 745 | 744 | @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 | |
| 747 | 746 | var body: some View { |
| 748 | 747 | let _ = playbackRevision |
| 749 | 748 | VStack(alignment: .leading, spacing: 14 - 6 * compactness) { |
Sources/PulseCanvas/PulseCanvasMCP.swift changed
| 238 | 238 | initialized = true |
| 239 | 239 | respond(["protocolVersion": versions.contains(version) ? version : versions[0], |
| 240 | 240 | "capabilities": ["tools": ["listChanged": false]], |
| 241 | - "serverInfo": ["name": "pulsecanvas", "title": "PulseCanvas Studio", | |
| 241 | + "serverInfo": ["name": "pulsecanvas", "title": "Pulse Canvas", | |
| 242 | 242 | "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."]) | |
| 244 | 244 | case "ping": respond([:]) |
| 245 | 245 | case "tools/list" where initialized: respond(["tools": tools.map(\.schema)]) |
| 246 | 246 | case "tools/call" where initialized: |
| ⋯ | ||
| 280 | 280 | static var configuredRoot: URL { |
| 281 | 281 | UserDataStorage.defaultSupport.appendingPathComponent("AgentConnection", isDirectory: true) |
| 282 | 282 | } |
| 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.") | |
| 284 | 284 | private static let lifetime: TimeInterval = 180 |
| 285 | 285 | |
| 286 | 286 | static func root() throws -> URL { |
Sources/PulseCanvas/PulseCanvasMCPService.swift changed
| 42 | 42 | "pendingExports": access.enabled ? jobs.pendingCount : 0]] |
| 43 | 43 | } |
| 44 | 44 | 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.") | |
| 46 | 46 | } |
| 47 | 47 | if let permission = tool.permission { try require(permission) } |
| 48 | 48 | return ["value": try await execute(name, args)] |
| ⋯ | ||
| 169 | 169 | |
| 170 | 170 | private func require(_ permission: String) throws { |
| 171 | 171 | 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.") | |
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 |
Sources/PulseCanvas/PulseCanvasOnboarding.swift changed
| 1 | 1 | import SwiftUI |
| 2 | - import StoreKit | |
| 3 | 2 | #if os(macOS) |
| 4 | 3 | import AppKit |
| 5 | 4 | #else |
| ⋯ | ||
| 111 | 110 | @ScaledMetric(relativeTo: .headline) private var tabletLessonTitleSize = 23 |
| 112 | 111 | @ScaledMetric(relativeTo: .subheadline) private var tabletDetailSize = 20 |
| 113 | 112 | @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) | |
| 116 | 115 | private let ink = Color.white |
| 117 | 116 | private var names: [String] { |
| 118 | 117 | [String(localized: "Welcome"), String(localized: "Visualizers"), String(localized: "Studio"), |
| ⋯ | ||
| 140 | 139 | } |
| 141 | 140 | private func subtitle(for step: Int) -> String { |
| 142 | 141 | 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.") | |
| 144 | 143 | case 1: return String(localized: "Explore the visualizer library, save your favorites, and shape the colors and motion to suit your music.") |
| 145 | 144 | case 2: |
| 146 | 145 | return String(localized: "Choose music or import a soundtrack. Studio finds the beat so your scenes can change with the song.") |
| ⋯ | ||
| 501 | 500 | configuration.label |
| 502 | 501 | .font(fontSize.map { .system(size: $0, weight: .semibold) } ?? (compact ? .subheadline.weight(.medium) : .headline)) |
| 503 | 502 | .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()) | |
| 506 | 505 | .overlay(Capsule().strokeBorder(.white.opacity(primary ? 0 : 0.12), lineWidth: 1)) |
| 507 | 506 | .opacity(enabled ? (configuration.isPressed ? 0.8 : 1) : 0.4) |
| 508 | 507 | } |
Sources/PulseCanvas/RadioView.swift changed
| 38 | 38 | Divider() |
| 39 | 39 | if opening || radio.isCatalogLoading { |
| 40 | 40 | 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) | |
| 42 | 42 | Text("Loading Radio…").font(.headline) |
| 43 | 43 | Text("Getting stations and songs ready.").font(.callout).foregroundStyle(.secondary) |
| 44 | 44 | }.frame(maxWidth: .infinity, maxHeight: .infinity) |
| ⋯ | ||
| 163 | 163 | HStack(spacing: 0) { |
| 164 | 164 | Button { play(song) } label: { |
| 165 | 165 | HStack(spacing: 12) { |
| 166 | - Image(systemName: "play.circle.fill").font(.title2).foregroundStyle(.orange) | |
| 166 | + Image(systemName: "play.circle.fill").font(.title2).foregroundStyle(.white) | |
| 167 | 167 | VStack(alignment: .leading, spacing: 4) { |
| 168 | 168 | Text(song.track.title).font(.system(size: 13, weight: .medium)).lineLimit(1) |
| 169 | 169 | Text(song.track.genre).font(.caption).foregroundStyle(.secondary).lineLimit(1) |
| ⋯ | ||
| 172 | 172 | }.padding(12).frame(maxWidth: .infinity, minHeight: 56).contentShape(Rectangle()) |
| 173 | 173 | }.buttonStyle(.plain).accessibilityLabel("Play \(song.track.title) in Radio") |
| 174 | 174 | Button { radio.toggleFavoriteSong(song.track) } label: { |
| 175 | - Image(systemName: "heart.fill").foregroundStyle(.orange) | |
| 175 | + Image(systemName: "heart.fill").foregroundStyle(.white) | |
| 176 | 176 | .frame(width: 44, height: 56).contentShape(Rectangle()) |
| 177 | 177 | }.buttonStyle(.plain).accessibilityLabel("Unfavorite song \(song.track.title)") |
| 178 | 178 | }.background(.white.opacity(0.04), in: RoundedRectangle(cornerRadius: 10)) |
Sources/PulseCanvas/Resources/Canvas.metal changed
| 1 | 1 | #include <metal_stdlib> |
| 2 | 2 | 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)); } | |
| 3 | 6 | struct CanvasMeshInput { |
| 4 | 7 | float3 position; |
| 5 | 8 | float4 color; |
| ⋯ | ||
| 31 | 34 | float specular = pow(abs(dot(normal, normalize(float3(-0.15,0.25,0.96)))), 18); |
| 32 | 35 | float depth = clamp(1.2 - length(input.surface) / 100, 0.4, 1.0); |
| 33 | 36 | 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); | |
| 35 | 38 | } |
| 36 | 39 | |
| 37 | 40 | struct CanvasInput { float3 position [[attribute(0)]]; float4 color [[attribute(1)]]; float2 uv [[attribute(2)]]; }; |
| ⋯ | ||
| 55 | 58 | float shine = pow(max(0.0, dot(normal, normalize(float3(-0.25, 0.3, 0.92)))), 24); |
| 56 | 59 | float rim = pow(1 - normal.z, 2); |
| 57 | 60 | 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))); | |
| 59 | 62 | } |
Sources/PulseCanvas/Resources/NativeCommon.metal changed
| 1 | 1 | #include <metal_stdlib> |
| 2 | 2 | using namespace metal; |
| 3 | 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)); } | |
| 6 | + | |
| 4 | 7 | // PulseCanvas native effect prelude. Original procedural code: no external images, |
| 5 | 8 | // preset equations or third-party shader sources. Classic mathematical forms are |
| 6 | 9 | // implemented from their definitions. This file is prepended to every Native*.metal |
| ⋯ | ||
| 235 | 238 | color = 1 - exp(-color * 1.55); |
| 236 | 239 | // Static ordered dither keeps smooth gradients from banding in 8-bit video. |
| 237 | 240 | float dither = (hash21(floor(position)) - .5) / 255; |
| 238 | - return float4(saturate(color + dither), 1); | |
| 241 | + return float4(float3(monochromeIntensity(saturate(color + dither))), 1); | |
| 239 | 242 | } |
| 240 | 243 | |
| 241 | 244 | // Each effect is `float3 name(Ctx c, constant NativeFrame &f)`; this emits its fragment. |
Sources/PulseCanvas/Resources/NativeExpansionAtmospheric.metal changed
| 597 | 597 | return displayColor(color * falloff, pixel); |
| 598 | 598 | } |
| 599 | 599 | |
| 600 | + // Palette-free intensity for the standalone study renderer. | |
| 600 | 601 | #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) | |
| 601 | 605 | struct PreviewFrame { float phase; float beat; }; |
| 602 | 606 | static float2 screenPoint(uint2 pixel, uint2 size) { |
| 603 | 607 | float2 p = (float2(pixel) + 0.5f - 0.5f * float2(size)) * (2.0f / float(min(size.x, size.y))); |
| ⋯ | ||
| 610 | 614 | uint2 size = uint2(output.get_width(), output.get_height()); \ |
| 611 | 615 | if (any(pixel >= size)) { return; } \ |
| 612 | 616 | 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); \ | |
| 614 | 619 | } |
| 615 | 620 | #else |
| 616 | 621 | static float4 styleAtmosphere(float4 color, constant NativeFrame& f) { |
| ⋯ | ||
| 622 | 627 | float3 tint = paint(value, f); |
| 623 | 628 | rgb = mix(rgb, tint * value / max(max(tint.r, tint.g), max(tint.b, 0.01f)), 0.68f); |
| 624 | 629 | } |
| 625 | - return float4(saturate(rgb * f.style.x), color.a); | |
| 630 | + return float4(float3(monochromeIntensity(saturate(rgb * f.style.x))), color.a); | |
| 626 | 631 | } |
| 627 | 632 | |
| 628 | 633 | #define STUDY_ENTRY(entry, color) \ |
Sources/PulseCanvas/Resources/NativeExpansionCommon.metal changed
| 1 | 1 | #include <metal_stdlib> |
| 2 | 2 | using namespace metal; |
| 3 | 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)); } | |
| 6 | + | |
| 4 | 7 | // PulseCanvas native effect prelude. Original procedural code: no external images, |
| 5 | 8 | // preset equations or third-party shader sources. Classic mathematical forms are |
| 6 | 9 | // implemented from their definitions. This file is prepended to every Native*.metal |
| ⋯ | ||
| 329 | 332 | color = 1 - exp(-color * 1.55); |
| 330 | 333 | // Static ordered dither keeps smooth gradients from banding in 8-bit video. |
| 331 | 334 | float dither = (hash21(floor(position)) - .5) / 255; |
| 332 | - return float4(saturate(color + dither), 1); | |
| 335 | + return float4(float3(monochromeIntensity(saturate(color + dither))), 1); | |
| 333 | 336 | } |
| 334 | 337 | |
| 335 | 338 | // 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
| 1 | 1 | #include <metal_stdlib> |
| 2 | 2 | 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)); } | |
| 3 | 6 | struct SpatialFrame { |
| 4 | 7 | float2 resolution; float time; int scene; |
| 5 | 8 | float4 rhythm; // pulse, beat drive, bass, treble |
| ⋯ | ||
| 281 | 284 | float2 uv=(input.position.xy/f.resolution-.5)*float2(2*f.resolution.x/f.resolution.y,-2); |
| 282 | 285 | uv=spin(uv,f.camera.x); |
| 283 | 286 | 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); | |
| 285 | 288 | float zoomSpeed=clamp(f.camera.w,0.f,3.f); |
| 286 | 289 | float3 ro=float3(sin(t*.23)*.3,cos(t*.19)*.3,t*1.9*zoomSpeed); |
| 287 | 290 | float3 rd=normalize(float3(uv,1.45*clamp(f.style.w,.5f,2.5f))); |
| ⋯ | ||
| 373 | 376 | color*=max(0.f,f.style.x); |
| 374 | 377 | // Tone-map each palette channel without introducing unrelated rainbow hues. |
| 375 | 378 | color=1-exp(-color*1.45); |
| 376 | - return float4(color,1); | |
| 379 | + return float4(float3(monochromeIntensity(color)), 1); | |
| 377 | 380 | } |
Sources/PulseCanvas/Resources/Strobe.metal changed
| 1 | 1 | #include <metal_stdlib> |
| 2 | 2 | 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)); } | |
| 3 | 6 | // Original fullscreen overlay, composed after all scene effects. |
| 4 | 7 | vertex float4 whiteFlashVertex(uint id [[vertex_id]]) { |
| 5 | 8 | const float2 p[3] = { float2(-1, -1), float2(3, -1), float2(-1, 3) }; |
| ⋯ | ||
| 54 | 57 | float c = cos(style.z), s = sin(style.z); |
| 55 | 58 | uv = float2(c*p.x-s*p.y, s*p.x+c*p.y) + .5; |
| 56 | 59 | 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); | |
| 58 | 61 | } |
Sources/PulseCanvas/StudioControls.swift changed
| 54 | 54 | @Environment(\.isEnabled) private var isEnabled |
| 55 | 55 | @Environment(\.isFocused) private var isFocused |
| 56 | 56 | @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 | |
| 58 | 58 | |
| 59 | 59 | func makeBody(configuration: Configuration) -> some View { |
| 60 | 60 | configuration.label |
| ⋯ | ||
| 62 | 62 | .padding(.horizontal, circular ? 0 : (compact ? 11 : 16)) |
| 63 | 63 | .frame(width: circular ? 44 : nil, height: circular ? 44 : nil) |
| 64 | 64 | .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)) | |
| 66 | 66 | .background(fill(pressed: configuration.isPressed), in: RoundedRectangle(cornerRadius: circular ? 22 : 11)) |
| 67 | 67 | .overlay(RoundedRectangle(cornerRadius: circular ? 22 : 11).strokeBorder(border, lineWidth: isFocused ? 2 : 1)) |
| 68 | 68 | .opacity(isEnabled ? 1 : 0.4) |
| ⋯ | ||
| 94 | 94 | var icon: String? = nil |
| 95 | 95 | @Environment(\.isEnabled) private var isEnabled |
| 96 | 96 | @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 | |
| 98 | 98 | |
| 99 | 99 | func makeBody(configuration: Configuration) -> some View { |
| 100 | 100 | Button { configuration.isOn.toggle() } label: { |
| ⋯ | ||
| 104 | 104 | ZStack(alignment: configuration.isOn ? .trailing : .leading) { |
| 105 | 105 | Capsule().fill(configuration.isOn ? peach : Color.white.opacity(0.15)) |
| 106 | 106 | 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)) | |
| 108 | 108 | .frame(width: 22, height: 22).padding(3) |
| 109 | 109 | }.frame(width: 48, height: 28) |
| 110 | 110 | }.padding(.horizontal, 10).frame(minHeight: 44) |
| ⋯ | ||
| 126 | 126 | @Environment(\.isEnabled) private var isEnabled |
| 127 | 127 | @Environment(\.isFocused) private var isFocused |
| 128 | 128 | @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 | |
| 130 | 130 | |
| 131 | 131 | func makeBody(configuration: Configuration) -> some View { |
| 132 | 132 | configuration.label |
Sources/PulseCanvas/StudioMusicPicker.swift changed
| 65 | 65 | Button { add(song) } label: { |
| 66 | 66 | HStack(spacing: 12) { |
| 67 | 67 | Image(systemName: favoriteIDs.contains(song.id) ? "heart.fill" : "music.note") |
| 68 | - .foregroundStyle(.orange).frame(width: 24) | |
| 68 | + .foregroundStyle(.white).frame(width: 24) | |
| 69 | 69 | VStack(alignment: .leading, spacing: 4) { |
| 70 | 70 | Text(song.title).font(.headline).lineLimit(1) |
| 71 | 71 | Text("\(song.genre) · \(duration(song.duration))").font(.caption).foregroundStyle(.secondary) |
| 72 | 72 | } |
| 73 | 73 | Spacer(minLength: 8) |
| 74 | 74 | 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) } | |
| 76 | 76 | }.padding(14).frame(maxWidth: .infinity, minHeight: 64, alignment: .leading) |
| 77 | 77 | .contentShape(RoundedRectangle(cornerRadius: 12)) |
| 78 | 78 | }.buttonStyle(.plain).background(.white.opacity(0.06), in: RoundedRectangle(cornerRadius: 12)) |
| ⋯ | ||
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | 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") } | |
| 86 | 86 | }.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) | |
| 88 | 88 | .task { await catalog.load() } |
| 89 | 89 | .onDisappear { addition?.cancel() } |
| 90 | 90 | .interactiveDismissDisabled(adding != nil) |
Sources/PulseCanvas/StudioTimelineView.swift changed
| 31 | 31 | private enum StrobeAction: String, CaseIterable { |
| 32 | 32 | case keep = "Keep individual", add = "Apply all", remove = "Remove all" |
| 33 | 33 | } |
| 34 | - private let accent = Color(red: 0.95, green: 0.68, blue: 0.55) | |
| 34 | + private let accent = Color.white | |
| 35 | 35 | |
| 36 | 36 | var body: some View { |
| 37 | 37 | VStack(alignment: .leading, spacing: 10 - 4 * compactness) { |
| ⋯ | ||
| 168 | 168 | .disabled(exporting || studio.segments.isEmpty || (!randomizeVisualizers && !randomizeBarLengths)) |
| 169 | 169 | } |
| 170 | 170 | }.padding(28).frame(width: 490) |
| 171 | - .background(Color(red: 0.115, green: 0.095, blue: 0.14)) | |
| 171 | + .background(Color(white: 0.10)) | |
| 172 | 172 | .tint(accent) |
| 173 | 173 | .onAppear { randomizeVisualizers = true; randomizeBarLengths = false } |
| 174 | 174 | } |
| ⋯ | ||
| 438 | 438 | let scenes = favorites |
| 439 | 439 | VStack(alignment: .leading, spacing: 8) { |
| 440 | 440 | 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) | |
| 442 | 442 | if scenes.isEmpty { |
| 443 | 443 | Text("Tap a visualizer’s heart in the Library to add it here.") |
| 444 | 444 | .font(.system(size: 12)).foregroundStyle(.secondary).padding(8) |
| ⋯ | ||
| 449 | 449 | Button {choose(scene)} label: { |
| 450 | 450 | HStack(spacing: 10) { |
| 451 | 451 | Image(systemName: library.icon(for: scene)).frame(width: 22) |
| 452 | - .foregroundStyle(.orange.opacity(0.85)) | |
| 452 | + .foregroundStyle(.white.opacity(0.85)) | |
| 453 | 453 | Text(RenderState.sceneNames[scene]).font(.system(size: 12, weight: .medium)).lineLimit(1) |
| 454 | 454 | Spacer(minLength: 0) |
| 455 | - if scene == selected {Image(systemName: "checkmark").foregroundStyle(.orange)} | |
| 455 | + if scene == selected {Image(systemName: "checkmark").foregroundStyle(.white)} | |
| 456 | 456 | }.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)) | |
| 458 | 458 | .contentShape(Rectangle()) |
| 459 | 459 | }.buttonStyle(.plain).accessibilityLabel("Use favorite \(RenderState.sceneNames[scene])") |
| 460 | 460 | } |
| ⋯ | ||
| 479 | 479 | GeometryReader { space in |
| 480 | 480 | ZStack(alignment: .leading) { |
| 481 | 481 | 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)) | |
| 483 | 483 | .frame(width: selected ? max(3, space.size.width * elapsed) : space.size.width) |
| 484 | 484 | } |
| 485 | 485 | }.frame(height: 3) |
Sources/PulseCanvas/UserBackupView.swift changed
| 60 | 60 | } |
| 61 | 61 | if busy { ProgressView("Preparing backup…") } |
| 62 | 62 | 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) } | |
| 64 | 64 | if let openProject, !savedProjects.isEmpty { |
| 65 | 65 | DisclosureGroup("Saved & restored projects") { |
| 66 | 66 | ForEach(savedProjects, id: \.self) { url in |
Sources/PulseCanvas/VisualizerBrowser.swift changed
| 17 | 17 | @State private var backupMessage = "" |
| 18 | 18 | @State private var backupFailed = false |
| 19 | 19 | @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 | |
| 21 | 21 | private var matches: [Int] { |
| 22 | 22 | library.filteredScenes(query: query, collection: collection, category: category, |
| 23 | 23 | folder: folder, favoritesOnly: favoritesOnly) |
| ⋯ | ||
| 65 | 65 | HStack(spacing: 0) { |
| 66 | 66 | Button { choose(scene) } label: { |
| 67 | 67 | 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)) | |
| 69 | 69 | VStack(alignment: .leading, spacing: 3) { |
| 70 | 70 | Text(RenderState.sceneNames[scene]).font(.system(size: 12, weight: .medium)).lineLimit(1) |
| 71 | 71 | Text(library.preset(for: scene)?.category ?? "Native Metal · \(library.category(for: scene))").font(.system(size: 10)).foregroundStyle(.secondary).lineLimit(1) |
| 72 | 72 | } |
| 73 | 73 | Spacer() |
| 74 | - if selected == scene { Image(systemName: "checkmark").foregroundStyle(.orange) } | |
| 74 | + if selected == scene { Image(systemName: "checkmark").foregroundStyle(.white) } | |
| 75 | 75 | }.padding(.horizontal, 12).frame(maxWidth: .infinity, minHeight: 52) |
| 76 | 76 | .contentShape(Rectangle()) |
| 77 | 77 | }.buttonStyle(.plain).accessibilityLabel("Use \(RenderState.sceneNames[scene])") |
| 78 | 78 | .help("Select visualizer") |
| 79 | 79 | Button {library.toggleFavorite(scene, appearance: appearance?(scene))} label: { |
| 80 | 80 | Image(systemName: library.isFavorite(scene) ? "heart.fill" : "heart") |
| 81 | - .foregroundStyle(library.isFavorite(scene) ? Color.orange : .secondary) | |
| 81 | + .foregroundStyle(library.isFavorite(scene) ? Color.white : .secondary) | |
| 82 | 82 | .frame(width: 44, height: 52).contentShape(Rectangle()) |
| 83 | 83 | }.buttonStyle(.plain) |
| 84 | 84 | .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)) | |
| 86 | 86 | .help(library.preset(for:scene)?.originalTitle ?? RenderState.sceneNames[scene]) |
| 87 | 87 | } |
| 88 | 88 | } |
| ⋯ | ||
| 107 | 107 | } |
| 108 | 108 | if !backupMessage.isEmpty || library.favoritesBackupError != nil { |
| 109 | 109 | Text(library.favoritesBackupError ?? backupMessage).font(.caption) |
| 110 | - .foregroundStyle(backupFailed || library.favoritesBackupError != nil ? Color.red : .secondary) | |
| 110 | + .foregroundStyle(backupFailed || library.favoritesBackupError != nil ? Color.white : .secondary) | |
| 111 | 111 | .fixedSize(horizontal: false, vertical: true) |
| 112 | 112 | } |
| 113 | 113 | }.padding(18).frame(width: 680) |
Sources/PulseCanvas/VisualizerPoolControls.swift changed
| 80 | 80 | @ObservedObject private var library = ProjectMPresets.shared |
| 81 | 81 | let close: () -> Void |
| 82 | 82 | @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 | |
| 84 | 84 | var body: some View { |
| 85 | 85 | VStack(alignment: .leading, spacing: 18) { |
| 86 | 86 | Label("Visualizer pool", systemImage: "line.3.horizontal.decrease.circle") |
| ⋯ | ||
| 105 | 105 | }.disabled(!draft.enabled).opacity(draft.enabled ? 1 : 0.5) |
| 106 | 106 | let count = library.scenes(in: draft).count |
| 107 | 107 | 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) | |
| 109 | 109 | if count == 0 { |
| 110 | 110 | Text("Choose another category, add favorites, or turn the limit off. Randomizers stay idle when the pool is empty.") |
| 111 | 111 | .font(.callout).foregroundStyle(.secondary).fixedSize(horizontal: false, vertical: true) |
Sources/PulseCanvas/VisualizerPresetStrip.swift changed
| 137 | 137 | let rect = bounds.insetBy(dx: 0.5, dy: 0.5), path = NSBezierPath(roundedRect: rect, xRadius: 9, yRadius: 9) |
| 138 | 138 | (isSelected ? accent.withAlphaComponent(0.13) : fill.withAlphaComponent(0.65)).setFill(); path.fill() |
| 139 | 139 | (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) | |
| 141 | 141 | if let image { |
| 142 | 142 | let size = image.size |
| 143 | 143 | let scale = min(32 / max(1, size.width), 32 / max(1, size.height)) |
Sources/PulseCanvas/VisualizerRenderer.swift changed
| 90 | 90 | func makeNSView(context: Context) -> MTKView { |
| 91 | 91 | let view = MTKView(frame: .zero, device: MTLCreateSystemDefaultDevice()) |
| 92 | 92 | 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) | |
| 94 | 94 | view.framebufferOnly = false |
| 95 | 95 | view.preferredFramesPerSecond = 60 |
| 96 | 96 | view.delegate = context.coordinator |
| ⋯ | ||
| 695 | 695 | let pass = MTLRenderPassDescriptor() |
| 696 | 696 | pass.colorAttachments[0].texture = target |
| 697 | 697 | 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) | |
| 699 | 699 | // Bead sprites arrive sorted far to near and blend without a depth buffer. |
| 700 | 700 | let beads = indices.isEmpty |
| 701 | 701 | if !beads { |
Version.xcconfig changed
| 1 | 1 | // 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
| 9 | 9 | <key>CFBundleIdentifier</key> |
| 10 | 10 | <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
| 11 | 11 | <key>CFBundleName</key> |
| 12 | - <string>PulseCanvas Studio</string> | |
| 12 | + <string>Pulse Canvas</string> | |
| 13 | 13 | <key>CFBundleDisplayName</key> |
| 14 | - <string>PulseCanvas Studio</string> | |
| 14 | + <string>Pulse Canvas</string> | |
| 15 | 15 | <key>CFBundleIconFile</key> |
| 16 | 16 | <string>AppIcon</string> |
| 17 | 17 | <key>CFBundlePackageType</key> |
| ⋯ | ||
| 72 | 72 | <key>iCloud.com.protomota.pulsecanvas</key> |
| 73 | 73 | <dict> |
| 74 | 74 | <key>NSUbiquitousContainerName</key> |
| 75 | - <string>PulseCanvas Studio</string> | |
| 75 | + <string>Pulse Canvas</string> | |
| 76 | 76 | <key>NSUbiquitousContainerIsDocumentScopePublic</key> |
| 77 | 77 | <false/> |
| 78 | 78 | <key>NSUbiquitousContainerSupportedFolderLevels</key> |
macOS/Release.xcconfig changed
| 3 | 3 | // Proposed release values. Verify identifier availability before registration. |
| 4 | 4 | PRODUCT_BUNDLE_IDENTIFIER = com.protomota.pulsecanvas |
| 5 | 5 | #include "../Version.xcconfig" |
| 6 | - CURRENT_PROJECT_VERSION = 44 | |
| 6 | + CURRENT_PROJECT_VERSION = 45 | |
| 7 | 7 | MACOSX_DEPLOYMENT_TARGET = 14.0 |
| 8 | 8 | ARCHS = arm64 |
| 9 | 9 | ONLY_ACTIVE_ARCH = NO |
mobile/Assets.xcassets/AppIcon.appiconset/AppIcon.png changed
Not a text file.
mobile/Info.plist changed
| 5 | 5 | <key>CFBundleDevelopmentRegion</key> |
| 6 | 6 | <string>en</string> |
| 7 | 7 | <key>CFBundleDisplayName</key> |
| 8 | - <string>PulseCanvas</string> | |
| 8 | + <string>Pulse Canvas</string> | |
| 9 | 9 | <key>CFBundleDocumentTypes</key> |
| 10 | 10 | <array> |
| 11 | 11 | <dict> |
| 12 | 12 | <key>CFBundleTypeName</key> |
| 13 | - <string>PulseCanvas Studio project</string> | |
| 13 | + <string>Pulse Canvas project</string> | |
| 14 | 14 | <key>LSHandlerRank</key> |
| 15 | 15 | <string>Owner</string> |
| 16 | 16 | <key>LSItemContentTypes</key> |
| ⋯ | ||
| 71 | 71 | <string>public.json</string> |
| 72 | 72 | </array> |
| 73 | 73 | <key>UTTypeDescription</key> |
| 74 | - <string>PulseCanvas Studio project</string> | |
| 74 | + <string>Pulse Canvas project</string> | |
| 75 | 75 | <key>UTTypeIdentifier</key> |
| 76 | 76 | <string>com.protomota.pulsecanvas.project</string> |
| 77 | 77 | <key>UTTypeTagSpecification</key> |
| ⋯ | ||
| 88 | 88 | <key>iCloud.com.protomota.pulsecanvas</key> |
| 89 | 89 | <dict> |
| 90 | 90 | <key>NSUbiquitousContainerName</key> |
| 91 | - <string>PulseCanvas Studio</string> | |
| 91 | + <string>Pulse Canvas</string> | |
| 92 | 92 | <key>NSUbiquitousContainerIsDocumentScopePublic</key> |
| 93 | 93 | <false/> |
| 94 | 94 | <key>NSUbiquitousContainerSupportedFolderLevels</key> |
mobile/MobileExport.swift changed
| 27 | 27 | Text(saved ? String(localized: "Video saved") : hasCurrentResult ? String(localized: "Your video is ready") : exporter.status).font(.headline) |
| 28 | 28 | if let estimate = exporter.estimatedSecondsRemaining { Text("About \(MobileTransport.time(estimate)) remaining").foregroundStyle(.secondary) } |
| 29 | 29 | } |
| 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) } | |
| 32 | 32 | }.padding(24) |
| 33 | 33 | }.safeAreaInset(edge: .bottom, spacing: 0) { |
| 34 | 34 | VStack(spacing: 10) { |
| ⋯ | ||
| 107 | 107 | var body: some View { |
| 108 | 108 | List { |
| 109 | 109 | Section { |
| 110 | - Text("PulseCanvas Studio").font(.title2.bold()) | |
| 110 | + Text("Pulse Canvas").font(.title2.bold()) | |
| 111 | 111 | Text("Music into moving visuals. Free to use, with no account or subscription.") |
| 112 | 112 | } |
| 113 | 113 | Section("Onboarding") { |
| 114 | - Button("Welcome to PulseCanvas Studio", systemImage: "sparkles") { | |
| 114 | + Button("Welcome to Pulse Canvas", systemImage: "sparkles") { | |
| 115 | 115 | NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil) |
| 116 | 116 | }.accessibilityIdentifier("settingsWelcomePulseCanvas") |
| 117 | 117 | } |
| ⋯ | ||
| 128 | 128 | } |
| 129 | 129 | Section("Legal & Credits") { |
| 130 | 130 | 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")!) | |
| 132 | 132 | Link("Privacy policy", destination: URL(string: "https://pulsecanvas.ai/privacy/")!) |
| 133 | 133 | if let url = Bundle.main.url(forResource: "PulseCanvas-LICENSE", withExtension: "txt", subdirectory: "Legal"), let license = try? String(contentsOf: url, encoding: .utf8) { |
| 134 | 134 | DisclosureGroup("Application license") { Text(license).font(.caption).textSelection(.enabled) } |
mobile/MobilePlaybackSession.swift changed
| 103 | 103 | } |
| 104 | 104 | MPNowPlayingInfoCenter.default().nowPlayingInfo = [ |
| 105 | 105 | MPMediaItemPropertyTitle: radio.isActive ? radio.currentTrack?.title ?? "PulseCanvas Radio" : audio.title, |
| 106 | - MPMediaItemPropertyAlbumTitle: "PulseCanvas Studio", | |
| 106 | + MPMediaItemPropertyAlbumTitle: "Pulse Canvas", | |
| 107 | 107 | MPMediaItemPropertyPlaybackDuration: audio.duration, |
| 108 | 108 | MPNowPlayingInfoPropertyElapsedPlaybackTime: audio.playbackSeconds, |
| 109 | 109 | MPNowPlayingInfoPropertyPlaybackRate: audio.isPlaying ? 1.0 : 0.0, |
mobile/MobileWorkspace.swift changed
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | 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 | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | struct MobileButton: ButtonStyle { |
| ⋯ | ||
| 120 | 120 | } catch { editor.message = error.localizedDescription } |
| 121 | 121 | } |
| 122 | 122 | .fileExporter(isPresented: $savingProject, document: projectDocument, contentType: .pulseCanvasProject, |
| 123 | - defaultFilename: "PulseCanvas Studio.pulsecanvas") { result in | |
| 123 | + defaultFilename: "Pulse Canvas.pulsecanvas") { result in | |
| 124 | 124 | if case .failure(let error) = result { editor.message = error.localizedDescription } |
| 125 | 125 | if case .success(let url) = result { |
| 126 | 126 | do { try UserBackup.rememberProject(projectDocument.data, name: url.path) } |
| 127 | 127 | catch { editor.message = String(localized: "Project saved, but its backup copy wasn't updated: \(error.localizedDescription)") } |
| 128 | 128 | } |
| 129 | 129 | } |
| 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 } })) { | |
| 131 | 131 | Button("OK") { editor.message = nil } |
| 132 | 132 | } message: { Text(editor.message ?? "") } |
| 133 | 133 | .confirmationDialog("Randomize this timeline?", isPresented: $randomizePrompt, titleVisibility: .visible) { |
| ⋯ | ||
| 290 | 290 | ProgressView("Preparing your soundtrack…").font(.callout) |
| 291 | 291 | .accessibilityIdentifier("mobileSoundtrackPreparing") |
| 292 | 292 | } |
| 293 | - if let error = render.errorMessage { Text(error).foregroundStyle(.red).accessibilityIdentifier("mobileRenderError") } | |
| 293 | + if let error = render.errorMessage { Text(error).foregroundStyle(.white).accessibilityIdentifier("mobileRenderError") } | |
| 294 | 294 | } |
| 295 | 295 | } |
| 296 | 296 | } |
| ⋯ | ||
| 435 | 435 | Button("Reset") { editor.studio.reset(render) } |
| 436 | 436 | Button { editor.studio.randomize(render) } label: { Image(systemName: "dice.fill").font(.title2) }.accessibilityLabel("Randomize visual style") |
| 437 | 437 | }.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) } } | |
| 439 | 439 | .pickerStyle(.menu).accessibilityIdentifier("mobilePalettePicker") |
| 440 | 440 | LazyVGrid(columns: [GridItem(.adaptive(minimum: 230), spacing: 24)], spacing: 24) { |
| 441 | 441 | control("Chaos", value: $render.chaos, range: 0...1) |
mobile/Release.xcconfig changed
| 2 | 2 | PRODUCT_NAME = PulseCanvas Mobile |
| 3 | 3 | DEVELOPMENT_TEAM = 22HV69L32T |
| 4 | 4 | #include "../Version.xcconfig" |
| 5 | - CURRENT_PROJECT_VERSION = 27 | |
| 5 | + CURRENT_PROJECT_VERSION = 28 | |
| 6 | 6 | IPHONEOS_DEPLOYMENT_TARGET = 18.0 |
| 7 | 7 | SUPPORTED_PLATFORMS = iphoneos iphonesimulator |
| 8 | 8 | TARGETED_DEVICE_FAMILY = 1,2 |
scripts/NativeExpansionSmoke.swift changed
| 125 | 125 | for time in [12.3, 47.1, 96.4] { |
| 126 | 126 | let bytes = try render(renderer, analyzer, at: time) |
| 127 | 127 | 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 } | |
| 129 | 133 | lit += 1 |
| 130 | 134 | cells.insert(((i/4) / width * 4 / height) * 4 + (i/4) % width * 4 / width) |
| 131 | 135 | } |
scripts/prepare-store-resources.sh changed
| 27 | 27 | import json |
| 28 | 28 | from pathlib import Path |
| 29 | 29 | 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') | |
| 31 | 31 | PY |
visionOS/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/icon.png changed
Not a text file.
visionOS/Info.plist changed
| 17 | 17 | <key>CFBundleName</key> |
| 18 | 18 | <string>PulseCanvas Vision</string> |
| 19 | 19 | <key>CFBundleDisplayName</key> |
| 20 | - <string>PulseCanvas Studio</string> | |
| 20 | + <string>Pulse Canvas</string> | |
| 21 | 21 | <key>CFBundlePackageType</key> |
| 22 | 22 | <string>APPL</string> |
| 23 | 23 | <key>CFBundleShortVersionString</key> |
| ⋯ | ||
| 54 | 54 | <key>UTTypeIdentifier</key> |
| 55 | 55 | <string>com.protomota.pulsecanvas.project</string> |
| 56 | 56 | <key>UTTypeDescription</key> |
| 57 | - <string>PulseCanvas Studio project</string> | |
| 57 | + <string>Pulse Canvas project</string> | |
| 58 | 58 | <key>UTTypeConformsTo</key> |
| 59 | 59 | <array> |
| 60 | 60 | <string>public.json</string> |
| ⋯ | ||
| 74 | 74 | <array> |
| 75 | 75 | <dict> |
| 76 | 76 | <key>CFBundleTypeName</key> |
| 77 | - <string>PulseCanvas Studio project</string> | |
| 77 | + <string>Pulse Canvas project</string> | |
| 78 | 78 | <key>LSItemContentTypes</key> |
| 79 | 79 | <array> |
| 80 | 80 | <string>com.protomota.pulsecanvas.vision-project</string> |
| ⋯ | ||
| 89 | 89 | <key>iCloud.com.protomota.pulsecanvas</key> |
| 90 | 90 | <dict> |
| 91 | 91 | <key>NSUbiquitousContainerName</key> |
| 92 | - <string>PulseCanvas Studio</string> | |
| 92 | + <string>Pulse Canvas</string> | |
| 93 | 93 | <key>NSUbiquitousContainerIsDocumentScopePublic</key> |
| 94 | 94 | <false/> |
| 95 | 95 | <key>NSUbiquitousContainerSupportedFolderLevels</key> |
visionOS/PulseCanvasVisionApp.swift changed
| 10 | 10 | session.editor.reloadCloudLooks(); session.radio.reloadCloudFavorites() |
| 11 | 11 | } |
| 12 | 12 | .modifier(PulseCanvasOnboardingPresentation(onReplay: { session.suspend() })) |
| 13 | - .tint(Color(red: 0.95, green: 0.68, blue: 0.55)) | |
| 13 | + .tint(Color.white) | |
| 14 | 14 | }.defaultSize(width: 1400, height: 950) |
| 15 | 15 | ImmersiveSpace(id: "visualizer-stage") { |
| 16 | 16 | VisionImmersiveView(studio: session.activeStudio, session: session) |
visionOS/Release.xcconfig changed
| 2 | 2 | PRODUCT_NAME = PulseCanvas Vision |
| 3 | 3 | DEVELOPMENT_TEAM = 22HV69L32T |
| 4 | 4 | #include "../Version.xcconfig" |
| 5 | - CURRENT_PROJECT_VERSION = 30 | |
| 5 | + CURRENT_PROJECT_VERSION = 31 | |
| 6 | 6 | XROS_DEPLOYMENT_TARGET = 2.0 |
| 7 | 7 | SUPPORTED_PLATFORMS = xros xrsimulator |
| 8 | 8 | TARGETED_DEVICE_FAMILY = 7 |
visionOS/VisionImmersiveView.swift changed
| 162 | 162 | let returnToStudio: () -> Void |
| 163 | 163 | var body: some View { |
| 164 | 164 | 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) } | |
| 166 | 166 | HStack(alignment: .center, spacing: 12) { |
| 167 | 167 | VisionImmersivePlayback(studio: studio, transport: studio.transport, session: session) |
| 168 | 168 | if session.radioMode { |
visionOS/VisionInfoView.swift changed
| 11 | 11 | var body: some View { |
| 12 | 12 | VStack(alignment: .leading, spacing: 24) { |
| 13 | 13 | HStack { |
| 14 | - Label("PulseCanvas Studio", systemImage: "waveform").font(.title2.bold()) | |
| 14 | + Label("Pulse Canvas", systemImage: "waveform").font(.title2.bold()) | |
| 15 | 15 | Spacer() |
| 16 | 16 | Button("Done", action: close).accessibilityIdentifier("closeVisionInfoButton") |
| 17 | 17 | } |
| ⋯ | ||
| 50 | 50 | |
| 51 | 51 | private var onboarding: some View { |
| 52 | 52 | VStack(alignment: .leading, spacing: 12) { |
| 53 | - Button("Welcome to PulseCanvas Studio", systemImage: "sparkles") { | |
| 53 | + Button("Welcome to Pulse Canvas", systemImage: "sparkles") { | |
| 54 | 54 | replayOnboarding() |
| 55 | 55 | }.accessibilityIdentifier("settingsWelcomePulseCanvas") |
| 56 | 56 | Text("See the onboarding again, from the beginning.").font(.callout).foregroundStyle(.secondary) |
| ⋯ | ||
| 59 | 59 | |
| 60 | 60 | private var legal: some View { |
| 61 | 61 | 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")!) | |
| 63 | 63 | Text(Bundle.main.url(forResource: "PulseCanvas-LICENSE", withExtension: "txt", subdirectory: "Legal") |
| 64 | 64 | .flatMap { try? String(contentsOf: $0, encoding: .utf8) } ?? "License unavailable") |
| 65 | 65 | .font(.body).textSelection(.enabled) |
visionOS/VisionStudioView.swift changed
| 20 | 20 | @State private var showLibrary = false |
| 21 | 21 | @State private var showStyle = false |
| 22 | 22 | @State private var legal = false |
| 23 | - @State private var replayOnboardingAfterSupport = false | |
| 23 | + @State private var replayOnboardingAfterInfo = false | |
| 24 | 24 | @State private var launchApplied = false |
| 25 | 25 | |
| 26 | 26 | var body: some View { |
| ⋯ | ||
| 69 | 69 | .frame(width: 680, height: 640) |
| 70 | 70 | } |
| 71 | 71 | .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. | |
| 75 | 75 | NotificationCenter.default.post(name: .pulseCanvasOnboarding, object: nil) |
| 76 | 76 | }) { |
| 77 | 77 | VisionInfoView(session: session, close: { legal = false }, replayOnboarding: { |
| 78 | - replayOnboardingAfterSupport = true | |
| 78 | + replayOnboardingAfterInfo = true | |
| 79 | 79 | legal = false |
| 80 | 80 | }) |
| 81 | 81 | } |
| ⋯ | ||
| 105 | 105 | } |
| 106 | 106 | } |
| 107 | 107 | .fileExporter(isPresented: $exportProject, document: VisionProjectDocument(data: projectData), |
| 108 | - contentType: .pulseCanvas, defaultFilename: "PulseCanvas Studio") { result in | |
| 108 | + contentType: .pulseCanvas, defaultFilename: "Pulse Canvas") { result in | |
| 109 | 109 | if case .failure(let error) = result { studio.message = error.localizedDescription } |
| 110 | 110 | if case .success(let url) = result { |
| 111 | 111 | do { try UserBackup.rememberProject(projectData, name: url.path) } |
| 112 | 112 | catch { studio.message = String(localized: "Project saved, but its backup copy wasn't updated: \(error.localizedDescription)") } |
| 113 | 113 | } |
| 114 | 114 | } |
| 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 } })) { | |
| 116 | 116 | Button("OK") { studio.message = nil } |
| 117 | 117 | } message: { Text(studio.message ?? "") } |
| 118 | 118 | } |
| ⋯ | ||
| 153 | 153 | Toggle("Hide room", isOn: $session.fullImmersion).labelsHidden() |
| 154 | 154 | .toggleStyle(.switch).disabled(session.immersiveActive) |
| 155 | 155 | .accessibilityIdentifier("hideRoomToggle") |
| 156 | - .tint(Color(red: 0.95, green: 0.68, blue: 0.55)) | |
| 156 | + .tint(Color.white) | |
| 157 | 157 | }.fixedSize() |
| 158 | 158 | immersiveButton |
| 159 | 159 | }.labelStyle(.iconOnly).buttonStyle(.borderless).tint(.white) |
| ⋯ | ||
| 481 | 481 | .frame(width: 44, height: 52).contentShape(Rectangle()) |
| 482 | 482 | }.buttonStyle(.plain).hoverEffect(.highlight) |
| 483 | 483 | .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), | |
| 485 | 485 | in: RoundedRectangle(cornerRadius: 12)) |
| 486 | 486 | } |
| 487 | 487 | if scenes.isEmpty { |
| ⋯ | ||
| 574 | 574 | var body: some View { |
| 575 | 575 | VStack(spacing: 14) { |
| 576 | 576 | 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 } })) { | |
| 578 | 578 | ForEach(VisualPalette.allCases, id: \.rawValue) { Text($0.title).tag($0.rawValue) } |
| 579 | 579 | } |
| 580 | 580 | Button("Reset") { studio.resetLook(for: clipID) } |
| ⋯ | ||
| 696 | 696 | }.padding(20).background(.white.opacity(0.05), in: RoundedRectangle(cornerRadius: 18)) |
| 697 | 697 | Text(visualizers ? "Fresh looks replace visual settings; saved favorites keep their look. Your soundtrack stays." : "Visualizer order, soundtrack and saved styles stay unchanged.") |
| 698 | 698 | .font(.callout).foregroundStyle(.secondary) |
| 699 | - if let error { Text(error).font(.callout).foregroundStyle(.orange) } | |
| 699 | + if let error { Text(error).font(.callout).foregroundStyle(.white) } | |
| 700 | 700 | HStack { |
| 701 | 701 | Button("Cancel", role: .cancel, action: close) |
| 702 | 702 | Spacer() |
| ⋯ | ||
| 810 | 810 | value: Binding(get: { clip.bars }, set: { studio.bars($0, clip: clip.id) }), in: 1...64) |
| 811 | 811 | .accessibilityLabel("Bars for \(NativeEffects.names[clip.scene])") |
| 812 | 812 | }.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), | |
| 814 | 814 | in: RoundedRectangle(cornerRadius: 20)) |
| 815 | 815 | } |
| 816 | 816 | } |
| ⋯ | ||
| 861 | 861 | }.buttonStyle(.plain).hoverEffect(.highlight) |
| 862 | 862 | .accessibilityLabel(library.isFavorite(scene) ? "Unfavorite \(NativeEffects.names[scene])" : "Favorite \(NativeEffects.names[scene])") |
| 863 | 863 | }.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), | |
| 865 | 865 | in: RoundedRectangle(cornerRadius: 12)) |
| 866 | 866 | } |
| 867 | 867 | if scenes.isEmpty { Text("No matching visualizers").foregroundStyle(.secondary).padding(24) } |
visionOS/VisionVideoExportView.swift changed
| 38 | 38 | .foregroundStyle(.secondary).monospacedDigit() |
| 39 | 39 | } |
| 40 | 40 | } |
| 41 | - if let saveError { Text(saveError).foregroundStyle(.red) } | |
| 41 | + if let saveError { Text(saveError).foregroundStyle(.white) } | |
| 42 | 42 | if !exporter.isExporting && exporter.exportedURL == nil && exporter.didFail { |
| 43 | - Text(exporter.status).foregroundStyle(.red) | |
| 43 | + Text(exporter.status).foregroundStyle(.white) | |
| 44 | 44 | } |
| 45 | 45 | HStack { |
| 46 | 46 | Button(exporter.isExporting ? "Cancel export" : "Done") { |