-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
225 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// UpdateWindow.swift | ||
// SrunBar | ||
// | ||
// Created by vouv on 2021/1/1. | ||
// Copyright © 2021 Vouv. All rights reserved. | ||
// | ||
|
||
import Cocoa | ||
|
||
class UpdateWindow: NSWindowController, NSWindowDelegate { | ||
|
||
@IBOutlet weak var progressBar: NSProgressIndicator! | ||
|
||
override var windowNibName : String! { "UpdateWindow" } | ||
|
||
override func windowDidLoad() { | ||
super.windowDidLoad() | ||
self.window?.center() | ||
self.window?.makeKeyAndOrderFront(nil) | ||
NSApp.activate(ignoringOtherApps: true) | ||
self.progressBar.startAnimation(nil) | ||
} | ||
|
||
func windowWillClose(_ notification: Notification) { | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="17701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct"> | ||
<dependencies> | ||
<deployment identifier="macosx"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17701"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<objects> | ||
<customObject id="-2" userLabel="File's Owner" customClass="UpdateWindow" customModule="SrunBar" customModuleProvider="target"> | ||
<connections> | ||
<outlet property="progressBar" destination="QFg-b5-cbZ" id="meh-y8-6W4"/> | ||
<outlet property="window" destination="QvC-M9-y7g" id="c9W-pm-b1G"/> | ||
</connections> | ||
</customObject> | ||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> | ||
<customObject id="-3" userLabel="Application" customClass="NSObject"/> | ||
<window title="正在检查更新" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g"> | ||
<windowStyleMask key="styleMask" titled="YES" closable="YES"/> | ||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/> | ||
<rect key="contentRect" x="196" y="240" width="410" height="118"/> | ||
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="900"/> | ||
<view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ"> | ||
<rect key="frame" x="0.0" y="0.0" width="410" height="118"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
<subviews> | ||
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="mrg-bD-8Op"> | ||
<rect key="frame" x="20" y="50" width="48" height="18"/> | ||
<constraints> | ||
<constraint firstAttribute="width" constant="48" id="95e-2g-hwA"/> | ||
<constraint firstAttribute="height" constant="18" id="XRi-HE-LBe"/> | ||
</constraints> | ||
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="statusIcon" id="li7-om-MnZ"/> | ||
</imageView> | ||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="afR-TM-FhD"> | ||
<rect key="frame" x="163" y="91" width="4" height="16"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<textFieldCell key="cell" lineBreakMode="clipping" id="sSX-M7-QYg"> | ||
<font key="font" metaFont="system"/> | ||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> | ||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> | ||
</textFieldCell> | ||
</textField> | ||
<progressIndicator fixedFrame="YES" maxValue="100" indeterminate="YES" style="bar" translatesAutoresizingMaskIntoConstraints="NO" id="QFg-b5-cbZ"> | ||
<rect key="frame" x="81" y="49" width="248" height="20"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
</progressIndicator> | ||
</subviews> | ||
<constraints> | ||
<constraint firstItem="mrg-bD-8Op" firstAttribute="leading" secondItem="EiT-Mj-1SZ" secondAttribute="leading" constant="20" id="6ah-zp-ozW"/> | ||
<constraint firstItem="mrg-bD-8Op" firstAttribute="centerY" secondItem="EiT-Mj-1SZ" secondAttribute="centerY" id="a7L-cJ-lB8"/> | ||
</constraints> | ||
</view> | ||
<connections> | ||
<outlet property="delegate" destination="-2" id="w7b-gh-yV4"/> | ||
</connections> | ||
<point key="canvasLocation" x="-58" y="138"/> | ||
</window> | ||
</objects> | ||
<resources> | ||
<image name="statusIcon" width="27" height="27"/> | ||
</resources> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.