Is there a way to change my app icon dynamically when switching between Dark/Light Mode in macOS Mojave?
I wish to change the icon appearance to appear appropriately in system alerts and notifications.
Related
I'm trying to change my Splash Screen's background color on my expo app in accordance with the system's dark/light theme configuration, however since I can't reach out for the Appearance module I couldn't find a way to do so.
Is this possible at all to do within an expo app?
Thanks!
I am creating a new react native application. I set the app icon in Xcode but when I open the background apps my icon seems unset.
But in the main menu, it seems normal.
I use another image.icns as my applications icon file.
I've deleted ~/Library/Application Support/NotificationCenter/*.db and restarted my computer but the notification icon is still the default Mac icon for my application.
Stop your application from running in Xcode. Force quit the Notification Center process via Activity Monitor. Relaunch Notification Center and then launch your application. Your notifications should now display your application's icon you've provided in your AppIcon.appiconset.
Turns out you should probably keep your icons in an ".iconset". And have all the recommended sizes available for the notification center to pick up (e.g. might be 32 x 32, might be 16 x 16).
And to create this, you can use the "Icon Composer" app to convert your .icns file into a full blown icon set. The .icns file does end up in your built app package / bundle in the end, though.
Details can be found in Apple's "High Resolution Guidelines for OSX" document, under the "Create a set of icons that include high-resolution versions" section.
Archive your app, export it to your applications folder. When there is a copy of your app in Applications folder, notification icon is somehow visible. This worked in my case...
I draged all kinds of icons. After that I can see them in small windows in "General - App Icons" but when I run a simulator and go to Home Screen, my app icon is not displayed. What is wrong?
Click "Clean" in Xcode. Then remove app from simulator. Then run app.
restart your simulator. Make sure you have proper icon for device type / resolution you are trying to simulate.
For XCode 8 I had this same problem. I had created multiple targets and in doing so had unknowingly removed all targets from membership of Assets.xcassets.
To fix it for me, I selected Assets.xcassets in the project view and then reselected all the targets that I wanted to apply my icon sets to.
I just picked up the code for an application our overseas developer has made for us. For some reason, when the application starts, no icon pops up in the Dock (with the little blue circle below).
If I manually add the app to the Dock and start it from the Dock, it will run the application, but the icon won't be illuminated with the blue circle (no indication that it is running).
Where would I have to start in order to solve this problem? (e.g. to make it clear that the application is running by having an icon in the Dock with the blue circle below it).
Thanks!
Either you are running Mac OS X Lion with the indicator turned off (see Dock settings) or you app is configured as a UI element in the Info.plist file (LSUIElement is YES).
Set LSUIElement to NO/false in Info.plist.