1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 20:10:08 +02:00

♻️ Reorganize menu

This commit is contained in:
2021-12-03 21:50:32 +01:00
parent f8b0b38e9e
commit ad016c54b2
3 changed files with 12 additions and 8 deletions

View File

@ -549,13 +549,13 @@ Gw
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<scrollView autohidesScrollers="YES" horizontalLineScroll="69" horizontalPageScroll="10" verticalLineScroll="69" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p0j-eB-I2i"> <scrollView autohidesScrollers="YES" horizontalLineScroll="69" horizontalPageScroll="10" verticalLineScroll="69" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p0j-eB-I2i">
<rect key="frame" x="0.0" y="0.0" width="574" height="151"/> <rect key="frame" x="0.0" y="0.0" width="574" height="149"/>
<clipView key="contentView" id="6IL-DW-37w"> <clipView key="contentView" id="6IL-DW-37w">
<rect key="frame" x="1" y="1" width="572" height="149"/> <rect key="frame" x="1" y="1" width="572" height="147"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="69" rowSizeStyle="automatic" viewBased="YES" id="cp3-34-pQj"> <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="69" rowSizeStyle="automatic" viewBased="YES" id="cp3-34-pQj">
<rect key="frame" x="0.0" y="0.0" width="572" height="149"/> <rect key="frame" x="0.0" y="0.0" width="572" height="147"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="17" height="0.0"/> <size key="intercellSpacing" width="17" height="0.0"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@ -661,7 +661,7 @@ Gw
</scroller> </scroller>
</scrollView> </scrollView>
<textField focusRingType="none" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p3I-BT-dOY"> <textField focusRingType="none" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p3I-BT-dOY">
<rect key="frame" x="37" y="161" width="531" height="23"/> <rect key="frame" x="37" y="159" width="531" height="23"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" focusRingType="none" placeholderString="Search for a domain..." usesSingleLineMode="YES" id="Hgd-Oz-Ggp"> <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" focusRingType="none" placeholderString="Search for a domain..." usesSingleLineMode="YES" id="Hgd-Oz-Ggp">
<font key="font" metaFont="system" size="19"/> <font key="font" metaFont="system" size="19"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@ -672,7 +672,7 @@ Gw
</connections> </connections>
</textField> </textField>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Z1T-9h-9ms"> <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Z1T-9h-9ms">
<rect key="frame" x="10" y="163" width="24" height="20"/> <rect key="frame" x="10" y="161" width="24" height="20"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="20" id="dge-tM-IOH"/> <constraint firstAttribute="height" constant="20" id="dge-tM-IOH"/>
<constraint firstAttribute="width" constant="24" id="gHC-jb-3kU"/> <constraint firstAttribute="width" constant="24" id="gHC-jb-3kU"/>

View File

@ -112,12 +112,15 @@ class MainMenu: NSObject, NSWindowDelegate, NSMenuDelegate {
menu.addPhpActionMenuItems() menu.addPhpActionMenuItems()
menu.addItem(NSMenuItem.separator()) menu.addItem(NSMenuItem.separator())
// Add Valet interactions
menu.addItem(HeaderView.asMenuItem(text: "mi_valet".localized))
menu.addItem(NSMenuItem(title: "mi_sitelist".localized, action: #selector(openSiteList), keyEquivalent: "l"))
menu.addItem(NSMenuItem.separator())
// Add information about services & actions // Add information about services & actions
menu.addPhpConfigurationMenuItems() menu.addPhpConfigurationMenuItems()
menu.addItem(NSMenuItem.separator()) menu.addItem(NSMenuItem.separator())
menu.addItem(NSMenuItem(title: "mi_sitelist".localized, action: #selector(openSiteList), keyEquivalent: "l"))
// Add about & quit menu items // Add about & quit menu items
menu.addItem(NSMenuItem(title: "mi_preferences".localized, action: #selector(openPrefs), keyEquivalent: ",")) menu.addItem(NSMenuItem(title: "mi_preferences".localized, action: #selector(openPrefs), keyEquivalent: ","))
menu.addItem(NSMenuItem(title: "mi_about".localized, action: #selector(openAbout), keyEquivalent: "")) menu.addItem(NSMenuItem(title: "mi_about".localized, action: #selector(openAbout), keyEquivalent: ""))

View File

@ -41,7 +41,8 @@
"mi_detected_extensions" = "Detected Extensions"; "mi_detected_extensions" = "Detected Extensions";
"mi_no_extensions_detected" = "No additional extensions detected."; "mi_no_extensions_detected" = "No additional extensions detected.";
"mi_sitelist" = "Linked & Parked Domains..."; "mi_valet" = "Laravel Valet";
"mi_sitelist" = "View linked & parked domains...";
"mi_preferences" = "Preferences..."; "mi_preferences" = "Preferences...";
"mi_quit" = "Quit PHP Monitor"; "mi_quit" = "Quit PHP Monitor";