Skip a particular color in smart invert mode of accessibility - ios

Is there any way to skip a particular color in whole app when device is in smart invert mode of accessibility?
I don't want the blue color in my app to be inverted. I have am image which have black and blue color text in it. I want the black color text to be inverted but want to skip blue color.
Any help would be appreciated.
P.S -I am familiar with accessibilityIgnoresInvertColors. But this property can be applied on uiview or object but i need to skip a color.

do it inside the appcolor constant file :- you can check UIAccessibilityIsInvertColorsEnabled() if its true then return clear color else reurn the blue color.

Related

What is the color code for iOS system labels in both light and dark mode?

Human Interface Guidelines, "Color" section talks about the using system color is preferred. There are color codes for all system colors however for the foreground content text color there only APIs provided.
So what exactly is the color code for labels in both light and dark mode? Our designers need these colors for their mockup.
https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/
The color code fetched from the Playground does not seem right. The hex codes are all the same.
The RGB values of secondary, tertiary, and quaternary label colour are in fact the same. They only differ in the alpha value, which you might have forgotten about :)
From what I observed:
Label colour has 100% alpha
Secondary label colour has 60% alpha
Tertiary label colour has 30% alpha
Quaternary label colour has 18% alpha
Here's another way to find the hex value of a system colour. Go to the asset catalog of an Xcode project. Add a colour set:
Then, select "Any Appearance" or "Dark Appearance" depending on which one you want ("Any Apperance" means "not dark"). You can even check the "High Contrast" box to have more options for how your dynamic colour will look depending on the situation.
Then select your desired colour from the "Content" dropdown (see freehand circle).
Finally, you can click on "Show Color Panel" to see the hex:

Is there a way to hide the chart borders while converting Google Sheets into PDFs?

The grey chart borders show up, no matter what you do in Google sheets, when converted into PDF. Is there any other way or script to make it hide while PDF conversion?
For anyone still struggling with this issue, there is a workaround where you can set the border colour to white instead of choosing no border. With this change, PDF export won't show any border lines.
There is a quick hack to solve this issue instead of setting the border color to full white set the border color to another white color in custom border colors.
There's a little hack you can use, use a light color as the border color anything but white as it didn't work, you can use a very light grey color something like #fcfcfc. Worked for me perfectly.
Lads,
in case anyone stil struggles with this - dont save as .pdf directly but use the Print -> print to pdf function.
Hope it helps.

white text on white background image in swift

I've image and label over it. Images are of multiple color and I would like to add text label of white color. Is there anyway I can make the label text standout even if background image is white color?
I tried lowering alpha value for the background image, it gives little effect but label text not standing out clearly unless alpha value for background image is too low.
Set up your label field with a shadow on it.

how change a part of image color no the entire image

what I want to do is change only the black color of my original image to another color, and keep for example white color of my image
what I have tried is:
cell.iconeEcoute?.image = cell.iconeEcoute?.image!.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate)
cell.iconeEcoute?.tintColor = colorHexIcone
But this code change the entire image color, and I want to keep green color and replace only black color in the image
any help would be appreciated
You can achieve it by taking separate View. Then give different color and alpha as you want. and you will see that part in different color.

How do I make the foreground color of my awesome wm taskbar's selected window transparent?

I'm using Awesome WM v.3.4.15. I've searched all around and only found the suggestion to add two hex digits to the hex color value of the background color of the selected window in theme.lua but after doing that and reloading it only makes it grey.
Does know what I can do to make the background color of the selected window in the top bar transparent?
Awesome/Lua uses RGBA color space, so indeed to make color transparent you need to add two digits after color.
The parameter you need to change is theme.bg_focus if I understood you correctly, to test it set it to white first "#ffffff" and then change the transparency: "#ffffff00". If it's not that try theme.titlebar_bg_focus or theme.tasklist_bd_focus
The two hex digits are the strength of the transparency.
00 - full transparency
FF - no transparency
So you have to set your value to #ffffff00.

Resources