{"id":1815,"date":"2022-07-31T09:03:00","date_gmt":"2022-07-31T16:03:00","guid":{"rendered":"https:\/\/rose.dev\/blog\/?p=1815"},"modified":"2022-08-18T03:27:11","modified_gmt":"2022-08-18T10:27:11","slug":"applying-custom-windows-styles-to-firefox-chrome-and-other-chromium-browsers","status":"publish","type":"post","link":"https:\/\/rose.dev\/blog\/2022\/07\/31\/applying-custom-windows-styles-to-firefox-chrome-and-other-chromium-browsers\/","title":{"rendered":"Applying custom Windows styles to Firefox, Chrome, and other Chromium browser&#8217;s window buttons in Windows 10 &#038; 11"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Typically, browser vendors force default button styles onto the program. This can be troublesome when you use something like <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/namazso\/SecureUxTheme\" target=\"_blank\">SecureUxTheme<\/a> to change your Windows styles, and you care about the cohesiveness. There is a hacky solution, even if the Firefox forums told me there wasn&#8217;t. \ud83d\ude09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"200\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" src=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/notmatching.jpg\" alt=\"\" class=\"wp-image-1928\" srcset=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/notmatching.jpg 859w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/notmatching-300x70.jpg 300w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/notmatching-768x179.jpg 768w\" \/><figcaption><strong>DEFAULT: <\/strong>Custom themed Notepad next to <em>standard<\/em> browsers<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">For Google Chrome, Edge, Brave, and some other Chromium-based browsers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For Chromium based browsers you can simply change the shortcut target to allow launching with your custom changes.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open start menu. <\/li><li>Search and find your browser shortcut<\/li><li>Right-click, and open file location<\/li><li>Right click &gt; open Properties of the browser shortcut (The shortcut for Chrome in the Start Menu may be found in C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs)<\/li><li>Add this line<code> --disable-windows10-custom-titlebar<\/code> to the <em>end<\/em> of the <strong>Target <\/strong>field after a space. (For Chrome, <em>&#8220;C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe&#8221;<\/em> becomes <em>&#8220;C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe&#8221; &#8211;disable-windows10-custom-titlebar <\/em>)<\/li><li>In order for your changes to show up you may need to use Task Manager (<code>ctrl + shift + esc<\/code>) and kill all background processes of that browser<\/li><li>Repeat for each browser shortcut you use.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"574\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" src=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/chrome.png\" alt=\"\" class=\"wp-image-1931\" srcset=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/chrome.png 718w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/chrome-300x240.png 300w\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"566\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" src=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/properties.png\" alt=\"\" class=\"wp-image-1932\" srcset=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/properties.png 363w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/properties-192x300.png 192w\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Changing the Registry Launch settings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is all well and good but what if you click on a link and the browser opens automatically? Now we aren&#8217;t using the custom launch option anymore. We can edit the registry to fix this.<\/p>\n\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"background-color:#380917\">This is the &#8220;I&#8217;m not responsible if you break your computer&#8221; warning: <em>BE SURE TO ALWAYS MAKE A BACKUP OF THE REGISTRY BEFORE PERFORMING ANY CHANGES<\/em>.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Launch the Registry Editor (Win + R, regedit)<\/li><li>Navigate to <em>Computer\\HKEY_CLASSES_ROOT\\ChromeHTML\\shell\\open\\command<\/em><\/li><li>Change the <em>(Default)<\/em> value from <code>\"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\" --single-argument %1<\/code> to <code>\"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\" --disable-windows10-custom-titlebar --single-argument %1<\/code><ul><li>We are essentially just adding that custom launch argument onto the default launch arguments Windows calls when it opens the program<\/li><\/ul><\/li><li>Starting the browser now use your themed settings. Older versions Chromium may have a different startup option. Try <code>--disable-features=Windows10CustomTitlebar<\/code> if it doesn&#8217;t work for you<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"356\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" src=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/registrychrome.png\" alt=\"\" class=\"wp-image-1936\" srcset=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/registrychrome.png 756w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/registrychrome-300x141.png 300w\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Firefox<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Firefox needs CSS and changing an internal flag in order to work.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open your Firefox profile. You can find it in <code>%appdata%\\Mozilla\\Firefox\\Profiles<\/code>, try looking at the one most recently modified.<\/li><li>If the folder doesn&#8217;t exist already, create a folder called &#8216;<code>chrome<\/code>&#8216;. Yes, this is the tutorial for Firefox.<\/li><li>Inside the &#8216;<code>chrome<\/code>&#8216; folder in your profile, create or edit the file &#8216;<code>userChrome.css<\/code>&#8216;.<\/li><li>Put <a rel=\"noreferrer noopener\" href=\"https:\/\/gist.github.com\/gen3vra\/11ee1d1e031bdc98e99e76eceac555bb\" target=\"_blank\">these contents<\/a> (or embedded down below) into the css file, either on its own or adding to what is already there. You can modify anything you want, such as the &#8216;titlebar-button:hover&#8217; alpha value to your liking.<\/li><li>Open a new Firefox window<\/li><li>Enter <code>about:config<\/code> into the URL bar, and bypass the warning<\/li><li>Change the <code>toolkit.<\/code> <code>legacyUserProfileCustomizations.<\/code> <code>stylesheets<\/code> option to true by double clicking. <\/li><li>Restart Firefox<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"121\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/legacyuserprofilecustomizations-1024x121.png\" alt=\"\" class=\"wp-image-1941\" srcset=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/legacyuserprofilecustomizations-1024x121.png 1024w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/legacyuserprofilecustomizations-300x36.png 300w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/legacyuserprofilecustomizations-768x91.png 768w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/legacyuserprofilecustomizations-1536x182.png 1536w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/legacyuserprofilecustomizations.png 1917w\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/gist.github.com\/gen3vra\/11ee1d1e031bdc98e99e76eceac555bb\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And finally, <a href=\"https:\/\/rose.dev\/blog\/2021\/12\/08\/better-dark-theme-for-firefox\/\" data-type=\"post\" data-id=\"1067\" target=\"_blank\" rel=\"noreferrer noopener\">get my better dark theme<\/a> for Firefox. \ud83d\ude42<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Now your browser buttons look <a rel=\"noreferrer noopener\" href=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/sleek-and-uniform-control-panel-1024x540.png\" target=\"_blank\">sleek and uniform<\/a>, just <a rel=\"noreferrer noopener\" href=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/sleekanduniformui.png\" target=\"_blank\">like the rest of your system<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/desktop-clean.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-id=\"2001\" src=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/desktop-clean.png\" alt=\"\" class=\"wp-image-2001\" srcset=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/desktop-clean.png 1920w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/desktop-clean-300x169.png 300w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/desktop-clean-1024x576.png 1024w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/desktop-clean-768x432.png 768w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/desktop-clean-1536x864.png 1536w\" \/><\/a><figcaption>Click to see bigger<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/ThemedWithBrowser.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" data-id=\"2002\" src=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/ThemedWithBrowser.png\" alt=\"\" class=\"wp-image-2002\"\/><\/a><figcaption>Click to see bigger<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"550\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/uniformbrowsers-1024x550.jpg\" alt=\"\" class=\"wp-image-1951\" srcset=\"https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/uniformbrowsers-1024x550.jpg 1024w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/uniformbrowsers-300x161.jpg 300w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/uniformbrowsers-768x413.jpg 768w, https:\/\/rose.dev\/blog\/wp-content\/uploads\/2022\/07\/uniformbrowsers.jpg 1126w\" \/><\/figure>\n<hr>\r\nIt helps me if you share this post<br>\r\n<small style=\"user-select: all\">https:\/\/rose.dev\/blog\/2022\/07\/31\/applying-custom-windows-styles-to-firefox-chrome-and-other-chromium-browsers\/<\/small>\r\n<br\/>\r\n<br\/>\r\nPublished 2022-07-31 09:03:00 ","protected":false},"excerpt":{"rendered":"<p>This guide shows you how to allow custom themed windows buttons to show on all buttons. Supports all major browsers.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_rosepost_send":"1","_rosepost_sent_at":"","footnotes":""},"categories":[922,832,833],"tags":[1073,753,1067,1072,1064,1071,1063,844,1074,1075,1065,1062,1066,1070,1069],"class_list":["post-1815","post","type-post","status-publish","format-standard","hentry","category-release","category-software","category-technology","tag-aboutconfig","tag-browser","tag-browsers","tag-button-styles","tag-chrome","tag-chromium","tag-custom","tag-dark-theme","tag-legacyuserprofilecustomizations","tag-registry","tag-secureuxtheme","tag-styles","tag-themetool","tag-themetool-exe","tag-userchrome-css"],"_links":{"self":[{"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/posts\/1815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/comments?post=1815"}],"version-history":[{"count":38,"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/posts\/1815\/revisions"}],"predecessor-version":[{"id":2507,"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/posts\/1815\/revisions\/2507"}],"wp:attachment":[{"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/media?parent=1815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/categories?post=1815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rose.dev\/blog\/wp-json\/wp\/v2\/tags?post=1815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}