Skip to content

Commit

Permalink
Add Walkthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Bush committed Apr 15, 2020
1 parent a442c78 commit b22a38a
Show file tree
Hide file tree
Showing 29 changed files with 603 additions and 11 deletions.
24 changes: 20 additions & 4 deletions Themes for Music.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
D04D2F38242929E400246D6C /* Style.swift in Sources */ = {isa = PBXBuildFile; fileRef = D04D2F37242929E400246D6C /* Style.swift */; };
D061BF02240EBE57003F0EDD /* LoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D061BF01240EBE57003F0EDD /* LoginViewController.swift */; };
D061BF04240EBE71003F0EDD /* LoginWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D061BF03240EBE71003F0EDD /* LoginWindowController.swift */; };
D078FA7724465698000FDDEA /* WalkthroughViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D078FA7624465698000FDDEA /* WalkthroughViewController.swift */; };
D078FA79244698CD000FDDEA /* WalkthroughWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D078FA78244698CD000FDDEA /* WalkthroughWindowController.swift */; };
D08BF13F243FD9D300E0A7AC /* MenuManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = D08BF13E243FD9D300E0A7AC /* MenuManager.swift */; };
D0E66AD6240EB30D005D93E2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0E66AD5240EB30D005D93E2 /* AppDelegate.swift */; };
D0E66AD8240EB30D005D93E2 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0E66AD7240EB30D005D93E2 /* ViewController.swift */; };
Expand All @@ -40,6 +42,8 @@
D04D2F37242929E400246D6C /* Style.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Style.swift; sourceTree = "<group>"; };
D061BF01240EBE57003F0EDD /* LoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginViewController.swift; sourceTree = "<group>"; };
D061BF03240EBE71003F0EDD /* LoginWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginWindowController.swift; sourceTree = "<group>"; };
D078FA7624465698000FDDEA /* WalkthroughViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalkthroughViewController.swift; sourceTree = "<group>"; };
D078FA78244698CD000FDDEA /* WalkthroughWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalkthroughWindowController.swift; sourceTree = "<group>"; };
D08BF13E243FD9D300E0A7AC /* MenuManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MenuManager.swift; sourceTree = "<group>"; };
D0E66AD2240EB30D005D93E2 /* Themes for Music.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Themes for Music.app"; sourceTree = BUILT_PRODUCTS_DIR; };
D0E66AD5240EB30D005D93E2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -101,6 +105,15 @@
path = Music;
sourceTree = "<group>";
};
D078FA752446564B000FDDEA /* Walkthrough */ = {
isa = PBXGroup;
children = (
D078FA7624465698000FDDEA /* WalkthroughViewController.swift */,
D078FA78244698CD000FDDEA /* WalkthroughWindowController.swift */,
);
path = Walkthrough;
sourceTree = "<group>";
};
D0E66AC9240EB30D005D93E2 = {
isa = PBXGroup;
children = (
Expand All @@ -127,6 +140,7 @@
D04D2F352429251100246D6C /* Music */,
D04D2F34242924E900246D6C /* Themes */,
D0319B97243F8B080046F3FA /* Customizer */,
D078FA752446564B000FDDEA /* Walkthrough */,
D0E66AD9240EB30F005D93E2 /* Assets.xcassets */,
D0E66ADB240EB30F005D93E2 /* Main.storyboard */,
D0319BA0243F8C890046F3FA /* WebCustomizer */,
Expand Down Expand Up @@ -217,7 +231,9 @@
D061BF04240EBE71003F0EDD /* LoginWindowController.swift in Sources */,
D0319B9F243F8C210046F3FA /* Scripts.swift in Sources */,
D0319B9D243F8C210046F3FA /* NowPlaying.swift in Sources */,
D078FA79244698CD000FDDEA /* WalkthroughWindowController.swift in Sources */,
D0E66AE6240EB37F005D93E2 /* WindowController.swift in Sources */,
D078FA7724465698000FDDEA /* WalkthroughViewController.swift in Sources */,
D0E66AD6240EB30D005D93E2 /* AppDelegate.swift in Sources */,
D02BA1BA243F986800AEBA82 /* WebCacheCleaner.swift in Sources */,
D04D2F38242929E400246D6C /* Style.swift in Sources */,
Expand Down Expand Up @@ -361,7 +377,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 586;
CURRENT_PROJECT_VERSION = 600;
DEVELOPMENT_TEAM = 85N3S3DG8M;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = "$(SRCROOT)/Themes for Music/Info.plist";
Expand All @@ -370,7 +386,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.12;
MARKETING_VERSION = 0.46;
MARKETING_VERSION = 0.50;
PRODUCT_BUNDLE_IDENTIFIER = "ca.justinbush.Themes-for-Music";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -385,7 +401,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 586;
CURRENT_PROJECT_VERSION = 600;
DEVELOPMENT_TEAM = 85N3S3DG8M;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = "$(SRCROOT)/Themes for Music/Info.plist";
Expand All @@ -394,7 +410,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.12;
MARKETING_VERSION = 0.46;
MARKETING_VERSION = 0.50;
PRODUCT_BUNDLE_IDENTIFIER = "ca.justinbush.Themes-for-Music";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
Binary file not shown.
9 changes: 9 additions & 0 deletions Themes for Music/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet weak var toggleLoginMenu: NSMenuItem!

func applicationDidFinishLaunching(_ aNotification: Notification) {
//removeDefaults()
/*
Defaults.reset() // WARNING: RESETS DEFAULTS
Defaults.synchronize()*/
Expand Down Expand Up @@ -70,6 +71,14 @@ class AppDelegate: NSObject, NSApplicationDelegate {
Defaults.removeObject(forKey: "mode")
Defaults.removeObject(forKey: "firstLaunch")
}
func removeDefaults() {
let defaults = UserDefaults.standard
let dictionary = defaults.dictionaryRepresentation()

dictionary.keys.forEach { key in
defaults.removeObject(forKey: key)
}
}

}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "Arrow Back.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Arrow [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Arrow [email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "ArrowForward.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions Themes for Music/Assets.xcassets/Walkthrough/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"filename" : "Page 1.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Page [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"filename" : "Page 2 Blur.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Page 2 [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"filename" : "Page 3.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Page [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"filename" : "Page 2.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Page [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b22a38a

Please sign in to comment.