chore: adiciona .gitignore e commit.command

This commit is contained in:
João Henrique
2026-08-18 08:25:29 -04:00
parent 68958fde00
commit 8fca456ceb
215 changed files with 65752 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
import ComposableArchitecture
import HexCore
import Inject
import SwiftUI
struct SettingsView: View {
@ObserveInjection var inject
@Bindable var store: StoreOf<SettingsFeature>
let microphonePermission: PermissionStatus
let accessibilityPermission: PermissionStatus
let inputMonitoringPermission: PermissionStatus
var body: some View {
Form {
if microphonePermission != .granted
|| accessibilityPermission != .granted
|| inputMonitoringPermission != .granted {
PermissionsSectionView(
store: store,
microphonePermission: microphonePermission,
accessibilityPermission: accessibilityPermission,
inputMonitoringPermission: inputMonitoringPermission
)
}
ModelSectionView(store: store, shouldFlash: store.shouldFlashModelSection)
// Only show language picker for WhisperKit models (not Parakeet)
if ParakeetModel(rawValue: store.hexSettings.selectedModel) == nil {
LanguageSectionView(store: store)
}
HotKeySectionView(store: store)
if microphonePermission == .granted {
MicrophoneSelectionSectionView(store: store)
}
SoundSectionView(store: store)
GeneralSectionView(store: store)
HistorySectionView(store: store)
}
.formStyle(.grouped)
.task {
await store.send(.task).finish()
}
.enableInjection()
}
}
// MARK: - Shared Styles
extension Text {
/// Applies caption font with secondary color, commonly used for helper/description text in settings.
func settingsCaption() -> some View {
self.font(.caption).foregroundStyle(.secondary)
}
}