From f78ac62ea6eb7c9fa6c6a5ecb474707531a9c669 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 11 Jul 2025 17:04:56 +0200 Subject: Add secondary foreground + file icons --- .../Secondary Foreground.colorset/Contents.json | 38 +++++++++++++++++++++ .../Colors/Secondary.colorset/Contents.json | 38 --------------------- Map/Info.plist | 17 +++++++-- Map/Presentation/Theme/Color+theme.swift | 2 +- Map/Presentation/Theme/WmapFile.icns | Bin 0 -> 312100 bytes 5 files changed, 54 insertions(+), 41 deletions(-) create mode 100644 Map/Assets.xcassets/Colors/Secondary Foreground.colorset/Contents.json delete mode 100644 Map/Assets.xcassets/Colors/Secondary.colorset/Contents.json create mode 100644 Map/Presentation/Theme/WmapFile.icns diff --git a/Map/Assets.xcassets/Colors/Secondary Foreground.colorset/Contents.json b/Map/Assets.xcassets/Colors/Secondary Foreground.colorset/Contents.json new file mode 100644 index 0000000..02a3b46 --- /dev/null +++ b/Map/Assets.xcassets/Colors/Secondary Foreground.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.488", + "green" : "0.500", + "red" : "0.434" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xE3", + "green" : "0xE6", + "red" : "0xDA" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Map/Assets.xcassets/Colors/Secondary.colorset/Contents.json b/Map/Assets.xcassets/Colors/Secondary.colorset/Contents.json deleted file mode 100644 index 02a3b46..0000000 --- a/Map/Assets.xcassets/Colors/Secondary.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.488", - "green" : "0.500", - "red" : "0.434" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0xE3", - "green" : "0xE6", - "red" : "0xDA" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Map/Info.plist b/Map/Info.plist index 3ce52cd..16ae982 100644 --- a/Map/Info.plist +++ b/Map/Info.plist @@ -7,6 +7,12 @@ CFBundleDocumentTypes + LSTypeIsPackage + + CFBundleTypeName + Wardley Map + CFBundleTypeIconFile + WmapFile CFBundleTypeRole Editor LSHandlerRank @@ -33,9 +39,12 @@ public.plain-text UTTypeDescription - Wardley Map written in Map's wmap syntax + Wardley Map written in Map's wmap syntax UTTypeIcons - + + UTTypeIconFile + WmapFile + UTTypeIdentifier systems.tranquil.map.wmap UTTypeTagSpecification @@ -44,6 +53,10 @@ wmap + public.mime-type + + text/vnd.wmap + diff --git a/Map/Presentation/Theme/Color+theme.swift b/Map/Presentation/Theme/Color+theme.swift index 7f6995d..e0addca 100644 --- a/Map/Presentation/Theme/Color+theme.swift +++ b/Map/Presentation/Theme/Color+theme.swift @@ -35,7 +35,7 @@ extension Color { struct UI { static let foreground = Color("Foreground") static let background = Color("Background") - static let secondary = Color("Secondary") + static let secondary = Color("Secondary Foreground") static let accent = Color.Theme.jasperRed } diff --git a/Map/Presentation/Theme/WmapFile.icns b/Map/Presentation/Theme/WmapFile.icns new file mode 100644 index 0000000..f866b9b Binary files /dev/null and b/Map/Presentation/Theme/WmapFile.icns differ -- cgit