Skip to content

Commit

Permalink
Improve homepage link
Browse files Browse the repository at this point in the history
  • Loading branch information
lhaeger committed Mar 13, 2021
1 parent 0cc233b commit b9d0d12
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AutoRaise
Binary file removed AutoRaise
Binary file not shown.
Binary file not shown.
14 changes: 11 additions & 3 deletions Launcher/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
import CoreServices
import Cocoa
import Foundation
import AppKit

class URLButton: NSButton {
override func resetCursorRects() {
super.resetCursorRects()
addCursorRect(bounds, cursor: .pointingHand)
}
}

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
Expand All @@ -33,17 +41,17 @@ class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet weak var enableWarpButton: NSButton!
// About
@IBOutlet weak var aboutText: NSTextField!
@IBOutlet weak var homePage: NSButton!
@IBOutlet weak var homePage: URLButton!

let appVersionString: String = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String
let buildNumber: String = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as! String

let appAbout = "AutoRaise\n" +
"Version 1.2, 2021-02-07\n\n" +
"Version 1.5, 2021-03-13\n\n" +
"©2021 Stefan Post, Lothar Haeger\n" +
"Icons made by https://www.flaticon.com/authors/fr"

let homePageUrl = "https://github.com/sbmpost/AutoRaise"
let homePageUrl = "https://github.com/lhaeger/AutoRaise/tree/Launcher"

let prefs = UserDefaults.standard

Expand Down
10 changes: 5 additions & 5 deletions Launcher/Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@
<rect key="frame" x="0.0" y="0.0" width="546" height="240"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<tabView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="2ZC-t0-UJb">
<tabView id="2ZC-t0-UJb">
<rect key="frame" x="13" y="10" width="520" height="224"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<font key="font" metaFont="system"/>
Expand All @@ -701,7 +701,7 @@
<action selector="autoRaiseDelay:" target="Voe-Tx-rLC" id="Whv-Tg-BGO"/>
</connections>
</slider>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="sv0-cx-SO9">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" id="sv0-cx-SO9">
<rect key="frame" x="29" y="130" width="251" height="16"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="Delay window activation for 20 ms" id="oGO-D2-O9I">
Expand All @@ -710,7 +710,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="BQn-Wh-SrZ">
<button verticalHuggingPriority="750" id="BQn-Wh-SrZ">
<rect key="frame" x="29" y="55" width="410" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Warp mouse pointer to center of activated windows?" bezelStyle="regularSquare" imagePosition="left" inset="2" id="c2G-na-Rzs">
Expand All @@ -729,7 +729,7 @@
<rect key="frame" x="10" y="33" width="500" height="178"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="4Je-U3-qzh">
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" id="4Je-U3-qzh">
<rect key="frame" x="36" y="58" width="428" height="98"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="mini" sendsActionOnEndEditing="YES" alignment="center" title="About" id="Nuf-Kj-M4U">
Expand All @@ -738,7 +738,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Uxy-EO-1u0">
<button fixedFrame="YES" id="Uxy-EO-1u0" customClass="URLButton" customModule="AutoRaise" customModuleProvider="target">
<rect key="frame" x="38" y="36" width="424" height="23"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="bevel" title="link to home page" bezelStyle="rounded" alignment="center" controlSize="mini" imageScaling="proportionallyDown" inset="2" id="XAc-wo-4Fd">
Expand Down

0 comments on commit b9d0d12

Please sign in to comment.