mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-09 02:40:21 +00:00
2b820ec802
- Split monolithic SettingsView.swift into modular Settings panes - Add SOCKS5 proxy support to proxy configuration - Fix ListRowDensity application in DownloadTable - Improve discoverability of global speed limit by adding it to Downloads pane
48 lines
1.7 KiB
Swift
48 lines
1.7 KiB
Swift
import SwiftUI
|
|
|
|
struct LookAndFeelSettingsPane: View {
|
|
@EnvironmentObject private var settings: AppSettings
|
|
@AppStorage("showMenuBarIcon") private var showMenuBarIcon = true
|
|
|
|
var body: some View {
|
|
Form {
|
|
Section("App Theme") {
|
|
Picker("Theme", selection: $settings.appTheme) {
|
|
ForEach(AppTheme.allCases) { theme in
|
|
Text(theme.rawValue)
|
|
.tag(theme)
|
|
}
|
|
}
|
|
.pickerStyle(.radioGroup)
|
|
|
|
Text("Select a color palette for the app's user interface.")
|
|
.font(.caption)
|
|
.foregroundStyle(.secondary)
|
|
}
|
|
|
|
Section("Display") {
|
|
Picker("Font Size", selection: $settings.appFontSize) {
|
|
ForEach(AppFontSize.allCases) { size in
|
|
Text(size.rawValue).tag(size)
|
|
}
|
|
}
|
|
|
|
Picker("List Row Density", selection: $settings.listRowDensity) {
|
|
ForEach(ListRowDensity.allCases) { density in
|
|
Text(density.rawValue).tag(density)
|
|
}
|
|
}
|
|
}
|
|
|
|
Section("Menu Bar") {
|
|
Toggle("Show menu bar icon", isOn: $showMenuBarIcon)
|
|
|
|
Text("Provides quick access to downloads and queues from the macOS menu bar. Restart required if hiding.")
|
|
.font(.caption)
|
|
.foregroundStyle(.secondary)
|
|
}
|
|
}
|
|
.formStyle(.grouped)
|
|
}
|
|
}
|