-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'disable_app_drag_lag' of https://github.com/phlpsong/Ea…
…sydict into disable_app_drag_lag
- Loading branch information
Showing
5 changed files
with
70 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// AdvancedTab.swift | ||
// Easydict | ||
// | ||
// Created by tisfeng on 2024/1/23. | ||
// Copyright © 2024 izual. All rights reserved. | ||
// | ||
|
||
import Defaults | ||
import SwiftUI | ||
|
||
@available(macOS 13, *) | ||
struct AdvancedTab: View { | ||
var body: some View { | ||
Form { | ||
Section { | ||
Picker("setting.general.advance.default_tts_service", selection: $defaultTTSServiceType) { | ||
ForEach(TTSServiceType.allCases, id: \.rawValue) { option in | ||
Text(option.localizedStringResource) | ||
.tag(option) | ||
} | ||
} | ||
Toggle("setting.general.advance.enable_beta_feature", isOn: $enableBetaFeature) | ||
Toggle(isOn: $enableBetaNewApp) { | ||
Text("enable_beta_new_app") | ||
} | ||
} header: { | ||
Text("setting.general.advance.header") | ||
} | ||
} | ||
.formStyle(.grouped) | ||
} | ||
|
||
@Default(.defaultTTSServiceType) private var defaultTTSServiceType | ||
@Default(.enableBetaFeature) private var enableBetaFeature | ||
@Default(.enableBetaNewApp) private var enableBetaNewApp | ||
} | ||
|
||
@available(macOS 13, *) | ||
#Preview { | ||
AdvancedTab() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters