How do I make a Google Chrome theme responsive to light/dark system settings? - google-chrome

Google Chrome themes are defined by manifest.json, I'm trying to find out what to put there in order to make the theme responsive to light/dark system settings. I did not find any documentation, but Chrome is certainly capable to change its colors based on the settings, for example if i stick with the standard skin the bar is white in light mode, black in dark mode.
How do I apply that to a custom theme?
I tried looking for documentation, with the most recent official article from 2012: https://developer.chrome.com/docs/extensions/mv3/themes/ , no official answer seems to exist.

Related

Enabling the Dark Keyboard for iOS Devices with HTML Tags

Is there any way to change the code of an HTML textfield (for example) to make the dark keyboard appear instead of the light keyboard.
I know this used to be possible in older versions of iOS, but I haven't seen anything on it recently. I've done some research and not even the old documentation is turning up.
For this specific case, I am attempting to do this with the WKWebView.
Thanks!

How to configure fonts in Chrome menus?

I am using Chrome v41 and I've found one day that the fonts(size and type of font) of in my menu and bookmarks changed without my intended configuration.
Would anyone tell me how to change the fonts of Chrome's menu and bookmarks?

How can I pick color from any website I visit using Chrome DevTools?

When I visit websites I want to save interesting colors I found on them.
How can I use Chrome DevTools to pick color code from the page I am currently seeing?
NB: I dont want to use third party plugins like chrome extension plugins.
You can pick color from any element using google chrome
1. Picking color from HTML element:
If the color is on simple html elements like button, text, span etc you can inspect the element and copy its color, as mentioned on the comment.
2. Picking color from image:
If the color is on an image or background image, or background-color of nested html elements, you can use the ff strategy.
2.1. Start by inspecting simple element anywhere from the page that could show the color picker box.
2.2. Then after clicking the above color picker box, goto the image or background image you want to pick color from(when you do this you will notice the cursor changing from pointer to chrome-color-picker icon).
As matter of fact you can use solution 2 even for case 1.
You can also use the eyedropper tool now in DevTools too http://paul.kinlan.me/eyedropper-chrome-dev-tools/
Use experimental feature in Chrome called CSS Overview. No Chrome extension or external tool is required to get overview of colors used on any website
To activate CSS Overview
Open up DevTools
Go to DevTool Settings (cog icon or use the F1 key)
Open Experiments section
Enable CSS Overview option
This will make the CSS Overview tab available in DevTools
You can click any color to list relevant elements
Simply use chrome extensions. I have tried two of them and they are very easy to use and you can get colors in various formats instatly.
Inspecting a page html or css files will take too much time.
Here is the link: https://chrome.google.com/webstore/search/color%20picker?hl=en
Colorzilla chrome extension is my favorite and quick.
Chrome released the EyeDropper API to a stable release. You can now pick colors directly from your website instead of opening the dev tools.
One tool which can do this is https://pickcoloronline.com/tutorials/pick-color-from-website/
Currently you can only use this in Edge, Chrome and Opera. Other browser support will come probably in the future: https://caniuse.com/mdn-api_eyedropper

How to work around browser settings that prevent WordPress Dashboard Font Icons from downloading

I have a client that is a minor, local government agency that tasked us with building two WordPress based sites. Upon completion of the first, an issue arose when they logged into the site at their offices.
When logged into the WordPress dashboard, none of the built in font icons are working. This includes the WYSIWIG editor, the toolbar on the left hand side of the dashboard, and every other place that these icons are used.
The browsers the client has available are FF 17 and IE 9, with preference given to IE 9. In either case, the font icons are not showing. Worse, in FF they have JavaScript disabled, which has further ramifications.
Upon further investigation, my team and I have come under the impression that they have certain security settings enabled that disallow the downloading of fonts.
According to their IT professionals, they are following "National Guidelines" that prevent them from changing any security settings, and/or installing or updating any browsers.
My goal is to find some kind of work around for this issue, such as a fallback image/icon that will load in place of the font-icons. Any help would be greatly appreciated!
You would need to apply a display:none; on .dashicons-before:before to hide all of the default icons if it would take to long to set them all individually.
It would be best to go through for each dash icon and apply the fallback image like
.dashicons-admin-tools:before{
content: ""; /*might need an important*/
background:transparent url(image.jpg) left top no-repeat;
}
Realistically making your own admin theme would probably be best.

Is it possible to develop a web site for a touch based browser without using HTML5 or CSS3?

I'm developing the CSS file for the mobile version of the website my group are working on for our web design coursework, and I was wondering if it was possible to design a site for touch based browsers using the currently ratified specification of HTML and CSS, as the other member are doing for the desktop variant, or am I going to have to use the draft specification of the new language. I'm not intending to use anything too elaborate, I'm only attempting to allow the user to navigate the site with their finger, and the current implementation allows me to activate a dropdown menu on the desktop, but when I try to navigate on my Android handset, nothing happens.
The menu button gets illuminated in the way that all links in my browser do when they get pressed, but nothing happens. The research I've done since this revelation has led me to the conclusion that I'm going to have to experiment with the new spec, though since this is coursework, I'd rather stick with current standards than experimental drafts of new ones.
P.S. I'm only developing an informative site, not an application.
Yes, you can use older versions of HTML. iPhone, Palm OS, Android, and recent versions of the Blackberry OS all use Webkit, which is the same rendering engine that Chrome and Safari use.
In fact, the very first page on the World Wide Web will work just fine.
We'd need to see your code for your navigation bar to troubleshoot, but it's probably something along the lines of using a hover event to display the navigation (touchscreens can't have a hover event).
I can browse to any site on my iphone using the touchscreen. The language is not the problem. Most mobile browsers on smartphones can handle html(4)/css(2) fine. You should be more worried how to show the content so it will be easy to navigate on the site using a (small) touchscreen. Usability testing is your friend here. Browsing a website made for desktop can be very frustrating (not impossible) on a small touch screen.
Also the size of images and stuff shouldn't be to big. Since loading those can be a pain. At least the t-mobile(Netherlands) g3 network is slow, if available at all.
Note that the 'currently ratified' version of CSS is CSS1 (from 1996), CSS2.1 isn't yet a W3C Recommendation. So from that point of view the standards your other members are using for the desktop variants are not much more ratified than HTML5 and CSS3.
For sure do it! just ensure links are larger for fingers. Also allow the site to resize.
Most mobile sites are HTML1.0.
You would be silly using html5 + css3 unless you knew that it was only going to be used on an iphone eg. webapps.
And don't forget you can still use JavaScript!
Go For It!