Skip to content

Commit

Permalink
Update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba committed Nov 1, 2023
1 parent 1f41efa commit d051f94
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Whisky/Assets.xcassets/MenuBar/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,12 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"symbols" : [
{
"filename" : "whisky.glass.svg",
"idiom" : "universal"
}
]
}
101 changes: 101 additions & 0 deletions Whisky/Assets.xcassets/MenuBar/whisky.glass.symbolset/whisky.glass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions Whisky/Models/Bottle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension Bottle {
static let logger = Logger(
subsystem: Bundle.main.bundleIdentifier ?? Bundle.wiskeyBundleIdentifier, category: "Bottle"
)

func openCDrive() {
NSWorkspace.shared.open(url.appending(path: "drive_c"))
}
Expand Down Expand Up @@ -184,7 +184,7 @@ extension Bottle {
func rename(newName: String) {
settings.name = newName
}

@MainActor
/// Open a panel to chose a file for running
/// - Returns: URL of the file we wish to run
Expand All @@ -202,7 +202,7 @@ extension Bottle {
guard result == .OK else { return nil }
return panel.urls.first
}

@MainActor
/// Open an open panel, chose a file and attempt to run it
/// - Returns: true or false if a file was run
Expand Down
2 changes: 1 addition & 1 deletion Whisky/Views/WhiskyApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct WhiskyApp: App {
}

// MARK: - Menu bar
MenuBarExtra("menubar.title", systemImage: "wineglass") {
MenuBarExtra("menubar.title", image: "whisky.glass") {
WhiskyBarView()
}
}
Expand Down

0 comments on commit d051f94

Please sign in to comment.