Use lowercase puter branding
This commit is contained in:
@@ -83,7 +83,7 @@ struct SettingsView: View {
|
||||
var body: some View {
|
||||
@Bindable var monitor = monitor
|
||||
VStack(spacing: 0) {
|
||||
PageHeader(title: "Settings", subtitle: "Customize Puter")
|
||||
PageHeader(title: "Settings", subtitle: "Customize puter")
|
||||
Form {
|
||||
Section("General") {
|
||||
Picker("Default start page", selection: $defaultStartPage) {
|
||||
@@ -125,7 +125,7 @@ struct SettingsView: View {
|
||||
}
|
||||
|
||||
Section("About") {
|
||||
LabeledContent("Application", value: "Puter")
|
||||
LabeledContent("Application", value: "puter")
|
||||
LabeledContent("Version", value: appVersion)
|
||||
LabeledContent("Framework", value: "Native SwiftUI")
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import AppKit
|
||||
import SwiftUI
|
||||
|
||||
extension Notification.Name {
|
||||
static let runNewTask = Notification.Name("Puter.runNewTask")
|
||||
static let runNewTask = Notification.Name("puter.runNewTask")
|
||||
}
|
||||
|
||||
struct ContentView: View {
|
||||
@@ -70,14 +70,14 @@ struct ContentView: View {
|
||||
TaskToolbarContent(showingNewTask: $showingNewTask)
|
||||
}
|
||||
}
|
||||
.navigationTitle("Puter")
|
||||
.navigationTitle("puter")
|
||||
.animation(.snappy(duration: 0.22), value: sidebarCompact)
|
||||
.onChange(of: selection) { _, _ in searchText = "" }
|
||||
.onReceive(NotificationCenter.default.publisher(for: .runNewTask)) { _ in showingNewTask = true }
|
||||
.sheet(isPresented: $showingNewTask) {
|
||||
NewTaskView(isPresented: $showingNewTask)
|
||||
}
|
||||
.alert("Puter", isPresented: Binding(
|
||||
.alert("puter", isPresented: Binding(
|
||||
get: { monitor.errorMessage != nil },
|
||||
set: { if !$0 { monitor.errorMessage = nil } }
|
||||
)) {
|
||||
@@ -294,7 +294,7 @@ struct HardwareView: View {
|
||||
metric("Control backend", FanControlService.isAvailable ? "Ready" : "Unavailable")
|
||||
Spacer()
|
||||
}
|
||||
Text("Puter reads fan sensors directly through the Mac's SMC interface. Manual targets are clamped to each fan's reported safe range; Automatic returns control to macOS.")
|
||||
Text("puter reads fan sensors directly through the Mac's SMC interface. Manual targets are clamped to each fan's reported safe range; Automatic returns control to macOS.")
|
||||
.font(.caption).foregroundStyle(.secondary)
|
||||
HStack {
|
||||
Button("Apply targets", systemImage: "speedometer") {
|
||||
@@ -126,7 +126,7 @@ enum ProcessDiagnosticReporter {
|
||||
|
||||
let panel = NSSavePanel()
|
||||
panel.title = "Create diagnostic report"
|
||||
panel.message = "Puter will sample \(process.displayName) for \(duration) seconds and save a text report."
|
||||
panel.message = "puter will sample \(process.displayName) for \(duration) seconds and save a text report."
|
||||
panel.prompt = "Create Report"
|
||||
panel.nameFieldStringValue = safeFilename("\(process.displayName)-\(process.pid)-sample.txt")
|
||||
panel.allowedContentTypes = [.plainText]
|
||||
@@ -6,7 +6,7 @@ struct PuterApp: App {
|
||||
@AppStorage("sidebarCompact") private var sidebarCompact = false
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup("Puter") {
|
||||
WindowGroup("puter") {
|
||||
ContentView()
|
||||
.environment(monitor)
|
||||
.frame(minWidth: 820, minHeight: 560)
|
||||
@@ -66,7 +66,7 @@ struct AppHistoryView: View {
|
||||
Button("Cancel", role: .cancel) {}
|
||||
Button("Reset", role: .destructive) { monitor.resetAppHistory() }
|
||||
} message: {
|
||||
Text("CPU time and network totals collected by Puter will be permanently cleared.")
|
||||
Text("CPU time and network totals collected by puter will be permanently cleared.")
|
||||
}
|
||||
.sheet(item: $inspectedUsage) { AppUsagePropertiesView(usage: $0) }
|
||||
}
|
||||
@@ -147,7 +147,7 @@ final class SystemMonitor {
|
||||
|
||||
func terminate(_ process: ProcessRecord, force: Bool = false) {
|
||||
guard process.pid != getpid() else {
|
||||
errorMessage = "Puter cannot end itself."
|
||||
errorMessage = "puter cannot end itself."
|
||||
return
|
||||
}
|
||||
let signal = force ? SIGKILL : SIGTERM
|
||||
@@ -170,7 +170,7 @@ final class SystemMonitor {
|
||||
|
||||
func terminateGroup(_ group: [ProcessRecord]) {
|
||||
guard !group.contains(where: { $0.pid == getpid() }) else {
|
||||
errorMessage = "Puter cannot end an application group that contains itself."
|
||||
errorMessage = "puter cannot end an application group that contains itself."
|
||||
return
|
||||
}
|
||||
let pids = Set(group.map(\.pid))
|
||||
@@ -188,7 +188,7 @@ final class SystemMonitor {
|
||||
|
||||
func sendSignal(_ signal: Int32, to process: ProcessRecord, successMessage: String? = nil) {
|
||||
guard process.pid != getpid() else {
|
||||
errorMessage = "Puter cannot control itself."
|
||||
errorMessage = "puter cannot control itself."
|
||||
return
|
||||
}
|
||||
if kill(process.pid, signal) != 0 {
|
||||
@@ -415,7 +415,7 @@ private enum AppHistoryPersistence {
|
||||
}
|
||||
|
||||
static let directory = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask)[0]
|
||||
.appendingPathComponent("MacTaskManager", isDirectory: true)
|
||||
.appendingPathComponent("puter", isDirectory: true)
|
||||
static let url = directory.appendingPathComponent("app-history.json")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user