Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for Darkmode theme to be included in the Mariner WSLg distribution #251

Closed
EricPell opened this issue May 28, 2021 · 9 comments
Closed
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@EricPell
Copy link

Is your feature request related to a problem? Please describe.

While Windows contains themes for dark and light mode, the theme included in WSLg does not.

Describe the solution you'd like
It would be nice to have a dark mode to decorate windows, perhaps what is included with the default Ubuntu Gnome Desktop.

Describe alternatives you've considered
As an alternative, it would be ok if we could install a theme into the Mariner package running the X11 and Wayland server, to prevent needless duplication of packages on disk, like X11, which would be installed in Ubuntu, for example.

Additional context
This request originated in a discussion found here: https://www.reddit.com/r/bashonubuntuonwindows/comments/nmsmm9/dark_mode_on_wsl2_ubuntu/

@EricPell EricPell added the enhancement New feature or request label May 28, 2021
@CassianoSF
Copy link

I changed the theme with gnome-tweaks, but the theme is not applied in every app, this would be a cool enhancement, everyone knows that dark themes improve development speed up to 50% 😂

image
image

@hideyukn88
Copy link
Member

Thanks for reporting, I would like to put this as dup of #37. thanks!

@hideyukn88 hideyukn88 added the duplicate This issue or pull request already exists label Jun 2, 2021
@EricPell
Copy link
Author

EricPell commented Jun 2, 2021

Thanks for reporting, I would like to put this as dup of #37. thanks!

Does changing the Window decoration actually change the interior app color scheme? I thought it only changed the borders?

@apudiu
Copy link

apudiu commented Jul 8, 2023

After applying Yaru-dark theme it's not working for me, Checkout the borders in Screenshot

@opsanches
Copy link

I know this is old but I stumbled into this post while I was searching for a solution for my problem. The solve is in two commands:

  • sudo apt install dbus-x11
  • gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'

@ghost
Copy link

ghost commented Oct 7, 2023

  • gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'

This is perfect if you execute your apps directly from terminal. If you use the links provided by W11 they'll still work in light mode.

@ninbura
Copy link

ninbura commented Dec 17, 2023

After applying Yaru-dark theme it's not working for me, Checkout the borders in Screenshot

Same here, launching Firefox from bash in WSL or from Windows via shortcut still results in a white border.

@Ammako
Copy link

Ammako commented Sep 29, 2024

Running an Electron app using Wayland, I was able to set the application window to dark mode (Adwaita) by making a settings.ini in ~/.config/gtk-3.0 with the following in it:

[Settings]
gtk-application-prefer-dark-theme=1

as per https://bbs.archlinux.org/viewtopic.php?pid=1567880#p1567880

This isn't going to be a cure-all (it probably won't do anything for the default weston window decorations at least), but it helped my use case and it might be useful for someone else too.

edit: just realized, I don't actually have Adwaita theme installed. The post I linked to mentions that gnome-tweaks should set that config on its own if you select dark theme, I didn't have an option for selecting dark theme in gnome-tweaks because I didn't have a gtk theme installed so I ended up having to do it manually. So I guess writing the settings file manually might not be useful if you can run gnome-tweaks, but who knows. Maybe the information will still be useful to someone.

@MaD70
Copy link

MaD70 commented Dec 18, 2024

This (adding to /etc/environment) worked for me where other settings failed:

Comment by u/ihakan123 from discussion Dark Mode on WSL2 Ubuntu in bashonubuntuonwindows

From another thread, people had verified that you can also just run export GTK_THEME=Adwaita:dark before starting your app or adding GTK_THEME=Adwaita:dark to your /etc/environment file should also give you dark mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants