News for hackers. Stuff that matters.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by iforgotpassword on Wednesday January 04, 2023 @03:26AM (#34243344)
> The very bad move in this case, was hard-coding foreground colours, while simultaneously not hard-coding background colours.

Oh holy.

People act like dark themes, or theming is a relatively recent invention. But in fact, Windows 95 and even earlier were already entirely themeable, system-wide (well themeable is a bit of an exaggeration, you could change the color scheme, but still...). But the quoted problem is exactly what was already happening back then to basically prevent you from ever deviating from the default colors too much. Sure, you could make the default gray background a little darker or brighter, but I remember I tried doing white text on black background, and after a couple days I encountered enough programs that at least in some places hard-coded black text but used the system default background color to switch back and never bother again to this day. What worked a little better was programs that forced both, some text editor forcing black on white, but that looked pretty jarring too, contrast-wise.

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by deafpolygon on Wednesday January 04, 2023 @03:41AM (#34243427)
Back in 95 "SE", you could invert the colors on your own. My mom had this need to use a reddish background and black text that was a bit maddening. I would set the black text to white. It worked, for the most part.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by bestham on Wednesday January 04, 2023 @05:21AM (#34243997)
I don't think there was a Windows 95 "Second Edition". Are you talking about the theming that was possible with the "Plus! pack" or something related to the OSR2 version of Windows 95?
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by deafpolygon on Wednesday January 04, 2023 @05:37AM (#34244089)
You're right. I'm talking about the Plus pack. I don't google and verify every fact I type (though, I probably should).

Edit: I really somehow remember having an "SE" designation next to Windows 95, though. Not sure why.

Edit: edit: I might be mixing it up with Windows 98 SE. But the Plus! pack is what I'm most likely remembering.

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by fredoralive on Wednesday January 04, 2023 @07:37AM (#34244815)
The ability to set UI colours was a basic part of Windows 95 (or indeed 3.x before it). In 9x its just part of the Display control panel.

The Plus back added the Desktop Themes control panel and the various preset colour / wallpaper / sounds / icons combinations like Mystery and Inside Your Computer. This later became a standard part of Windows 98.

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by rhn_mk1 on Wednesday January 04, 2023 @04:05AM (#34243543)
This problem is a scourge of the Web. Literally half of all web sites set one of the two, assuming the default color scheme of black-on-white, resulting in beautiful unreadable blanks when the actual preset is white-on-black.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by ryandrake on Wednesday January 04, 2023 @04:39AM (#34243754)
The article itself concluded this:

> Please, for the love of all that is good and decent in this world, the next time you force a visual change upon users, include a colour picker option to let the user override your choices, or, you know, respect the system theme.

Ironically, the article itself displays with hardcoded white-on-black text and neither 1. allows me to override its choices nor 2. respects my system theme. I have to "Disable Styles" in my browser to accomplish this.

I wish app and web developers would be more respectful of user's style preferences and their system theme. Some designer living 1000 miles away in Silicon Valley should not be able to simply dictate how my browser displays text or what color my application windows are.

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by KennyBlanken on Wednesday January 04, 2023 @05:57AM (#34244198)
It's also the first blog post I've seen in a long time that put up a javascript error.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by mschuster91 on Wednesday January 04, 2023 @08:29AM (#34245289)
> I wish app and web developers would be more respectful of user's style preferences and their system theme.

The problem for app developers is that there are so many completely different implementations of theming in platforms. On Windows, you have the Win95 era legacy theming (color schemes, fonts and window framing), like five or six different UI frameworks that may or may not integrate with the legacy settings, and on top of that the entire DPI settings which many app developers don't bother to test. On Linux, you have the big players KDE and Gnome and a truckload of splintered smaller projects. On macOS and iOS, you don't have anything but dark mode. On Android, you have dark mode and fonts. On web, you don't have anything but dark mode (and I wonder if that's going to be taken away like a million other things that got exploited to fingerprint users!). Oh and you have Java frameworks that have the same limitation.

And depending which kind of framework you use, it may or may not well integrate with whatever implementation the OS provides.

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by Lex-2008 on Wednesday January 04, 2023 @08:36AM (#34245357)
> On web, you don't have anything.

Well, you have at least prefers-color-scheme CSS media feature, but maybe you can also use System Colors: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value...

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by EEMac on Wednesday January 04, 2023 @12:11PM (#34248321)
Remember when web pages were text with a few images, with browser settings (font/size/color?) that let users style things to suit their own needs? Those were good days.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by int_19h on Wednesday January 04, 2023 @12:29PM (#34248572)
With respect to colors, at least, if you use the system ones for whatever UI framework you're using, it'll be good enough if not perfect.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by ryandrake on Wednesday January 04, 2023 @01:00PM (#34249036)
I thought for most application frameworks, simply not doing anything is enough to make your application adopt the user's system preferences. You have to take deliberate action as a developer to override them.

I remember the early days of Windows 95, where for a brief, glorious moment in time, all your applications would look like proper Windows 95 applications, respecting your color scheme, text size and font face, highlight/disable behavior, tooltip/hover behavior and colors, everything. Everything you launched just looked like it fit in with the rest of the system. Then, I think one of the first (at least most prominent) egregious violators was WinAmp. You'd launch it and it just decided by itself what the title bar, status bar, min/max/close buttons, content, everything, should look like. And not just colors--they used bitmap graphics to entirely override what common controls looked like. It stuck out on your desktop like a sore thumb. Yuck! If you wanted to change its appearance, you had to use the application's own plugin or theming system since it just ignored the system.

Fast forward to today, and every developer just treats the application's entire visual surface as their own art project, basically ignoring the system preferences altogether. If you're lucky, they let you specify "dark" vs. "light" or even more rarely, let you go in and do minor tweaks using the app's own bespoke preference settings. But fallback to system colors? Fuggetaboutit!

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by xwolfi on Wednesday January 04, 2023 @09:45AM (#34246046)
To be fair, greasemonkey still works and I just overlay my own scripts to sites I visit often.

Cant say that of windows apps so...

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by dotancohen on Wednesday January 04, 2023 @11:47AM (#34247922)
I've got some nice tricks in my userContent.css file, I couldn't imaging using a browser that does not support it.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by lelandfe on Wednesday January 04, 2023 @09:58AM (#34246195)
> neither 1. allows me to override its choices

What makes you feel like it doesn't allow you to override its styles? Unless it's doing some funny business with e.g. the shadow DOM, you can literally just add some CSS in your browser – the exact ease that this blog author was wishing for:

    * { background: white; color: black !important; }
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by hackmiester on Wednesday January 04, 2023 @11:33AM (#34247697)
The standard way would be to respect prefers-color-scheme (rather than make the user do something specific for your site).

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by lelandfe on Wednesday January 04, 2023 @11:50AM (#34247957)
That would be GP's second point, "respects my system theme."
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by ryandrake on Wednesday January 04, 2023 @12:48PM (#34248861)
I'm not a web developer, but looking at "prefers-color-scheme," that seems like a good, but very tiny step in the right direction. I'd consider my system theme to be more than just binary "dark" vs. "light". What about font, text size, specific colors and appearance for content and UI controls, colors and fonts for link text, and so on. As a user, I shouldn't need to inject CSS, fart around with Greasemonkey scripts, or use the big hammer "Disable CSS," just to force my browser into respecting user preferences.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by dec0dedab0de on Wednesday January 04, 2023 @10:22AM (#34246549)
I wish app and web developers would be more respectful of user's style preferences and their system theme. Some designer living 1000 miles away in Silicon Valley should not be able to simply dictate how my browser displays text or what color my application windows are.

Older web browsers used to let you override the colors for all websites as just a normal setting. I think I'm specifically remembering Netscape 3, but it's been a while. I used to override the colors, and disable images/js from like 96-99, and everything worked fine. I still miss that version of the web

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by int_19h on Wednesday January 04, 2023 @12:21PM (#34248474)
The ability for users to override styling was one of the original design goals of CSS; https://www.w3.org/TR/REC-CSS1/#abstract:

"One of the fundamental features of CSS is that style sheets cascade; authors can attach a preferred style sheet, while the reader may have a personal style sheet to adjust for human or technological handicaps."

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by david2ndaccount on Wednesday January 04, 2023 @01:06PM (#34249118)
Safari still supports this. Preferences -> Advanced -> Style sheet. I use it to adjust things on some websites. As far as I know Chrome does not support it. Firefox probably supports it, but their preferences UI has always been terrible so I can’t figure out where it would be.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by dec0dedab0de on Wednesday January 04, 2023 @01:17PM (#34249271)
Firefox probably supports it, but their preferences UI has always been terrible so I can’t figure out where it would be.

I remember it being nicer about 20 years ago, I think it started getting gradually worse about the same time the release numbers started increasing like crazy.

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by cmeacham98 on Wednesday January 04, 2023 @01:30PM (#34249464)
Firefox still does: Settings -> General -> Colors. You can change the default color for text/background/links, and set it to always override the website's styling if you want.
Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by vvillena on Wednesday January 04, 2023 @05:52PM (#34253111)
All self-respectable browsers have a "reader mode" that does what you want. You don't have to hack away at obscure options, it's one button click away.

Chrome is the browser that doesn't have a reader mode by default, due to the obvious conflict of interest.

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by dspillett on Wednesday January 04, 2023 @09:22AM (#34245773)
> But in fact, Windows 95 and even earlier were already entirely themeable, system-wide

All the way back to version 1: https://winworldpc.com/screenshot/c2b371c2-afc3-871d-c3ab-11...

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by tjoff on Wednesday January 04, 2023 @09:59AM (#34246216)
Eclipse with derivatives are incredibly bad at this.

Feels like every time I boot it I get different results depending on what order eclipse colors and theme colors is applied or something.

(no, I don't "use" eclipse but in the embedded world eclipse is still king (if you ask the vendors) so when I am on a new platform I often play around some in it before I managed to move off it entirely)

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by ilyt on Wednesday January 04, 2023 @10:56AM (#34247075)
There is other, more sinister way to fuck it up, by just loading "wrong" color keys from the theme that still sorta look okay on white theme but are unreadable.

Basically, instead of reading description and using a color key from theme as designed, someone uses "default" (or whatever they have currently set on machine) color theme as essentially palette to paint their app with, disregarding original purpose and end up broken with some themes.

Re:QBittorrent v4.5.0: The Hitchhiker's Guide to Legible Text by int_19h on Wednesday January 04, 2023 @12:27PM (#34248549)
I think the fact that Windows is much less themable these days is a part of the problem. Back then, people actually used all kinds of weird themes, and that was a forcing function on the developers to stick to system colors. Win7 was the last version that supported it, though, and even then only if you used the Classic theme. Dark mode for Win32 apps wouldn't show up until Win10.