Files
bot/apps/macos/Sources/Bot/VisualEffectView.swift
zeekay ca704d3e6a chore: rebrand openclaw → hanzo-bot for bridge merge
Comprehensive rename of all openclaw references to hanzo-bot equivalents:
- Package: openclaw → @hanzo/bot
- Binary: openclaw → hanzo-bot
- Types: OpenClaw* → Bot*
- Env vars: OPENCLAW_* → BOT_*
- Android: ai.openclaw.android → ai.hanzo.bot.android
- iOS/macOS: ai.openclaw.* → ai.hanzo.*
- Swift modules: OpenClaw* → Bot*
- Plugins: openclaw.plugin.json → bot.plugin.json
- Paths: .openclaw/ → .hanzo/bot/
- URLs: github.com/openclaw → github.com/hanzoai
2026-02-26 22:36:01 -08:00

38 lines
1.1 KiB
Swift

import AppKit
import SwiftUI
struct VisualEffectView: NSViewRepresentable {
var material: NSVisualEffectView.Material
var blendingMode: NSVisualEffectView.BlendingMode
var state: NSVisualEffectView.State
var emphasized: Bool
init(
material: NSVisualEffectView.Material,
blendingMode: NSVisualEffectView.BlendingMode = .behindWindow,
state: NSVisualEffectView.State = .active,
emphasized: Bool = false)
{
self.material = material
self.blendingMode = blendingMode
self.state = state
self.emphasized = emphasized
}
func makeNSView(context _: Context) -> NSVisualEffectView {
let view = NSVisualEffectView()
view.material = self.material
view.blendingMode = self.blendingMode
view.state = self.state
view.isEmphasized = self.emphasized
return view
}
func updateNSView(_ nsView: NSVisualEffectView, context _: Context) {
nsView.material = self.material
nsView.blendingMode = self.blendingMode
nsView.state = self.state
nsView.isEmphasized = self.emphasized
}
}