mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-29 08:04:34 +00:00
Enlarge Mac UI density for readable desktop layouts.
Bump typography, controls, path-map nodes, and window size so macOS no longer feels phone-scaled. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
b6fa222659
commit
cc4415a8a6
6 changed files with 376 additions and 98 deletions
|
|
@ -8,6 +8,10 @@ struct MaturitaApp: App {
|
|||
WindowGroup {
|
||||
NativeRoot(vm: vm)
|
||||
}
|
||||
#if os(macOS)
|
||||
.defaultSize(width: 1280, height: 840)
|
||||
.windowResizability(.contentMinSize)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -25,6 +29,9 @@ struct NativeRoot: View {
|
|||
.tint(vm.palette.tint)
|
||||
.preferredColorScheme(vm.mode == .dark ? .dark : .light)
|
||||
.onAppear { vm.checkUpdate(false) }
|
||||
#if os(macOS)
|
||||
.frame(minWidth: 980, minHeight: 640)
|
||||
#endif
|
||||
}
|
||||
|
||||
private var showsUpdateAccessory: Bool {
|
||||
|
|
@ -68,11 +75,18 @@ private struct UpdateAccessory: View {
|
|||
var body: some View {
|
||||
HStack {
|
||||
Text(bannerText)
|
||||
#if os(macOS)
|
||||
.font(.body)
|
||||
#else
|
||||
.font(.subheadline)
|
||||
#endif
|
||||
Spacer()
|
||||
if vm.update.canInstall {
|
||||
Button(vm.tr("update_install")) { vm.installUpdate() }
|
||||
.buttonStyle(.borderedProminent)
|
||||
#if os(macOS)
|
||||
.controlSize(.large)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue