From 99558c8609429dfd31494df081820ac7df4c3d73 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 11 Sep 2022 13:21:38 +0800 Subject: [PATCH] AboutWindow, etc. // Maintenance. --- Installer/AppDelegate.swift | 1 + Installer/Resources/Base.lproj/MainMenu.xib | 4 ++-- Source/Modules/AppDelegate.swift | 1 + Source/WindowControllers/ctlAboutWindow.swift | 2 -- Source/WindowNIBs/Base.lproj/frmAboutWindow.xib | 4 ++-- UserPhraseEditor/AppDelegate.swift | 1 + UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib | 4 ++-- UserPhraseEditor/ctlAboutWindow.swift | 2 -- 8 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Installer/AppDelegate.swift b/Installer/AppDelegate.swift index f9415522..f0dc6e74 100644 --- a/Installer/AppDelegate.swift +++ b/Installer/AppDelegate.swift @@ -101,6 +101,7 @@ class AppDelegate: NSWindowController, NSApplicationDelegate { window.standardWindowButton(.closeButton)?.isHidden = true window.standardWindowButton(.miniaturizeButton)?.isHidden = true window.standardWindowButton(.zoomButton)?.isHidden = true + window.titlebarAppearsTransparent = true if FileManager.default.fileExists( atPath: kTargetPartialPath) diff --git a/Installer/Resources/Base.lproj/MainMenu.xib b/Installer/Resources/Base.lproj/MainMenu.xib index f695105e..ba9f1014 100644 --- a/Installer/Resources/Base.lproj/MainMenu.xib +++ b/Installer/Resources/Base.lproj/MainMenu.xib @@ -198,7 +198,7 @@ DQ - + @@ -220,7 +220,7 @@ DQ - + DISCLAIMER: The vChewing project, having no relationship of cooperation or affiliation with the OpenVanilla project, is not responsible for the phrase database shipped in the original McBopomofo project. Certain geopolitical and ideological contents, which are potentially harmful to the global spread of this software, are not included in vChewing official phrase database. diff --git a/Source/Modules/AppDelegate.swift b/Source/Modules/AppDelegate.swift index 154c0fa9..50a27f92 100644 --- a/Source/Modules/AppDelegate.swift +++ b/Source/Modules/AppDelegate.swift @@ -99,6 +99,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele ctlAboutWindowInstance?.window?.center() ctlAboutWindowInstance?.window?.orderFrontRegardless() // 逼著關於視窗往最前方顯示 ctlAboutWindowInstance?.window?.level = .statusBar + ctlAboutWindowInstance?.window?.titlebarAppearsTransparent = true NSApp.setActivationPolicy(.accessory) } diff --git a/Source/WindowControllers/ctlAboutWindow.swift b/Source/WindowControllers/ctlAboutWindow.swift index 78a445aa..8d043b06 100644 --- a/Source/WindowControllers/ctlAboutWindow.swift +++ b/Source/WindowControllers/ctlAboutWindow.swift @@ -1,5 +1,3 @@ -// (c) 2011 and onwards The OpenVanilla Project (MIT License). -// All possible vChewing-specific modifications are of: // (c) 2021 and onwards The vChewing Project (MIT-NTL License). // ==================== // This code is released under the MIT license (SPDX-License-Identifier: MIT) diff --git a/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib b/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib index fa0e959e..a531c46a 100644 --- a/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib +++ b/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib @@ -55,7 +55,7 @@ - + @@ -77,7 +77,7 @@ - + DISCLAIMER: The vChewing project, having no relationship of cooperation or affiliation with the OpenVanilla project, is not responsible for the phrase database shipped in the original McBopomofo project. Certain geopolitical and ideological contents, which are potentially harmful to the global spread of this software, are not included in vChewing official phrase database. diff --git a/UserPhraseEditor/AppDelegate.swift b/UserPhraseEditor/AppDelegate.swift index f023f836..d471b5b8 100644 --- a/UserPhraseEditor/AppDelegate.swift +++ b/UserPhraseEditor/AppDelegate.swift @@ -32,6 +32,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { ctlAboutWindowInstance?.window?.center() ctlAboutWindowInstance?.window?.orderFrontRegardless() // 逼著關於視窗往最前方顯示 ctlAboutWindowInstance?.window?.level = .statusBar + ctlAboutWindowInstance?.window?.titlebarAppearsTransparent = true } // Call the New About Window diff --git a/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib b/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib index 48d3f54f..91fc6999 100644 --- a/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib +++ b/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib @@ -55,7 +55,7 @@ - + vChewing Phrase Editor developed by Shiki Suen. vChewing Phrase Database Maintained by Shiki Suen. @@ -79,7 +79,7 @@ vChewing Phrase Database Maintained by Shiki Suen. - + DISCLAIMER: The vChewing project, having no relationship of cooperation or affiliation with the OpenVanilla project, is not responsible for the phrase database shipped in the original McBopomofo project. Certain geopolitical and ideological contents, which are potentially harmful to the global spread of this software, are not included in vChewing official phrase database. diff --git a/UserPhraseEditor/ctlAboutWindow.swift b/UserPhraseEditor/ctlAboutWindow.swift index 0d520a1f..9f6ed90e 100644 --- a/UserPhraseEditor/ctlAboutWindow.swift +++ b/UserPhraseEditor/ctlAboutWindow.swift @@ -1,5 +1,3 @@ -// (c) 2011 and onwards The OpenVanilla Project (MIT License). -// All possible vChewing-specific modifications are of: // (c) 2021 and onwards The vChewing Project (MIT-NTL License). // ==================== // This code is released under the MIT license (SPDX-License-Identifier: MIT)