refactor(settings): 改用常规关于选项卡并统一蓝色强调色
This commit is contained in:
@@ -11,6 +11,7 @@ struct IntervalControl: View {
|
||||
var body: some View {
|
||||
HStack(spacing: 3) {
|
||||
TextField("sampling.seconds", text: $text)
|
||||
.labelsHidden()
|
||||
.textFieldStyle(.roundedBorder).multilineTextAlignment(.trailing)
|
||||
.frame(width: 64).focused($focused)
|
||||
.onChange(of: text) { _, value in
|
||||
@@ -21,7 +22,10 @@ struct IntervalControl: View {
|
||||
}
|
||||
.onSubmit { commit() }
|
||||
Text("sampling.unit").foregroundStyle(.secondary).fixedSize()
|
||||
Stepper("sampling.interval", value: $milliseconds, in: range, step: step).labelsHidden().fixedSize()
|
||||
Stepper("sampling.interval", value: Binding(get: { milliseconds }, set: {
|
||||
milliseconds = $0
|
||||
synchronize()
|
||||
}), in: range, step: step).labelsHidden().fixedSize()
|
||||
}
|
||||
.font(.system(size: 11)).monospacedDigit().controlSize(.small)
|
||||
.fixedSize(horizontal: true, vertical: false)
|
||||
|
||||
Reference in New Issue
Block a user