Skip to content

Commit

Permalink
About screen with info about me and the code!
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoqa committed Jun 16, 2016
1 parent 40e8d85 commit 4a2ca9e
Show file tree
Hide file tree
Showing 11 changed files with 145 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3ECECBA1D1033BF0069BC94"
BuildableName = "Pomodoro.app"
BuildableName = "Focusin.app"
BlueprintName = "Pomodoro"
ReferencedContainer = "container:Focusin.xcodeproj">
</BuildableReference>
Expand All @@ -33,7 +33,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3ECECBA1D1033BF0069BC94"
BuildableName = "Pomodoro.app"
BuildableName = "Focusin.app"
BlueprintName = "Pomodoro"
ReferencedContainer = "container:Focusin.xcodeproj">
</BuildableReference>
Expand All @@ -56,7 +56,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3ECECBA1D1033BF0069BC94"
BuildableName = "Pomodoro.app"
BuildableName = "Focusin.app"
BlueprintName = "Pomodoro"
ReferencedContainer = "container:Focusin.xcodeproj">
</BuildableReference>
Expand All @@ -75,7 +75,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3ECECBA1D1033BF0069BC94"
BuildableName = "Pomodoro.app"
BuildableName = "Focusin.app"
BlueprintName = "Pomodoro"
ReferencedContainer = "container:Focusin.xcodeproj">
</BuildableReference>
Expand Down
10 changes: 10 additions & 0 deletions Focusin/About/AboutWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,14 @@ class AboutWindowController: NSWindowController {
@IBAction func openIcons8(sender: AnyObject) {
NSWorkspace.sharedWorkspace().openURL(NSURL(string: "http://icons8.com")!)
}

@IBAction func openAlberto(sender: AnyObject) {
NSWorkspace.sharedWorkspace().openURL(NSURL(string: "http://albertoquesada.com")!)
}

@IBAction func getCode(sender: AnyObject) {
NSWorkspace.sharedWorkspace().openURL(NSURL(string: "https://github.com/albertoqa/Focusin")!)
}


}
61 changes: 47 additions & 14 deletions Focusin/About/AboutWindowController.xib
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10117"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="AboutWindowController" customModule="Pomodoro" customModuleProvider="target">
<customObject id="-2" userLabel="File's Owner" customClass="AboutWindowController" customModule="Focusin" customModuleProvider="target">
<connections>
<outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>
</connections>
Expand All @@ -15,25 +14,25 @@
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="196" y="240" width="335" height="381"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="900"/>
<rect key="contentRect" x="196" y="240" width="335" height="442"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
<view key="contentView" id="se5-gp-TjO">
<rect key="frame" x="0.0" y="0.0" width="335" height="381"/>
<rect key="frame" x="0.0" y="0.0" width="335" height="442"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wOx-cD-u4t">
<rect key="frame" x="149" y="208" width="37" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Label" id="Pfw-76-dim">
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="x2s-jh-04P">
<rect key="frame" x="0.0" y="0.0" width="335" height="442"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" enabled="NO" refusesFirstResponder="YES" sendsActionOnEndEditing="YES" state="on" drawsBackground="YES" id="6Y8-rm-ll1">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="deviceWhite"/>
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="H3n-4w-p9I">
<rect key="frame" x="78" y="284" width="179" height="77"/>
<rect key="frame" x="78" y="345" width="179" height="77"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Focusin" id="ox5-gK-bUW">
<font key="font" size="53" name="Lato-Light"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<font key="font" size="53" name="Lato-Medium"/>
<color key="textColor" red="0.55294117649999996" green="0.55294117649999996" blue="0.55294117649999996" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
Expand All @@ -47,15 +46,49 @@
<action selector="openIcons8:" target="-2" id="SLL-xv-bnJ"/>
</connections>
</button>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="QsB-Kq-2HF">
<rect key="frame" x="120" y="237" width="94" height="94"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="256x256" id="mDn-xH-UlZ"/>
</imageView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dzb-sE-fGY">
<rect key="frame" x="57" y="184" width="220" height="35"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Developed by Alberto Quesada" id="Xs4-W7-SH6">
<font key="font" size="16" name="Lato-Light"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="kMN-Er-vg6">
<rect key="frame" x="71" y="160" width="196" height="48"/>
<buttonCell key="cell" type="square" title="www.albertoquesa.com" bezelStyle="shadowlessSquare" imagePosition="overlaps" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="F3u-bC-9nP">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="16" name="Lato-Light"/>
</buttonCell>
<connections>
<action selector="openAlberto:" target="-2" id="Uv2-NK-PAg"/>
</connections>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="saL-0E-NaQ">
<rect key="frame" x="95" y="113" width="148" height="48"/>
<buttonCell key="cell" type="square" title="Get the code!" bezelStyle="shadowlessSquare" image="github" imagePosition="left" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="7TC-FM-Pgh">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="15" name="Lato-Light"/>
</buttonCell>
<connections>
<action selector="getCode:" target="-2" id="osa-uq-iB5"/>
</connections>
</button>
</subviews>
</view>
<connections>
<outlet property="delegate" destination="-2" id="0bl-1N-AYu"/>
</connections>
<point key="canvasLocation" x="260.5" y="347.5"/>
<point key="canvasLocation" x="260.5" y="317"/>
</window>
</objects>
<resources>
<image name="256x256" width="256" height="256"/>
<image name="github" width="96" height="96"/>
<image name="icons8_logo" width="100" height="100"/>
</resources>
</document>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Focusin/Assets.xcassets/128x128.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "128x128.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Focusin/Assets.xcassets/256x256.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "256x256.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
21 changes: 21 additions & 0 deletions Focusin/Assets.xcassets/github.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "github.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Focusin/Assets.xcassets/github_2.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "github_2.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4a2ca9e

Please sign in to comment.