-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Filter screenshots by environment #2210
Comments
If the environment (if any) does not match the prefer dark setup. Won't consider null environments.
Will read the environment property of the screenshot and will only show them if prefer dark mode is enabled in the system and the screenshot has a dark mode environment (i.e. has ':dark' in the environment id). Won't consider null environments in the screenshots.
Keeping this issue open since we now have dark mode filtering but not desktop environment filtering |
I can definitely get the desktop environment via Let's see, for example, Harvey. The application has two screenshots. Their environment IDs on one is pantheon:dark and the other is pantheon If I happen to be on GNOME for example, the environment ID will not match the XDG_SESSION_DESKTOP environment variable, and this would result in no screenshots. Would this be an acceptable filter? Or would you rather have at least one screenshot if nothing matches? It's a bit important since the latter would surely involve a bit of more code to guarantee at least one screenshot if nothing matches... would probably be best to actually filter the screenshots by DE and style (dark, light) with And if you don't find anything then grab the first screenshot at the very least I suppose. I would still not take into account null environment screenshots, though. Just wanting to understand what would be preferable here. It seems that latter option would be the actual complete solution for this allowing to have all the proper screenshots first and make it easy to verify if there is at least a screenshot that matches the filter (otherwise, leave the first screenshot, whatever it is and leave it like that) |
Yeah I think what we want to do is, if we can get Pantheon screenshots, use those. But if we can't, use whatever is available. Prioritizing the desktop, then light or dark So for example if we have a list that's If we have If we have If we only have |
Problem
Apps can provide multiple screenshots for different desktop environments or using light and dark styles. There is a way now in appstream for developers to declare the environment of a screenshot, but AppCenter just shows all screenshots
Proposal
Filter screenshots to match the current desktop environment and match the dark/light style preference. For example, Harvey should show the light screenshot in light mode and the dark screenshot in dark mode, but not both
Prior Art (Optional)
No response
The text was updated successfully, but these errors were encountered: