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

eog: init #781

Merged
merged 1 commit into from
Jan 20, 2025
Merged

eog: init #781

merged 1 commit into from
Jan 20, 2025

Conversation

LemmusLemmus
Copy link
Contributor

@LemmusLemmus LemmusLemmus commented Jan 19, 2025

This PR simply sets the background color of the GNOME image viewer when an image is open.

It is also possible to change the background color for transparent images (i.e. replace the check pattern with a plain color), which I personally prefer but it can make certain images hard to see if they are similar in color to the background. So maybe it should be left unchanged?

I tried adding a testbed, but the changes will only be visible once eog opens an image, and I do not know to configure the testbed to start eog with an image as the argument.

Copy link
Owner

@danth danth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected on my machine.

However, it seems that in recent versions of GNOME, the default image viewer is Loupe, not Eye of GNOME. I'd recommend we change the description of the target to make this clear. Something like "Eye of GNOME" or "Eye of GNOME image viewer" would be reasonable.


Regarding the testbed, I think you could use makeDesktopItem to create a new desktop entry which opens eog with some image. Then, use the stylix.testbed.application options with that desktop entry as the package.

Alternatively, don't use stylix.testbed.application, and instead configure the VM manually, using whatever method works best.

Adding a testbed is not a requirement for this PR to merge.

@LemmusLemmus
Copy link
Contributor Author

LemmusLemmus commented Jan 20, 2025

I just took the description from nixpkgs, but I fully agree that e.g. "Eye of GNOME Image Viewer" would be a lot more reasonable in light of there being other GNOME image viewers (as a non-GNOME user, I was not aware of Loupe!). It should be fixed now!

Yeah, I will save making a proper testbed for another more interesting PR...

Copy link
Owner

@danth danth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. Thank you!

@danth danth merged commit 268daf2 into danth:master Jan 20, 2025
49 checks passed
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

Successfully merging this pull request may close these issues.

2 participants