Skip to content

Commit

Permalink
Move constants to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 25, 2019
1 parent 57cc4cd commit 9e083fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions Gifski.xcodeproj/project.pbxproj
Expand Up @@ -18,6 +18,7 @@
E317FF132057E24700A80A18 /* CircularProgress.swift in Sources */ = {isa = PBXBuildFile; fileRef = E317FF122057E24700A80A18 /* CircularProgress.swift */; };
E317FF1C20583E9800A80A18 /* DockProgress.swift in Sources */ = {isa = PBXBuildFile; fileRef = E317FF1B20583E9800A80A18 /* DockProgress.swift */; };
E339F011203820ED003B78FB /* Gifski.swift in Sources */ = {isa = PBXBuildFile; fileRef = E339F010203820ED003B78FB /* Gifski.swift */; };
E3A6BD112245345C00F62256 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3A6BD102245345C00F62256 /* Constants.swift */; };
E3A9400F2182D7BC006981D5 /* Crashlytics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E3A9400D2182D7BC006981D5 /* Crashlytics.framework */; };
E3A940102182D7BC006981D5 /* Fabric.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E3A9400E2182D7BC006981D5 /* Fabric.framework */; };
E3A940122182DCE5006981D5 /* CustomButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = E3A940112182DCE5006981D5 /* CustomButton.swift */; };
Expand Down Expand Up @@ -81,6 +82,7 @@
E317FF122057E24700A80A18 /* CircularProgress.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CircularProgress.swift; sourceTree = "<group>"; };
E317FF1B20583E9800A80A18 /* DockProgress.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DockProgress.swift; sourceTree = "<group>"; };
E339F010203820ED003B78FB /* Gifski.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = Gifski.swift; sourceTree = "<group>"; usesTabs = 1; };
E3A6BD102245345C00F62256 /* Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = Constants.swift; sourceTree = "<group>"; usesTabs = 1; };
E3A9400D2182D7BC006981D5 /* Crashlytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Crashlytics.framework; path = Frameworks/Crashlytics.framework; sourceTree = "<group>"; };
E3A9400E2182D7BC006981D5 /* Fabric.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Fabric.framework; path = Frameworks/Fabric.framework; sourceTree = "<group>"; };
E3A940112182DCE5006981D5 /* CustomButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = CustomButton.swift; sourceTree = "<group>"; usesTabs = 1; };
Expand Down Expand Up @@ -181,6 +183,7 @@
isa = PBXGroup;
children = (
E3AE62861E5CD2F300035A2F /* AppDelegate.swift */,
E3A6BD102245345C00F62256 /* Constants.swift */,
C2AFA91B204FFEFD00FC5A7F /* MainWindowController.swift */,
E3DF3E86203BD2B900055855 /* SavePanelAccessoryViewController.swift */,
E3DF3E87203BD2B900055855 /* SavePanelAccessoryViewController.xib */,
Expand Down Expand Up @@ -356,6 +359,7 @@
E317FF132057E24700A80A18 /* CircularProgress.swift in Sources */,
E3D08F6E1E5D7BFD00F465DF /* util.swift in Sources */,
E339F011203820ED003B78FB /* Gifski.swift in Sources */,
E3A6BD112245345C00F62256 /* Constants.swift in Sources */,
C2040B8920435871004EE259 /* GifskiWrapper.swift in Sources */,
E3CB1DD71F7E4CBC00D79BFC /* VideoDropView.swift in Sources */,
E3A940122182DCE5006981D5 /* CustomButton.swift in Sources */,
Expand Down
8 changes: 0 additions & 8 deletions Gifski/AppDelegate.swift
Expand Up @@ -2,14 +2,6 @@ import Cocoa
import Fabric
import Crashlytics

extension NSColor {
static let appTheme = NSColor.controlAccentColorPolyfill
}

extension Defaults.Keys {
static let outputQuality = Defaults.Key<Double>("outputQuality", default: 1)
}

@NSApplicationMain
final class AppDelegate: NSObject, NSApplicationDelegate {
lazy var mainWindowController = MainWindowController()
Expand Down
9 changes: 9 additions & 0 deletions Gifski/Constants.swift
@@ -0,0 +1,9 @@
import Cocoa

extension NSColor {
static let appTheme = NSColor.controlAccentColorPolyfill
}

extension Defaults.Keys {
static let outputQuality = Defaults.Key<Double>("outputQuality", default: 1)
}

0 comments on commit 9e083fb

Please sign in to comment.