mirror of
https://github.com/clawdbot/clawdbot.git
synced 2026-02-01 03:47:45 +01:00
Mac: finish Moltbot rename (paths)
This commit is contained in:
24
apps/macos/Sources/Moltbot/SettingsComponents.swift
Normal file
24
apps/macos/Sources/Moltbot/SettingsComponents.swift
Normal file
@@ -0,0 +1,24 @@
|
||||
import SwiftUI
|
||||
|
||||
struct SettingsToggleRow: View {
|
||||
let title: String
|
||||
let subtitle: String?
|
||||
@Binding var binding: Bool
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
Toggle(isOn: self.$binding) {
|
||||
Text(self.title)
|
||||
.font(.body)
|
||||
}
|
||||
.toggleStyle(.checkbox)
|
||||
|
||||
if let subtitle, !subtitle.isEmpty {
|
||||
Text(subtitle)
|
||||
.font(.footnote)
|
||||
.foregroundStyle(.tertiary)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user