Skip to content

Instantly share code, notes, and snippets.

View crusat's full-sized avatar

Kuznetsov Aleksey crusat

View GitHub Profile
@crusat
crusat / ContentView.swift
Last active July 20, 2023 06:18
Changable themes in SwiftUI
import SwiftUI
struct Theme: Hashable {
var colorPrimary: Color = Color.primary
var name: String? = nil
var publicName: String = "System"
}
var themes: [Theme] = [
Theme(colorPrimary: Color.primary, name: nil, publicName: "System"),
# Enable this for template generation
Alias /munin /var/www/munin
# Enable this for cgi-based templates
#Alias /munin-cgi/static /var/cache/munin/www/static
#ScriptAlias /munin-cgi /usr/lib/munin/cgi/munin-cgi-html
#<Location /munin-cgi>
# Order allow,deny
# Allow from localhost 127.0.0.0/8 ::1
# AuthUserFile /etc/munin/munin-htpasswd