flathub / io.ente.auth

https://flathub.org/apps/details/io.ente.auth
4 stars 1 forks source link

GTK Integration Issue #3

Open Cybercountry opened 2 weeks ago

Cybercountry commented 2 weeks ago

The application does not seem to adhere to the system's GTK theme, resulting in a non-native appearance.

Error Messages:

Upon launching the application, I encountered the following messages in the terminal:

Gtk-Message: 09:55:52.090: Failed to load module "xapp-gtk3-module"
flutter: [ente_logging] [INFO] [2024-10-07 09:55:52.353624] log file for today: File: '/home/[user]/.var/app/io.ente.auth/data/enteauth/logs/2024-10-7.txt' with prefix 
flutter: [ente_logging] [INFO] [2024-10-07 09:55:52.353624] app version: '4.0.3+403'
flutter: [ente_logging] [INFO] [2024-10-07 09:55:52.353624] 
flutter: [main] [INFO] [2024-10-07 09:55:52.353685] Starting app in foreground
flutter: [Configuration] [INFO] [2024-10-07 09:55:52.353770] Skipping temp folder clear
(enteauth:2): Gdk-WARNING **: 09:55:52.562: Native Windows wider or taller than 32767 pixels are not supported
flutter: Building OnboardingPage
flutter: [UpdateService] [INFO] [2024-10-07 09:55:52.742655] Debouncing notification

Screenshot: image

Environment:

Thanks to those responsible for this Flatpak version of Ente Auth, it's a very grateful contribution.

prateekmedia commented 2 weeks ago

This seems more like a general flatpak issue more than an ente auth issue, correct me if I am wrong.

prateekmedia commented 2 weeks ago

See: https://gist.github.com/lmintmate/b512680c0d1ee8f41b8f43cd2c81dc2c

Cybercountry commented 2 weeks ago

This seems more like a general flatpak issue more than an ente auth issue, correct me if I am wrong.

I believe this could be true, since the same does not occur in the appimage version. However, I'm not sure if it could not be something related to flutter.

prateekmedia commented 2 weeks ago

Could you try some other gtk app flatpak and verify.

Cybercountry commented 2 weeks ago

Could you try some other gtk app flatpak and verify.

Among my applications, Ente Auth was the first one where this happened. The other applications, mainly after Gnome 47, adopt this bar: image

Cybercountry commented 2 weeks ago

Could you try some other gtk app flatpak and verify.

Among my applications, Ente Auth was the first one where this happened. The other applications, mainly after Gnome 47, adopt this bar: image

Another thing that could be related to dark/light mode. Ente Auth may not be recognizing my system's dark theme and displaying this bar.

prateekmedia commented 2 weeks ago

Ente Auth is a gtk 3 application, so might wanna see similar gtk 3 applications.

Cybercountry commented 2 weeks ago

Ente Auth is a gtk 3 application, so might wanna see similar gtk 3 applications.

I may be wrong, but I believe that signal is gtk3 too. But anyway, one that I'm sure is gtk3 is the email client I use, Geary: image

And GIMP: image

Cybercountry commented 2 weeks ago

Could you try some other gtk app flatpak and verify.

Among my applications, Ente Auth was the first one where this happened. The other applications, mainly after Gnome 47, adopt this bar: image

Another thing that could be related to dark/light mode. Ente Auth may not be recognizing my system's dark theme and displaying this bar.

Since I mentioned Geary, I remember that when I first installed it, it had the same issue: the top bar didn’t recognize the dark theme from my system. I looked through the project's repository issues extensively until I was able to fix it. Unfortunately, I don’t remember the exact steps I took, but I believe I installed something like org.gtk.Gtk3theme.adw-gtk3-dark and replace something from Geary. However, this was last year, so I’m not entirely sure of the process. I'll attach a screenshot showing how it looked back then. image

prateekmedia commented 2 weeks ago

You're right that was the fix. But since you are saying it didn't fixed for you, maybe you can try to set the theme to Dark theme from the side drawer although it may not be adapted by header.

Cybercountry commented 2 weeks ago

You're right that was the fix. But since you are saying it didn't fixed for you, maybe you can try to set the theme to Dark theme from the side drawer although it may not be adapted by header.

I tried opening Ente Auth with the following command: flatpak run --env=GTK_THEME=adw-gtk3-dark io.ente.auth

image

As you can see in the screenshot I attached, the application opened correctly with the bar recognizing the dark theme of my system. However, this setting is not saved, that is, after closing the application and launching it again from the desktop shortcut, it returns to the previous state.

Do you know if there is any way to make this setting permanent?

prateekmedia commented 2 weeks ago

Could you tweak the theme from gnome tweaks?

prateekmedia commented 2 weeks ago

Maybe changing gnome tweaks to dark theme would fix this.

prateekmedia commented 2 weeks ago

Also if you know Flatseal then you can manually add this environment variable to ente auth too.

Cybercountry commented 2 weeks ago

Also if you know Flatseal then you can manually add this environment variable to ente auth too.

Done! I set the following environment variable through Flatseal: GTK_THEME=adw-gtk3-dark And now it is working properly with dark mode! Thank you very much for your attention and support!