chore(macos): align mic level bar width
This commit is contained in:
@@ -304,6 +304,7 @@ struct VoiceWakeSettings: View {
|
|||||||
@State private var showForwardAdvanced = false
|
@State private var showForwardAdvanced = false
|
||||||
@State private var forwardStatus: ForwardStatus = .idle
|
@State private var forwardStatus: ForwardStatus = .idle
|
||||||
private let fieldLabelWidth: CGFloat = 110
|
private let fieldLabelWidth: CGFloat = 110
|
||||||
|
private let controlWidth: CGFloat = 300
|
||||||
|
|
||||||
private var voiceWakeBinding: Binding<Bool> {
|
private var voiceWakeBinding: Binding<Bool> {
|
||||||
Binding(
|
Binding(
|
||||||
@@ -576,7 +577,7 @@ struct VoiceWakeSettings: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.labelsHidden()
|
.labelsHidden()
|
||||||
.frame(width: 260)
|
.frame(width: self.controlWidth)
|
||||||
}
|
}
|
||||||
if self.loadingMics {
|
if self.loadingMics {
|
||||||
ProgressView().controlSize(.small)
|
ProgressView().controlSize(.small)
|
||||||
@@ -597,7 +598,7 @@ struct VoiceWakeSettings: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.labelsHidden()
|
.labelsHidden()
|
||||||
.frame(width: 260)
|
.frame(width: self.controlWidth)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !self.state.voiceWakeAdditionalLocaleIDs.isEmpty {
|
if !self.state.voiceWakeAdditionalLocaleIDs.isEmpty {
|
||||||
@@ -727,7 +728,7 @@ struct VoiceWakeSettings: View {
|
|||||||
.font(.callout.weight(.semibold))
|
.font(.callout.weight(.semibold))
|
||||||
.frame(width: self.fieldLabelWidth, alignment: .leading)
|
.frame(width: self.fieldLabelWidth, alignment: .leading)
|
||||||
MicLevelBar(level: self.meterLevel)
|
MicLevelBar(level: self.meterLevel)
|
||||||
.frame(width: 260, alignment: .leading)
|
.frame(width: self.controlWidth, alignment: .leading)
|
||||||
Text(self.levelLabel)
|
Text(self.levelLabel)
|
||||||
.font(.callout.monospacedDigit())
|
.font(.callout.monospacedDigit())
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
|
|||||||
Reference in New Issue
Block a user