feat: show about item in menubar menu (closes #574)
This commit is contained in:
1 parent
2a2368d67b
commit
78d1d8f6fd
25 files changed
+149
-3
No files matched your search
@@ -1,6 +1,9 @@
|
||||
/* No comment provided by engineer. */
|
||||
"About" = "About";
|
||||
|
||||
/* Menubar option. %@ is AltTab */
|
||||
"About %@" = "About %@";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Accessibility" = "Accessibility";
|
||||
|
||||
@@ -142,6 +145,9 @@
|
||||
/* No comment provided by engineer. */
|
||||
"Hide status icons:" = "Hide status icons:";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Hide/Show app" = "Hide/Show app";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "حول";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Accessibility";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Hide status icons:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "إخفاء/إظهار برنامج";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Über";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Bedienungshilfe";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Statussymbole verbergen:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "App aus-/einblenden";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "About";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Accessibility";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Hide status icons:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Hide/Show app";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Acerca de";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Accessibility";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Hide status icons:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Ocultar/Mostrar aplicación";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Tietoja";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Helppokäyttöisyys";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Piilota statusikonit:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Piilota/näytä ohjelma";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "À propos";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "À Propos de %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Accessibilité";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Masquer les icônes de statut :";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Cacher les miniatures des fenêtres :";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Masquer/Afficher l’App";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Az App-ról";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Kisegítő lehetőségek";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Státusz ikonok elrejtése:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Applikáció elrejtése/megjelenítése";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Tentang";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Aksesibilitas";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Sembunyikan status ikon:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Tampilkan/Sembunyikan app";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Introduzione";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Accessibility";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Hide status icons:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Nascondi / Mostra app";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "詳細";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "アクセシビリティ";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "メニューバーにアイコンを表示しない:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "アプリケーションを隠す / 表示";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "정보";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "손쉬운 사용";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "상태 아이콘 숨기기:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "앱 숨기기/보이기";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Iwwer";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Accessibility";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Hide status icons:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Hide/Show app";
|
||||
|
||||
@@ -195,7 +201,7 @@
|
||||
"NSHumanReadableCopyright" = "GPL-3.0 Lizenz";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Only if the window is fullscreen" = "Nëmme wann d'Fënster am Vollbild ass";
|
||||
"Only if the window is fullscreen" = "Nëmme wann d’Fënster am Vollbild ass";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Open Accessibility Preferences…" = "Open Accessibility Preferences…";
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Over";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Toegankelijkheid";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Verberg statusiconen:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Verberg/Toon programma";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Om";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Tilgjengelighet";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Skjul statusikoner:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Skjul/vis app";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "O aplikacji";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Dostępość";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Hide status icons:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Pokaż/ukryj aplikacje";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Sobre";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Acessibilidade";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Ocultar ícone de status:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Oculta/Exibe a aplicação";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Informações";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Acessibilidade";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Esconder ícones de estado:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Esconder/Mostrar aplicação";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "О программе";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Универсальный доступ";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Скрыть иконки состояния:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Скрыть/Показать приложение";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "Hakkında";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "Accessibility";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "Hide status icons:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "Uygulamayı gizle / göster";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "关于";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "辅助功能";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "隐藏状态图标:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "隐藏/显示应用";
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"About" = "關於";
|
||||
|
||||
/*Menubar option. %@ is AltTab*/
|
||||
"About %@" = "About %@";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Accessibility" = "無障礙";
|
||||
|
||||
@@ -143,6 +146,9 @@
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide status icons:" = "隱藏狀態圖示:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide window thumbnails:" = "Hide window thumbnails:";
|
||||
|
||||
/*No comment provided by engineer.*/
|
||||
"Hide/Show app" = "隱藏/顯示程式";
|
||||
|
||||
|
||||
+6
-1
@@ -163,7 +163,12 @@ class App: AppCenterApplication, NSApplicationDelegate {
|
||||
|
||||
@objc func showUi() {
|
||||
appIsBeingUsed = true
|
||||
DispatchQueue.main.async { () -> () in self.showUiOrCycleSelection(0) }
|
||||
showUiOrCycleSelection(0)
|
||||
}
|
||||
|
||||
@objc func showAboutTab() {
|
||||
preferencesWindow.selectTab("about")
|
||||
showPreferencesWindow()
|
||||
}
|
||||
|
||||
func cycleSelection(_ direction: Direction) {
|
||||
|
||||
@@ -6,6 +6,11 @@ class Menubar {
|
||||
static func initialize() {
|
||||
statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.squareLength)
|
||||
statusItem.menu = NSMenu()
|
||||
statusItem.menu!.addItem(
|
||||
withTitle: String(format: NSLocalizedString("About %@", comment: "Menubar option. %@ is AltTab"), App.name),
|
||||
action: #selector(App.app.showAboutTab),
|
||||
keyEquivalent: "")
|
||||
statusItem.menu!.addItem(NSMenuItem.separator())
|
||||
statusItem.menu!.addItem(
|
||||
withTitle: NSLocalizedString("Show", comment: "Menubar option"),
|
||||
action: #selector(App.app.showUi),
|
||||
|
||||
@@ -46,7 +46,11 @@ class PreferencesWindow: NSWindow, NSToolbarDelegate {
|
||||
Array(toolbarItems.values).forEach {
|
||||
$0.2.fit(largestTabWidth, $0.2.subviews[0].fittingSize.height)
|
||||
}
|
||||
toolbar!.selectedItemIdentifier = Array(toolbarItems).first { (k, v) in v.0 == 0 }!.key
|
||||
selectTab("general")
|
||||
}
|
||||
|
||||
func selectTab(_ id: String) {
|
||||
toolbar!.selectedItemIdentifier = NSToolbarItem.Identifier(rawValue: id)
|
||||
tabItemClicked(toolbarItems[toolbar!.selectedItemIdentifier!]!.1)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user