fix(ui): move mac talk orb to corner
This commit is contained in:
@@ -4,6 +4,7 @@ struct TalkOverlayView: View {
|
|||||||
var controller: TalkOverlayController
|
var controller: TalkOverlayController
|
||||||
@State private var appState = AppStateStore.shared
|
@State private var appState = AppStateStore.shared
|
||||||
@State private var hoveringWindow = false
|
@State private var hoveringWindow = false
|
||||||
|
private static let orbCornerNudge: CGFloat = 12
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack(alignment: .topTrailing) {
|
ZStack(alignment: .topTrailing) {
|
||||||
@@ -12,8 +13,8 @@ struct TalkOverlayView: View {
|
|||||||
level: self.controller.model.level,
|
level: self.controller.model.level,
|
||||||
accent: self.seamColor)
|
accent: self.seamColor)
|
||||||
.frame(width: 96, height: 96)
|
.frame(width: 96, height: 96)
|
||||||
.padding(.top, 6 + TalkOverlayController.windowInset)
|
.padding(.top, 6 + TalkOverlayController.windowInset - Self.orbCornerNudge)
|
||||||
.padding(.trailing, 6 + TalkOverlayController.windowInset)
|
.padding(.trailing, 6 + TalkOverlayController.windowInset - Self.orbCornerNudge)
|
||||||
.contentShape(Circle())
|
.contentShape(Circle())
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
TalkModeController.shared.stopSpeaking(reason: .userTap)
|
TalkModeController.shared.stopSpeaking(reason: .userTap)
|
||||||
|
|||||||
Reference in New Issue
Block a user