Launch Screen Image is not updating for Dark Mode in iOS 13 - ios-darkmode

I have a story board file as the launch screen. I have set image in button background Image. In that image, I have an image set for light and dark mode. but when I switch to dark mode, it always shows light mode image.

I'm not sure if you still need an answer to this, but I recently had the same issue.
For me, what fixed this was to uncheck the box 'Preserve Vector Data' within the image set properties. This means resizing won't work on the vector image, but you will see the image change with light/dark mode toggled within the storyboard.
Alternatively if I go back and check 'Preserve Vector Data' (back to the original state) the Dark image will display when the app is running if the simulator phone is in Dark mode.

Make sure you have enabled Appearance to Any, Dark. And check that you have added images for dark mode appearance.

Related

Is there a way to get rid of brief BrowserComponent white flash during form in/out transition?

One of my Form contains a BrowserComponent. My Form has a non-white bcakground color (when Dark Mode is on)
No matter what I set the browser's background color to, when I showBack() the previous Form, a brief flash is shown in the space the BrowserComponent occupies
Here is a video showing this on iOS
https://imgur.com/a/QhhZ0ZY
On Android, the effect is slightly different. The space the BrowserComponent occupies is initially drawn white/gray/black (randomly) while the Form is in transition (in & out)
That seems like a bug in browser component that was probably missed due to the default background color. Please file an issue with this. If you can isolate this to a test case for that issue it would help too.
It looks like createPeerImage in the iOS port should accept a background color but it might be something else.

Why ALL styles in my theme.res file have border mode set to top-only?

Today I found out I have all styles, that have set rectangle border, set it's border mode to top-only. When I click to choose other border mode, and confirm OK to Border dialog window, it doesn't change that border mode. It stays top-only. So I can't change border mode.
When I was working with it on Friday, it worked.
Was there a change/update of cn1 framework between Friday-Monday?
We recently made a fix for this feature (or two fixes) and it might have broken the designer tool which relied on the original behavior. Please file an issue on that so we can keep track of this.

Black background color in app icon

I've a app icon image in png(transparent) of size 512 * 512. It works well ie. transparent bg in android but in iOS the app has black background. How can I make it transparent in iOS?
Black bg in app icon...
This happens when the size of the icon is incorrect. Apple has very specific requirements about the shape of the icon as you can see from all the icons around: they all look the same.
The best approach for iOS is to create a completely square image which will be cut automatically to the right size.
Assuming you want this icon for Android and a different icon for iOS you can use this tip: https://www.codenameone.com/blog/different-icons.html
In the build.xml find
<target name="build-for-android-device" ... >
Change the line:
icon="androidIcon.png"
Then copy your existing icon to androidIcon.png and replace icon.png with a square icon.

Image processing in C — processing a 256-color bitmap image

I am using Borland Turbo C and the Borland Graphics Interface.
I have two questions:
I have to process a 256 color bitmap image. It is difficult to process using EGAVGA driver, so I decided to use SVGA driver. It works fine, but when I convert the image into gray scale, instead of showing only the image in gray scale, the whole window goes into gray scale mode. Is there any method to change the color palette for a specific area using outp(0x03c8, data) and outp(0x03c9, data) functions?
The mouse functions works fine with EGAVGA mode but the cursor is not visible in the SVGA mode. Even the mouse is functional. How could I create a custom mouse cursor for SVGA mode in 256 color? I have the codes for creating custom mouse pointer in EGAVGA mode using 0x10 interrupt but it is not working with SVGA mode?
In paletized video modes, palette entries affect the whole screen. If you change any index, all pixels on screen with that index will change, whether if they belong to your image or not.
If your image is going to share the screen with others, and you want that image the only one that changes into grayscale, you have to set aside some palette entries for exclusive use by your image, so changing them won't affect other graphic elements in your screen.
On Windows, and X-Window if my memory serves well, the entire screen will have the colours of your palette when your window application has the focus. When not, it will revert to system palette and your windows and its contents will show "weird".

Create a GUI for Application

I have to create a program that starts with a splash screen and a transparent image, but in windows form not working there always the white background, how can I do?
You need to set a transparency key. If you set it to white, it will make everything that's white on the form transparent (doesn't work well with the picturebox control though).
So for instance, you create a panel, and give it the background image you want to be displayed, then set the transparency key to whatever color should be made transparent ;p

Resources