News for hackers. Stuff that matters.
Re:Firefox 121 defaults to Wayland on Linux by rthkljlkrj on Tuesday December 19, 2023 @10:10AM (#38696492)
Sorry for the OT but this is driving me crazy.

How does "dark mode" work in desktop linux?

I'm using i3wm and I haven't been able to find a way to "press a button and every app turns into dark mode". To be clear, all my apps are already configured to take the theme from "system theme", I just haven't been able to find how to change this system theme.

On android this is pretty well integrated, what's the deal with desktop?

Re:Firefox 121 defaults to Wayland on Linux by tristan957 on Tuesday December 19, 2023 @10:17AM (#38696614)
On GNOME and KDE, this is simple. Window managers, of course, are going to come with their own solutions. The setting is exposed through the XDG Desktop Portal.
Re:Firefox 121 defaults to Wayland on Linux by yoyohello13 on Tuesday December 19, 2023 @10:28AM (#38696772)
You're being downvoted but you're right.

If you're using a Window Manager (like i3) they are unlikely to come with utilities like this. You need to download another app (lxapperance for Xorg) or write a script to flip the appropriate settings.

Re:Firefox 121 defaults to Wayland on Linux by rthkljlkrj on Tuesday December 19, 2023 @10:25AM (#38696729)
> The setting is exposed through the XDG Desktop Portal.

Is this something I can use if I'm using i3wm?

Re:Firefox 121 defaults to Wayland on Linux by yoyohello13 on Tuesday December 19, 2023 @10:35AM (#38696875)
A desktop environment like Gnome or KDE does a lot of this for you. You can try using a stand alone program like lxappearance (from LXDE) to tweak your settings. Or you can configure it yourself https://wiki.archlinux.org/title/GTK#Dark_theme_variant
Re:Firefox 121 defaults to Wayland on Linux by jcastro on Tuesday December 19, 2023 @10:16AM (#38696600)
> On android this is pretty well integrated, what's the deal with desktop?

I have a button in gnome that toggles dark mode on/off that switches the desktop over that works for just about everything (not discord though).

Re:Firefox 121 defaults to Wayland on Linux by codenaught on Tuesday December 19, 2023 @10:46AM (#38697021)
I wrote a little toggle script for the Gnome apps:

  #!/bin/bash
  color_scheme=$(gsettings get org.gnome.desktop.interface color-scheme)
  case $color_scheme in
    *default* ) new_color_scheme="'prefer-dark'";;
    *         ) new_color_scheme="'default'";;
  esac
  gsettings set org.gnome.desktop.interface color-scheme "$new_color_scheme"
Re:Firefox 121 defaults to Wayland on Linux by Aardwolf on Tuesday December 19, 2023 @10:14AM (#38696555)
Not sure about dark mode, but theming in general in Linux is so broken for me compared to the past. Many applications now use themes set by desktop configuration (but with some choosing gtk-related settings, others choosing qt-related settings, which can differ).

But no matter what theme I choose, there will always SOMETHING be broken. In one theme some part of an application will have black text on a black background. Another theme fixes that, but them makes in the alt+tab application switcher the part that highlights which application you're selecting invisible. Other themes have almost invisible scrollbars. Various applications have missing icons because they no longer have their own built-in ones.

I wish every application just had its own actually working built-in theme, rather than trying to shoehorn a global desktop theme inside of everything. It used to be like that in the past and it looked perfect compared to the mess now. Desktop theme settings should just be about the outer window borders and stuff.

Also, does there even exist ONE theme still today that actually visually distinguishes the selected and non-selected windows well? They're all super subtle about this now. Give me a bright blue selected window, gray non-selected window titlebar please so I can tell at a side-eye glance what's focused.

Re:Firefox 121 defaults to Wayland on Linux by tristan957 on Tuesday December 19, 2023 @10:19AM (#38696637)
Sounds like you want GNOME + libadwaita or KDE + Breeze. Never had theming issues with that combination.
Re:Firefox 121 defaults to Wayland on Linux by Aardwolf on Tuesday December 19, 2023 @10:20AM (#38696661)
Thanks, I'm using cinnamon.

I loved KDE 3.5, but ever since KDE 4 and plasma, I've tried multiple times and never liked it.

I also don't like Gnome, doesn't fit my workflows well, it doesn't support moving windows between multiple desktops well, no window list enabled by default, ...

Re:Firefox 121 defaults to Wayland on Linux by WhereIsTheTruth on Tuesday December 19, 2023 @10:43AM (#38696991)
If one user wants theming, he certainly doesn't "want" Gnome, themes break every versions

https://medium.com/@fulalas/gnome-42-the-nonsense-continues-...

Re:Firefox 121 defaults to Wayland on Linux by tristan957 on Tuesday December 19, 2023 @12:56PM (#38698985)
They said each application should have its own theme that it supports, which is exactly what libadwaita is. A theme that apps can bundle and force.
Re:Firefox 121 defaults to Wayland on Linux by WhereIsTheTruth on Wednesday December 20, 2023 @12:22PM (#38711044)
Can't you see the contradiction?

What's a theme and customization if the DE/app forces 'themes' on the user?

Getting downvoted over this further prove my whole point

https://news.ycombinator.com/item?id=38696961

Re:Firefox 121 defaults to Wayland on Linux by Aardwolf on Thursday December 21, 2023 @05:39AM (#38718916)
What I'm looking for is:

-Allow to choose theme for the window decorations (titlebar etc...) and the desktop itself in its settings and have this applied consistently in the desktop (all applications use same window decorations on the outer part of their windows, ...).

-Let application have their own icons inside of the window (I have nothing against applications reusing icons, but let the developer choose them, not desktop-dependent since that's clearly not working out). Like say the "save file" icon in a text editor: I'd rather have a well-chosen one by the developer of this text editor, than one that either doesn't work or look completely out of place but was enforced by some desktop standard.

What I don't like is:

-applications changing / removing the outer window borders. They have no business changing that, only the inside content of their windows. E.g. a browser removing the title bar of its window can make some menus the desktop provides there inaccessible, make it invisible which window is focused, etc...

-application using external theme (e.g. based on some desktop standard) icons for its internal contents and then not working properly because the creator of the application could not know what the external theme would look like. This does not work out for various reasons: having 1 desktop setting makes it impossible to fix individual programs since changing theme to fix 1 may break another, e.g. say you have themes "adwaita" and "greybird" in your desktop setting, theme adwaita breaks program A (e.g. it shows black text on black background; just arbitrary example, not saying adwaita actually does this but I know at least one epub reader that showed black text on black background for some desktop settings in real life) but works in program B, and theme greybord works in program A but breaks program B (e.g. its icons will be invisible or whatever): If program A and program B just had their own inner contents, this problem would not exist.

Also, different applications having to be consistent across each other for their inner contents is something I couldn't care less about, so it's not worth all the problems it causes.

Re:Firefox 121 defaults to Wayland on Linux by jwells89 on Tuesday December 19, 2023 @11:03AM (#38697277)
For things like text readability, much of the fault lies on developers for not using parameterized colors (e.g. “primary text”, “secondary text”, etc) which can change as needed to fit light/dark mode, accessibility modes, and even things like user-preference UI tints.

Use of CSS in GTK for theming (maybe Qt too, not sure?) doesn’t help matters since both user applied-themes and developer-applied CSS can screw things up by overriding things in a half-baked way.

Re:Firefox 121 defaults to Wayland on Linux by sevagh on Tuesday December 19, 2023 @11:22AM (#38697555)
i3wm and Android are polar opposites in terms of how much power users have to customize the experience (almost a necessity for using i3wm, and almost impossible on a unrooted Android). Strange situation you're in if you want a locked down, polished end-user experience on i3.
Re:Firefox 121 defaults to Wayland on Linux by squigz on Tuesday December 19, 2023 @10:23AM (#38696693)
I use `lxappearance` to modify theme and other such UI settings from within i3wm.