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

Adwaita theme call is non-standard #52

Open
fulalas opened this issue Sep 29, 2024 · 9 comments
Open

Adwaita theme call is non-standard #52

fulalas opened this issue Sep 29, 2024 · 9 comments

Comments

@fulalas
Copy link

fulalas commented Sep 29, 2024

As discussed here, cosmic-settings-daemon is assuming GTK3 default theme is adw-gtk3 / adw-gtk3-dark, which is not the official theme name, as we can see in their repo: https://gitlab.gnome.org/Archive/gnome-themes-extra/-/blob/master/themes/Adwaita-dark/index.theme.in?ref_type=heads#L6

So my suggestion is to change the following method to include the official Adwaita name (maybe checking for both official and adw-gtk3):

"adw-gtk3-dark",

@mmstick
Copy link
Member

mmstick commented Sep 30, 2024

It's intended to use adw-gtk3 on COSMIC. It's not the Adwaita theme.

@fulalas
Copy link
Author

fulalas commented Sep 30, 2024

It's intended to use adw-gtk3 on COSMIC. It's not the Adwaita theme.

Sorry, this is just wrong since adw-gtk3 is not official so many users will have GTK3 light/dark theme broken in COSMIC.

@mmstick
Copy link
Member

mmstick commented Sep 30, 2024

As above, it is used by COSMIC for GTK3 theme support. GTK3 applications will inherit the chosen COSMIC color scheme.

@fulalas
Copy link
Author

fulalas commented Oct 1, 2024

I'm not following you.

I decided to install adw-gtk3 theme (which includes adw-gtk3-dark) and here's the result:

1.mp4

I'm not showing in the video, but if I run gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3-dark' the application changes to dark mode.

So it seems we have 2 problems here:

  1. cosmic-settings-daemon, although running, it's not calling gsetttings... when I change the appearance from light to dark and vice-versa in cosmic-settings
  2. cosmic-settings-daemon is assuming adw-gtk3 theme is installed, which is not standard (i.e. it should be Adwaita)

@mmstick
Copy link
Member

mmstick commented Oct 1, 2024

As mentioned previously on the other issue, cosmic-settings-daemon will only use adw-gtk3 if global GTK theme support is enabled in the experimental settings context drawer on the appearance settings page. This matches the COSMIC color scheme to all GTK3, GTK4, and libadwaita applications.

@fulalas
Copy link
Author

fulalas commented Oct 1, 2024

OK, enabling this make it work:

Screenshot_2024-10-01_14-36-36

But very often it takes a long time (30 seconds or so) for the theme to be updated in GTK3 applications after I switch the appearance from dark to light and vice-versa, and even restarting the GTK3 application. The COSMIC apps change instantly though.

Also, cosmic-session is constantly crashing in VirtualBox 7.1.2 (the reason why recording a video is almost impossible):

simplescreenrecorder-2024-10-01_14.55.00.mp4

In my real machine changing the display scale usually freezes the machine with no way to get back unless powering off/on

I know it's still in alpha, but my suggestion is to give priority to crashes. Also, documenting the requirements, like this non-official obscure adw-gtk3.

Thanks!

@mmstick
Copy link
Member

mmstick commented Oct 1, 2024

If you are using a virtual machine, you must enable OpenGL hardware acceleration. Then you won't have crashes anymore.

@fulalas
Copy link
Author

fulalas commented Oct 1, 2024

You mean this Enable 3D Acceleration, like this?

virtualbox

COSMIC doesn't even boot with this unchecked.

The same system running GNOME gives me this and OpenGL and GNOME animations just work:

gnome

@mmstick
Copy link
Member

mmstick commented Oct 2, 2024

Try a different graphics controller. Some will require that you install virtualbox guest additions in the VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants