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
Support light/dark variants for screenshots #304
Comments
|
We'll have such a combinatorial explosion with screenshots - every one of them can not only be translated into any language but also be available in variants... <screenshot>
<image environment="plasma">https://example.org/example-on-plasma.png</image>
<image environment="elementary">https://example.org/example-on-elementary.png</image>
<image environment="elementary:dark">https://example.org/example-on-elementary-dark-theme.png</image>
<image>https://example.org/example-on-gnome_fallback.png</image>
</screenshot>(so, The thing is, any such change will necessarily be backwards-incompatible on the XML level - however, now that GNOME Software uses libappstream, the impact of such changes will be less severe and newer libappstream releases can abstract the differences away in their API (would still mean though that any older libappstream versions would just show all screenshots for all environments unconditionally, which is a reason why I am never massively thrilled about these changes). In any case, the rationale makes sense, and even though I thing this feature would be used very little, having the software center show a preview of how the app would look like in the current environment would be a pretty nice touch! |
|
I think that it's safe to say that everything around customization/accent colors/theming is a bit in the air right now. I would therefore suggest adapting the /cc @FHEK789 @bertob |
I mean realistically the only way to fix that is with programmatic tooling to set up apps in specifc situations (example content and the like), and then re-generate all screenshots automatically on every release. Translated screenshots already aren't feasible without that, regardless of other factors. |
|
Having a |
|
@ximion from the AppCenter perspective, showing light and dark variants next to each other doesn't seem like a big deal; app developers already often include both in their screenshot sets to show what it looks like and so this wouldn't be a change for our users. |
From GNOME's side we have created our own screenshots guidelines and can hold adding dark screenshots until there is proper support (it's already referencing this issue.) I also don't think that other app developers will adopt it too rapidly.
In theory, the schemes currently are no-preference, light, dark. But that sounds odd for screenshots? It would probably be good to stay somewhat in sync with the standard desktops use. Prefer light is reserved for future use IIRC and actually has no meaning currently? Pining @Exalm to avoid making a mistake here. Do you have any input?
Agreed, partially we already have this problem :) |
|
Fonts are a slightly special case where light/dark variants would be useful, as the foreground colour that the fonts are rendered with would be different in both cases. See https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1716 |
|
Since we now have |
Too add to this, with respect of the fonts, the |
|
@mcrha Do you think we could expect software centers to just invert colors for fonts on a dark theme? (I'm pretty sure I know the answer to that question, but just in case - adding any additional property to the |
|
Inverting colors on the colored icons is something you do not want to do, I'm afraid. The fonts (and tools and some other "symbolic" icons) are possible, though. Is there any (easy) way to do it, please? Having the software centers as an image editing software doesn't sound too good. I mean, inverting the icons for certain types of app where it's assured it's just black&white&transparent is fine by me, expecting the image is provided for the light theme. I only did not think of it due to not much interest in the image editing routines being part of the app. |
|
Right, some fonts are bitmap fonts. Hrm. I see (at least some) icons are 8-bit sRGB PNG files, not a 1-bit or something. |
|
Oh crap |
Thanks, that was basically my point, to not forget of the icons. I'm sorry if I've been confusing. |
Not at all, I genuinely didn't have this on my radar... |

The web lets you set an alternate source for images for
prefers-color-scheme: dark. Something similar would be nice for AppStream so software centers could choose to show the correct light or dark screenshot by default for apps depending on the system's light or dark state.The text was updated successfully, but these errors were encountered: