Skip to content

Commit

Permalink
Update about view
Browse files Browse the repository at this point in the history
  • Loading branch information
phucledien committed Mar 26, 2020
1 parent ec4af72 commit 64baffb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions Micro Sniff/Micro Sniff/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {

LauncherManager.shared.setupMainApp(isAutoStart: Preference.startAtLogin)

registerDefaultValues()

Util.toggleDockIcon(Preference.dockIconState)

if Preference.showPreferencesOnlaunch {
Expand All @@ -27,6 +29,14 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func applicationWillTerminate(_ aNotification: Notification) {

}

func registerDefaultValues() {
UserDefaults.standard.register(defaults: [
UserDefaults.Key.dockIconState: DockIconState.hide.rawValue,
UserDefaults.Key.startAtLogin: false,
UserDefaults.Key.showPreferencesOnLaunch: true
])
}


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="AboutPreferenceViewController" customModule="MicMonitor" customModuleProvider="target">
<customObject id="-2" userLabel="File's Owner" customClass="AboutPreferenceViewController" customModule="Micro_Sniff" customModuleProvider="target">
<connections>
<outlet property="lblVersion" destination="bDY-6Y-ceg" id="HM4-Fy-mFd"/>
<outlet property="view" destination="pYi-Q9-w6v" id="tGi-vy-2AJ"/>
Expand Down Expand Up @@ -82,7 +82,7 @@
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="ico_compass" id="X3S-62-WQx"/>
</imageView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="0qR-hm-Vg0" customClass="HyperlinkTextField" customModule="MicMonitor" customModuleProvider="target">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="0qR-hm-Vg0" customClass="HyperlinkTextField" customModule="Micro_Sniff" customModuleProvider="target">
<rect key="frame" x="28" y="0.0" width="131" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="Know more about us" id="Qn5-TI-1PJ">
<font key="font" metaFont="systemMedium" size="13"/>
Expand Down Expand Up @@ -114,7 +114,7 @@
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="ico_twitter" id="rrQ-PI-ht9"/>
</imageView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="4vn-ww-rfy" customClass="HyperlinkTextField" customModule="MicMonitor" customModuleProvider="target">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="4vn-ww-rfy" customClass="HyperlinkTextField" customModule="Micro_Sniff" customModuleProvider="target">
<rect key="frame" x="28" y="0.0" width="128" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="Follow us on Twitter" id="buj-pn-TOt">
<font key="font" metaFont="systemMedium" size="13"/>
Expand Down Expand Up @@ -146,15 +146,15 @@
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="ico_github" id="aXT-sL-QXu"/>
</imageView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Bak-zf-taJ" customClass="HyperlinkTextField" customModule="MicMonitor" customModuleProvider="target">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Bak-zf-taJ" customClass="HyperlinkTextField" customModule="Micro_Sniff" customModuleProvider="target">
<rect key="frame" x="28" y="0.0" width="182" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="This app is fully open source" id="iT7-kk-9G1">
<font key="font" metaFont="systemMedium" size="13"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="href" value="https://github.com/dwarvesf/MicMonitor"/>
<userDefinedRuntimeAttribute type="string" keyPath="href" value="https://github.com/dwarvesf/Micro-Sniff"/>
</userDefinedRuntimeAttributes>
</textField>
</subviews>
Expand All @@ -178,7 +178,7 @@
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="ico_email" id="u8O-Nd-uuB"/>
</imageView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="BiI-Wf-wiY" customClass="HyperlinkTextField" customModule="MicMonitor" customModuleProvider="target">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="BiI-Wf-wiY" customClass="HyperlinkTextField" customModule="Micro_Sniff" customModuleProvider="target">
<rect key="frame" x="28" y="0.0" width="56" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="Email us" id="g1L-5E-iF0">
<font key="font" metaFont="systemMedium" size="13"/>
Expand Down

0 comments on commit 64baffb

Please sign in to comment.