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

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.

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.

Skip a particular color in smart invert mode of accessibility

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.

UIView background color set is not what appears

I created a UIView with a set background color. Lets say RGB value 185, 45, 42. For some reason, when I take a screenshot of this view, it is not that color. It is a little bit darker. Is there a reason why UIView would do this?
The UIView background color is set in interface builder like this:
When I run it on the simulator and take a screenshot and use the eye drop tool to determine the color, the numbers that show up are a little bit darker than what I entered. Same with a button.
I have other screens with the same red color and the screenshot I take of those, the red actually comes out correctly. I've been trying to determine what the difference is between those screens, but so far have not seen any. So I was just wondering if anyone would have any knowledge of anything that "could" case such a color change.
A common mistake when setting a color numerically in Interface Builder is to neglect the color space:
Different color spaces will give different colors (visually) for the same RGB values.
When you set RGB color, you should notice that all the three color values range from 0 to 1, so give them a value greater than 1 would never work. Try this:
RGB(185 / 255.0, 45 / 255.0, 42 / 255.0)

How to make navbar transparent

I have created a navbar at PureCSSMenu.com but the site doesn't offer a way to make the navbar transparent. Is it possible to tweak the code to make it transparent?
You can view the navbar below:
http://spectrum.x10.mx/navbar.html
At line 16 of your CSS, in rule ul.pureCssMenu, ul.pureCssMenu ul, change the background color:
background-color:rgba(255,255,255,0.5);
You now have #ffffff there, meaning the background is opaque white. RGBA notation includes an Alpha channel, in this example set to 0.5 for half-transparency. 1 is fully opaque, 0 is fully transparent.
The same applies to line 42 in the rule for the a elements inside, but I'd recommend deleting its background color completely - stacking semi-transparent colors is not really practical.

Resources