Update menu bar and copyright (#2025)

* Update menu bar

* Update copyright
This commit is contained in:
Ahnaf Mahmud 2024-04-02 07:25:52 +01:00 committed by GitHub
parent bc5bb8272a
commit eb82a67671
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 154 additions and 21 deletions

View file

@ -1209,6 +1209,7 @@
INFOPLIST_KEY_CFBundleDisplayName = "Ice Cubes";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.social-networking";
INFOPLIST_KEY_NSCameraUsageDescription = "Upload photos & videos to attach to your Mastodon posts.";
INFOPLIST_KEY_NSHumanReadableCopyright = "© 2024 Thomas Ricouard";
INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Upload photos & videos to Mastodon";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
@ -1263,6 +1264,7 @@
INFOPLIST_KEY_CFBundleDisplayName = "Ice Cubes";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.social-networking";
INFOPLIST_KEY_NSCameraUsageDescription = "Upload photos & videos to attach to your Mastodon posts.";
INFOPLIST_KEY_NSHumanReadableCopyright = "© 2024 Thomas Ricouard";
INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Upload photos & videos to Mastodon";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;

View file

@ -54,5 +54,11 @@ extension IceCubesApp {
}
.keyboardShortcut("l", modifiers: .shift)
}
CommandGroup(replacing: .help) {
Button("menu.help.github") {
let url = URL(string: "https://github.com/Dimillian/IceCubesApp/issues")!
UIApplication.shared.open(url)
}
}
}
}

View file

@ -79,7 +79,7 @@ struct IceCubesApp: App {
}
}
class AppDelegate: NSObject, UIApplicationDelegate {
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_: UIApplication,
didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool
{
@ -113,4 +113,11 @@ class AppDelegate: NSObject, UIApplicationDelegate {
}
return configuration
}
override func buildMenu(with builder: UIMenuBuilder) {
super.buildMenu(with: builder)
builder.remove(menu: .document)
builder.remove(menu: .toolbar)
builder.remove(menu: .sidebar)
}
}

View file

@ -57,7 +57,7 @@ struct AboutView: View {
Label("settings.support.terms-of-use", systemImage: "checkmark.shield")
}
} footer: {
Text("\(versionNumber)©2023 Thomas Ricouard")
Text("\(versionNumber)© 2024 Thomas Ricouard")
}
#if !os(visionOS)
.listRowBackground(theme.primaryBackgroundColor)

View file

@ -655,114 +655,114 @@
}
}
},
"%@©2023 Thomas Ricouard" : {
"%@© 2024 Thomas Ricouard" : {
"localizations" : {
"be" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"ca" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"eu" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"nb" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@©2023 Thomas Ricouard"
"value" : "%@© 2024 Thomas Ricouard"
}
}
}
@ -33901,6 +33901,124 @@
}
}
},
"menu.help.github" : {
"localizations" : {
"be" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"ca" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"eu" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"nb" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "GitHub"
}
}
}
},
"menu.new-post" : {
"comment" : "MARK: Menu",
"localizations" : {