Skip to content

Commit 124b015

Browse files
committed
fix: square pause window, larger text and icons
1 parent 6d8703b commit 124b015

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

Tome/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
173173
@objc func openPause() {
174174
if pauseWindow == nil {
175175
let view = PauseView().environmentObject(appState)
176-
let window = makeWindow(title: "Pause", content: view, size: NSSize(width: 408, height: 468))
176+
let window = makeWindow(title: "Pause", content: view, size: NSSize(width: 408, height: 408))
177177
window.styleMask = [.titled, .closable]
178178
pauseWindow = window
179179
let delegate = WindowCloseDelegate { [weak self] in self?.pauseWindow = nil }

Tome/Views/PauseView.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct PauseView: View {
2323
content
2424
}
2525
.padding(28)
26-
.frame(width: 408, height: 468)
26+
.frame(width: 408, height: 408)
2727
}
2828

2929
@ViewBuilder
@@ -44,17 +44,17 @@ struct PauseView: View {
4444
private var idleView: some View {
4545
VStack(spacing: 10) {
4646
Image(systemName: "pause.circle")
47-
.font(.system(size: 28))
47+
.font(.system(size: 40))
4848
.foregroundColor(.secondary)
4949
Text("Pause")
50-
.font(.headline).fontWeight(.semibold)
50+
.font(.title2).fontWeight(.semibold)
5151
VStack(spacing: 2) {
5252
Text("Type \"pause\" to pause Tome after a 5-minute wait.")
53-
.font(.caption)
53+
.font(.callout)
5454
.foregroundColor(.secondary)
5555
.multilineTextAlignment(.center)
5656
Text("Type \"urgent\" to pause Tome immediately.")
57-
.font(.caption)
57+
.font(.callout)
5858
.foregroundColor(.secondary)
5959
.multilineTextAlignment(.center)
6060
}
@@ -74,15 +74,15 @@ struct PauseView: View {
7474
let remaining = pauseManager.countdownSecondsRemaining
7575
return VStack(spacing: 10) {
7676
Image(systemName: "timer")
77-
.font(.system(size: 28))
77+
.font(.system(size: 40))
7878
.foregroundColor(.orange)
7979
Text("Pause requested")
80-
.font(.headline).fontWeight(.semibold)
80+
.font(.title2).fontWeight(.semibold)
8181
Text(String(format: "%d:%02d", remaining / 60, remaining % 60))
8282
.font(.system(size: 32, weight: .thin, design: .monospaced))
8383
.foregroundColor(.orange)
8484
Text("Confirm your pause when the timer reaches zero.")
85-
.font(.caption)
85+
.font(.callout)
8686
.foregroundColor(.secondary)
8787
.multilineTextAlignment(.center)
8888
Button("Cancel") { pauseManager.cancelPauseRequest() }
@@ -92,13 +92,13 @@ struct PauseView: View {
9292
private var confirmView: some View {
9393
VStack(spacing: 10) {
9494
Image(systemName: "pause.circle.fill")
95-
.font(.system(size: 28))
95+
.font(.system(size: 40))
9696
.foregroundColor(.orange)
9797
Text("Take a break?")
98-
.font(.headline).fontWeight(.semibold)
98+
.font(.title2).fontWeight(.semibold)
9999
VStack(spacing: 4) {
100100
Text("\(Int(breakMinutes)) minute\(Int(breakMinutes) == 1 ? "" : "s")")
101-
.font(.subheadline)
101+
.font(.body)
102102
Slider(value: $breakMinutes, in: 1...15, step: 1)
103103
.frame(width: 130)
104104
HStack {
@@ -124,15 +124,15 @@ struct PauseView: View {
124124
let remaining = pauseManager.breakSecondsRemaining
125125
return VStack(spacing: 10) {
126126
Image(systemName: "pause.circle.fill")
127-
.font(.system(size: 28))
127+
.font(.system(size: 40))
128128
.foregroundColor(.green)
129129
Text("Paused")
130-
.font(.headline).fontWeight(.semibold)
130+
.font(.title2).fontWeight(.semibold)
131131
Text(String(format: "%d:%02d", remaining / 60, remaining % 60))
132132
.font(.system(size: 32, weight: .thin, design: .monospaced))
133133
.foregroundColor(.green)
134134
Text("Tome will resume automatically after your pause finishes.")
135-
.font(.caption)
135+
.font(.callout)
136136
.foregroundColor(.secondary)
137137
.multilineTextAlignment(.center)
138138
Button("End pause early") {

0 commit comments

Comments
 (0)