macos: add a variety of artist-drawn alternate icons
This is just a fun change to add a bunch of alternate icons. We don't want to add too many since this increases the final bundle size but we also want to have some fun. :)
12
macos/Assets.xcassets/Alternate Icons/BlueprintImage.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "macOS-AppIcon-1024px.png",
|
||||||
|
"idiom" : "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
macos/Assets.xcassets/Alternate Icons/BlueprintImage.imageset/macOS-AppIcon-1024px.png
vendored
Normal file
After Width: | Height: | Size: 434 KiB |
12
macos/Assets.xcassets/Alternate Icons/ChalkboardImage.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "macOS-AppIcon-1024px.png",
|
||||||
|
"idiom" : "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
macos/Assets.xcassets/Alternate Icons/ChalkboardImage.imageset/macOS-AppIcon-1024px.png
vendored
Normal file
After Width: | Height: | Size: 576 KiB |
6
macos/Assets.xcassets/Alternate Icons/Contents.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
12
macos/Assets.xcassets/Alternate Icons/GlassImage.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "macOS-AppIcon-1024px.png",
|
||||||
|
"idiom" : "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
macos/Assets.xcassets/Alternate Icons/GlassImage.imageset/macOS-AppIcon-1024px.png
vendored
Normal file
After Width: | Height: | Size: 515 KiB |
12
macos/Assets.xcassets/Alternate Icons/HolographicImage.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "macOS-AppIcon-1024px.png",
|
||||||
|
"idiom" : "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
macos/Assets.xcassets/Alternate Icons/HolographicImage.imageset/macOS-AppIcon-1024px.png
vendored
Normal file
After Width: | Height: | Size: 588 KiB |
12
macos/Assets.xcassets/Alternate Icons/MicrochipImage.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "macOS-AppIcon-1024px.png",
|
||||||
|
"idiom" : "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
macos/Assets.xcassets/Alternate Icons/MicrochipImage.imageset/macOS-AppIcon-1024px.png
vendored
Normal file
After Width: | Height: | Size: 630 KiB |
12
macos/Assets.xcassets/Alternate Icons/PaperImage.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "macOS-AppIcon-1024px.png",
|
||||||
|
"idiom" : "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
macos/Assets.xcassets/Alternate Icons/PaperImage.imageset/macOS-AppIcon-1024px.png
vendored
Normal file
After Width: | Height: | Size: 335 KiB |
12
macos/Assets.xcassets/Alternate Icons/RetroImage.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "macOS-AppIcon-1024px.png",
|
||||||
|
"idiom" : "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
macos/Assets.xcassets/Alternate Icons/RetroImage.imageset/macOS-AppIcon-1024px.png
vendored
Normal file
After Width: | Height: | Size: 1.0 MiB |
12
macos/Assets.xcassets/Alternate Icons/XrayImage.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "macOS-AppIcon-1024px.png",
|
||||||
|
"idiom" : "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
macos/Assets.xcassets/Alternate Icons/XrayImage.imageset/macOS-AppIcon-1024px.png
vendored
Normal file
After Width: | Height: | Size: 443 KiB |
@ -563,6 +563,30 @@ class AppDelegate: NSObject,
|
|||||||
self.appIcon = nil
|
self.appIcon = nil
|
||||||
break
|
break
|
||||||
|
|
||||||
|
case .blueprint:
|
||||||
|
self.appIcon = NSImage(named: "BlueprintImage")!
|
||||||
|
|
||||||
|
case .chalkboard:
|
||||||
|
self.appIcon = NSImage(named: "ChalkboardImage")!
|
||||||
|
|
||||||
|
case .glass:
|
||||||
|
self.appIcon = NSImage(named: "GlassImage")!
|
||||||
|
|
||||||
|
case .holographic:
|
||||||
|
self.appIcon = NSImage(named: "HolographicImage")!
|
||||||
|
|
||||||
|
case .microchip:
|
||||||
|
self.appIcon = NSImage(named: "MicrochipImage")!
|
||||||
|
|
||||||
|
case .paper:
|
||||||
|
self.appIcon = NSImage(named: "PaperImage")!
|
||||||
|
|
||||||
|
case .retro:
|
||||||
|
self.appIcon = NSImage(named: "RetroImage")!
|
||||||
|
|
||||||
|
case .xray:
|
||||||
|
self.appIcon = NSImage(named: "XrayImage")!
|
||||||
|
|
||||||
case .customStyle:
|
case .customStyle:
|
||||||
guard let ghostColor = config.macosIconGhostColor else { break }
|
guard let ghostColor = config.macosIconGhostColor else { break }
|
||||||
guard let screenColors = config.macosIconScreenColor else { break }
|
guard let screenColors = config.macosIconScreenColor else { break }
|
||||||
|
@ -198,6 +198,14 @@ extension Ghostty {
|
|||||||
/// macos-icon
|
/// macos-icon
|
||||||
enum MacOSIcon: String {
|
enum MacOSIcon: String {
|
||||||
case official
|
case official
|
||||||
|
case blueprint
|
||||||
|
case chalkboard
|
||||||
|
case glass
|
||||||
|
case holographic
|
||||||
|
case microchip
|
||||||
|
case paper
|
||||||
|
case retro
|
||||||
|
case xray
|
||||||
case customStyle = "custom-style"
|
case customStyle = "custom-style"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1972,6 +1972,9 @@ keybind: Keybinds = .{},
|
|||||||
/// Valid values:
|
/// Valid values:
|
||||||
///
|
///
|
||||||
/// * `official` - Use the official Ghostty icon.
|
/// * `official` - Use the official Ghostty icon.
|
||||||
|
/// * `blueprint`, `chalkboard`, `microchip`, `glass`, `holographic`,
|
||||||
|
/// `paper`, `retro`, `xray` - Official variants of the Ghostty icon
|
||||||
|
/// hand-created by artists (no AI).
|
||||||
/// * `custom-style` - Use the official Ghostty icon but with custom
|
/// * `custom-style` - Use the official Ghostty icon but with custom
|
||||||
/// styles applied to various layers. The custom styles must be
|
/// styles applied to various layers. The custom styles must be
|
||||||
/// specified using the additional `macos-icon`-prefixed configurations.
|
/// specified using the additional `macos-icon`-prefixed configurations.
|
||||||
@ -5719,6 +5722,14 @@ pub const MacTitlebarProxyIcon = enum {
|
|||||||
/// format at all.
|
/// format at all.
|
||||||
pub const MacAppIcon = enum {
|
pub const MacAppIcon = enum {
|
||||||
official,
|
official,
|
||||||
|
blueprint,
|
||||||
|
chalkboard,
|
||||||
|
microchip,
|
||||||
|
glass,
|
||||||
|
holographic,
|
||||||
|
paper,
|
||||||
|
retro,
|
||||||
|
xray,
|
||||||
@"custom-style",
|
@"custom-style",
|
||||||
};
|
};
|
||||||
|
|
||||||
|