Can't customize splash screen background color after Vivaldi 5.1.2567.73.
-
Vivaldi's idea of dark mode is a little too bright for me in a few instances. Case in point, when Vivaldi 5.1.2567.73 and earlier splash screen backgrounds would come up during a new browser session, I'd get a bright gray background-color: #d2d2d2 that was a bit much for my eyes. So, I'd go to the browser.html file and change the splash screen background to a darker gray background-color: #4d4d4d.
After Vivaldi 5.2.2623.x and later, changing to a darker splash screen background color is not an option. Trying to add previous browser.html version code into the newer browser.html file to enable the darker splash screen background color doesn't work either, but I can somewhat see why. The newer browser.html file has changed and missing references compared to the previous version. So, that fact in itself is why I can't just copy and paste in old browser.html code to change the splash screen background color.
browser.html Vivaldi 5.1.2567.73 and earlier - Default splash screen background color.
<!DOCTYPE html> <html> <head> <!-- Keep the styling in sync with ./window.html --> <meta charset="UTF-8" /> <title>Vivaldi</title> <link rel="stylesheet" href="style/common.css" /> <link rel="stylesheet" href="chrome://vivaldi-data/css-mods/css" /> <style> body { background-color: #d2d2d2; background-image: url('resources/vivaldi-splash-icon.svg'); background-size: 16%; background-position: center; background-repeat: no-repeat; } @media (prefers-color-scheme: dark) { body { background-color: #2d2d2d; } } </style> </head> <body> <div id="app" /> <script src="background-common-bundle.js"></script> <script src="vendor-bundle.js"></script> <script src="settings-bundle.js"></script> <script src="urlbar-bundle.js"></script> <script src="components-bundle.js"></script> <script src="bundle.js"></script> </body> </html>
browser.html Vivaldi 5.2.2623.x and later - No splash screen background color change option.
<!DOCTYPE html> <html> <head> <!-- Keep the styling in sync with ./window.html --> <meta charset="UTF-8" /> <title>Vivaldi</title> <link rel="stylesheet" href="style/common.css" /> <link rel="stylesheet" href="chrome://vivaldi-data/css-mods/css" /> </head> <body> <div id="app" /> <script src="vendor-bundle.js"></script> <script src="background-common-bundle.js"></script> <script src="bundle.js"></script> </body> </html>
So, is there a different way to change the splash screen background color elsewhere to a darker gray in Vivaldi 5.2.2623.x and later releases?
Thanks for your help and time.
-
For some reason i've edited mine to this:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Vivaldi</title> <link rel="stylesheet" href="style/common.css" /> <link rel="stylesheet" href="style/custom.css" /> </head> <body style=" background-color: #d4d4d4; background-image: url('resources/vivaldi-splash-icon.svg'); background-size: 16%; background-position: center; background-repeat: no-repeat;"> <div id="app" /> <script src="localeSettings-bundle.js"></script> <script src="background-common-bundle.js"></script> <script src="vendor-bundle.js"></script> <script src="settings-bundle.js"></script> <script src="urlbar-bundle.js"></script> <script src="components-bundle.js"></script> <script src="bundle.js"></script> <script src="style/custom.js"></script> </body> </html>
Not sure where i got that from, but after seeing this thread and checking, it doesn't seem to be working like it should. Not sure if it's because it's been written out wrong, or if they've removed the ability for it to work.
-
@7twenty - If you do a Windows file name search in the Vivaldi folder for vivaldi-splash-icon.svg and some of the other .js extension files, you'll find a number of them don't exist any longer in the current Vivaldi 5.2.x builds. More than likely, that's why your custom browser.html file isn't implementing your changes. What I don't know is whether or not those missing .svg and .js files exist in a different way as part of a code consolidation effort elsewhere or if they've been gotten rid of in favor of something else. So, we'll have to wait for a team member or rep to give us some insight.
Although, I find the V 5.2.x newer browser.hmtl file a little odd. It has some kludged references at the end that aren't exactly in line with the previous references. I don't know if that structure was just something done quick and fast during a mass reference deletion or if was part of a code modification that just wasn't made pretty by lining up the script src remarks in an orderly manner underneath each other.
-
Just set your OS theme to Dark and the background will be dark grey. It's the only way I know of controlling the background on startup.
If on older Win-versions with no theming you're out of luck I'm afraid...
-
@Pathduck - I'm still on W7, but I'm aware of the W10 dark OS theme option, which is pretty cool. There are some Stardock WindowBlinds 10 or UltraUXThemes OS dark themes I could try in case I get desperate. For the time being, I can avert my eyes from the splash screen or click on something else on the Taskbar while it loads in the background.
I just hope the splash screen background color is something that can be adjusted somewhere. All Notepad++ search efforts in custom.css and elsewhere have come up empty. Although, I could easily not know what to look for since I'm not coding knowledge proficient.
-
Just did a test with changing the colour to red in the browser.html, and it definitely does still work.
I thought this option was supposed to change the colour of the empty tab before the page loads, but seems that's set elsewhere.
But what Pathduck still applies to that as well, the empty tab colour is dark or light dependent on what theme is set.
So i guess if it's not working on yours, it's bug on your side?
-
@7twenty Does it really work? Well you be the judge
-
@7twenty - I'd have to see the code you used to see what you mean by "does still work". What Pathduck did for testing was to add a red background browser body style that seemed to affect some background page rather than his dark gray splash page. What's interesting is that the dark gray splash page with the Vivaldi logo in the video at 0:06 m:s is the same type I used to get in V 5.1.2567.73 using this html code in the browser.html file:
<style> body { background-color: #4d4d4d; background-image: url('resources/vivaldi-splash-icon.svg'); background-size: 16%; background-position: center; background-repeat: no-repeat; } @media (prefers-color-scheme: dark) { body { background-color: #2d2d2d; } } </style>
Along with some other white square and rectangle anomalies that show up at random on the Speed Dial page and webpages, that partially or completely go away when I click on a different tab or somewhere else outside the browser, I'm beginning to think V 5.2.x is a bit bugged. So, I might just do a safe revert to the previous version I was using and wait for V 5.3.x.
Alternately, I could try to do a clean install of V 5.2.x and incorporate my user Default folder into the newly created Default folder. Then there's the trial and error process of keeping new or replacing files that already exist in the Default folder. Fortunately, there are instructions on Vivaldi or within Vivaldi comment sections that can be found via Google to follow and help make the transition relatively painless.
Transfer the full Vivaldi browser profile
-
Ppafflick moved this topic from Vivaldi for Windows on
-
@DBF68 said in Can't customize splash screen background color after Vivaldi 5.1.2567.73.:
I'd have to see the code you used to see what you mean by "does still work". What Pathduck did for testing was to add a red background browser body style that seemed to affect some background page rather than his dark gray splash page.
I did exactly what I had shown above, and Pathduck's video shows exactly what happens.
Dark grey background with V logo, then colour splash, then browser shows.
2 things about this:
The background colour showing the V logo is determined by the OS dark mode setting. Dark grey in dark mode, light grey in light mode. I believe this is what you want changed, but unfortunately I haven't seen anyone post anything about it yet. Doesn't mean that it can't be, just that no one has bothered to find out how yet.The colour splash, i'm not even sure what that's about. I'm guessing it's the "background page" of the browser UI, so it gets shown before the elements are drawn. Normally it would be the same colour as the V logo screen so isn't as jarring.
-
@7twenty - Thanks for the reply. Since I'm on W7 and the V team seems to be programming V for W10 and up, I might just have to live with what they're doing. Upgrading to W10/11 is overkill for my V browser needs, not to mention being installed on an old hardware computer. Although, I might check the potential for making a custom.css, since that seems to be possible, at least in older V versions from what I've read.
Modifications to Vivaldi are not officially supported
https://forum.vivaldi.net/category/52/modifications