fix: expand talk overlay bounds
This commit is contained in:
@@ -20,9 +20,9 @@ final class TalkOverlayController {
|
|||||||
private var window: NSPanel?
|
private var window: NSPanel?
|
||||||
private var hostingView: NSHostingView<TalkOverlayView>?
|
private var hostingView: NSHostingView<TalkOverlayView>?
|
||||||
|
|
||||||
private let width: CGFloat = 92
|
private let width: CGFloat = 120
|
||||||
private let height: CGFloat = 92
|
private let height: CGFloat = 120
|
||||||
private let padding: CGFloat = 8
|
private let padding: CGFloat = 6
|
||||||
|
|
||||||
func present() {
|
func present() {
|
||||||
self.ensureWindow()
|
self.ensureWindow()
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ struct TalkOverlayView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack(alignment: .topLeading) {
|
ZStack(alignment: .topLeading) {
|
||||||
TalkOrbView(phase: self.controller.model.phase, level: self.controller.model.level)
|
TalkOrbView(phase: self.controller.model.phase, level: self.controller.model.level)
|
||||||
.frame(width: 72, height: 72)
|
.frame(width: 80, height: 80)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
TalkModeController.shared.stopSpeaking(reason: .userTap)
|
TalkModeController.shared.stopSpeaking(reason: .userTap)
|
||||||
}
|
}
|
||||||
.padding(10)
|
.padding(16)
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
TalkModeController.shared.exitTalkMode()
|
TalkModeController.shared.exitTalkMode()
|
||||||
@@ -29,7 +29,7 @@ struct TalkOverlayView: View {
|
|||||||
.padding(4)
|
.padding(4)
|
||||||
.onHover { self.hovering = $0 }
|
.onHover { self.hovering = $0 }
|
||||||
}
|
}
|
||||||
.frame(width: 92, height: 92, alignment: .center)
|
.frame(width: 120, height: 120, alignment: .center)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user