1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-06 19:40:08 +02:00

👌 Allow resizable windows

This commit is contained in:
2024-03-16 00:32:05 +01:00
parent c6e4f785bc
commit 2bf28fe247
6 changed files with 14 additions and 11 deletions

View File

@ -3665,7 +3665,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1450;
CURRENT_PROJECT_VERSION = 1455;
DEAD_CODE_STRIPPING = YES;
DEBUG = YES;
DEVELOPMENT_TEAM = 8M54J5J787;
@ -3696,7 +3696,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1450;
CURRENT_PROJECT_VERSION = 1455;
DEAD_CODE_STRIPPING = YES;
DEBUG = NO;
DEVELOPMENT_TEAM = 8M54J5J787;
@ -3937,7 +3937,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1450;
CURRENT_PROJECT_VERSION = 1455;
DEAD_CODE_STRIPPING = YES;
DEBUG = NO;
DEVELOPMENT_TEAM = 8M54J5J787;
@ -4054,7 +4054,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1450;
CURRENT_PROJECT_VERSION = 1455;
DEAD_CODE_STRIPPING = YES;
DEBUG = YES;
DEVELOPMENT_TEAM = 8M54J5J787;
@ -4171,7 +4171,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1450;
CURRENT_PROJECT_VERSION = 1455;
DEAD_CODE_STRIPPING = YES;
DEBUG = YES;
DEVELOPMENT_TEAM = 8M54J5J787;
@ -4353,7 +4353,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1450;
CURRENT_PROJECT_VERSION = 1455;
DEAD_CODE_STRIPPING = YES;
DEBUG = NO;
DEVELOPMENT_TEAM = 8M54J5J787;

View File

@ -29,6 +29,8 @@ class PMWindowController: NSWindowController, NSWindowDelegate {
App.shared.remove(window: windowName)
}
func windowDidResize(_ notification: Notification) {}
deinit {
Log.perf("deinit: \(String(describing: self)).\(#function)")
}

View File

@ -58,7 +58,7 @@ struct PhpExtensionManagerView: View {
.searchable(text: $searchText)
}
}
.frame(width: 600, height: 600)
.frame(minWidth: 600, minHeight: 600)
.onAppear {
Task {
await delay(seconds: 1)

View File

@ -1,5 +1,5 @@
//
// PhpVersionManagerWindowController.swift
// PhpExtensionManagerWindowController.swift
// PHP Monitor
//
// Created by Nico Verbruggen on 13/11/2023.
@ -28,7 +28,7 @@ class PhpExtensionManagerWindowController: PMWindowController {
guard let window = windowController.window else { return }
window.title = "phpextman.window.title".localized
window.styleMask = [.titled, .closable, .miniaturizable]
window.styleMask = [.titled, .closable, .miniaturizable, .resizable]
window.titlebarAppearsTransparent = false
window.delegate = delegate ?? windowController
window.contentView = NSHostingView(rootView: windowController.view)

View File

@ -136,7 +136,8 @@ struct PhpVersionManagerView: View {
.listStyle(PlainListStyle())
}
}
}.frame(width: 600, height: 600)
}
.frame(minWidth: 600, minHeight: 600)
}
// MARK: View Variables

View File

@ -30,7 +30,7 @@ class PhpVersionManagerWindowController: PMWindowController {
guard let window = windowController.window else { return }
window.title = ""
window.styleMask = [.titled, .closable, .miniaturizable]
window.styleMask = [.titled, .closable, .miniaturizable, .resizable]
window.titlebarAppearsTransparent = true
window.delegate = delegate ?? windowController
window.contentView = NSHostingView(rootView: windowController.view)