mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
Restored files from old Mac, force pushing
This commit is contained in:
parent
5dd95228b8
commit
5040381840
126 changed files with 10431 additions and 67 deletions
54
DynamicIsland/components/Settings/EditPanelView.swift
Normal file
54
DynamicIsland/components/Settings/EditPanelView.swift
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
//
|
||||
// EditPanelView.swift
|
||||
// boringNotch
|
||||
//
|
||||
// Created by Richard Kunkli on 12/08/2024.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct EditPanelView: View {
|
||||
@State var wallpaperPath: URL?
|
||||
var body: some View {
|
||||
VStack {
|
||||
HStack {
|
||||
Text("Edit layout")
|
||||
.font(.system(.largeTitle, design: .rounded))
|
||||
.foregroundColor(.white.opacity(0.5))
|
||||
Spacer()
|
||||
Button {
|
||||
exit(0)
|
||||
} label: {
|
||||
Label("Close", systemImage: "xmark")
|
||||
}
|
||||
.controlSize(.extraLarge)
|
||||
.buttonStyle(AccessoryBarButtonStyle())
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
EditPanelView()
|
||||
}
|
||||
|
||||
struct VisualEffectView: NSViewRepresentable {
|
||||
let material: NSVisualEffectView.Material
|
||||
let blendingMode: NSVisualEffectView.BlendingMode
|
||||
|
||||
func makeNSView(context _: Context) -> NSVisualEffectView {
|
||||
let visualEffectView = NSVisualEffectView()
|
||||
visualEffectView.material = material
|
||||
visualEffectView.blendingMode = blendingMode
|
||||
visualEffectView.state = NSVisualEffectView.State.active
|
||||
visualEffectView.isEmphasized = true
|
||||
return visualEffectView
|
||||
}
|
||||
|
||||
func updateNSView(_ visualEffectView: NSVisualEffectView, context _: Context) {
|
||||
visualEffectView.material = material
|
||||
visualEffectView.blendingMode = blendingMode
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue