Skip to content

Instantly share code, notes, and snippets.

View khcrysalis's full-sized avatar
☁️
Windy

khcrysalis

☁️
Windy
View GitHub Profile
{
"name": "Toothpaste",
"description": "For someone special.",
"version": "0.2",
"authors": [
{
"name": "flower!",
"id": "836452332387565589"
}
],
{
"name": "example",
"author": "ur_mom#42069",
"theme_color_map": {
"KEYBOARD": ["#000000", "#FFFFFF"],
"BACKGROUND_PRIMARY": ["#000000", "#FFFFFF"],
"BACKGROUND_SECONDARY": ["#000000", "#FFFFFF"],
"BACKGROUND_SECONDARY_ALT": ["#000000", "#FFFFFF"],
"BACKGROUND_TERTIARY": ["#000000", "#FFFFFF"],
"BACKGROUND_ACCENT": ["#000000", "#FFFFFF"],
@khcrysalis
khcrysalis / SettingsLinkWrapper.swift
Created January 8, 2025 03:37
Wrapper for various ways to access settings in SwiftUI.
@khcrysalis
khcrysalis / onboarding.swift
Created January 23, 2025 21:33
Apple-style onboarding for applications
func showOnboarding() {
let window = NSWindow(
contentRect: NSRect(x: 0, y: 0, width: 640, height: 600),
styleMask: [.fullSizeContentView, .nonactivatingPanel],
backing: .buffered,
defer: false
)
// Replace your own view here
let onboardingWindow = NSHostingView(rootView: EmptyView())