-
Notifications
You must be signed in to change notification settings - Fork 806
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
Distinguish Folder Icon From Application Icon #2903
Comments
@jancborchardt what do you think? |
I was actually giving some thought to folder icons just now, and it does seem like it would be reasonable for them to both be themed and be distinct from the application icon. I'm not familiar with Windows 10 icon-design norms, though. |
FWIW it could also be nice for Nextcloud to use a full-bleed Start Tile icon, if those are still a thing. |
I decided to do some quick folder-icon mockups for a Nextcloud folder on Windows 10. I was able to extract two different folder icons from a Windows DLL, and all I did was recolor them and on one of them add a Nextcloud logo. Because of copyright and whatnot, it might be preferable to do a custom SVG icon set based on more or less the same outline, with the added benefit of easier theming. (The only common image format that supports "recolor" layers is PSD, which isn't FOSS and isn't particularly easy to manipulate programmatically.) Anyway, here are the extremely preliminary mockups: Again, another advantage with SVG is that it would be somewhat easier to programmatically theme the icon based on an OEM's brand colors and/or symbolic logo. Linux Mint has a Python script for rasterizing SVG icons, and I imagine it wouldn't be too difficult to adapt to spit out Windows ICO files instead. I imagine the color fill and possibly even the logo could be added using an additional script, though that's a bit beyond the scope at the moment. One other thing worth mentioning is that it's common for smaller sizes of icons to use simpler glyphs. So the smaller sizes of the Nextcloud folder icon might just be the Nextcloud logo itself, rather than a folder or even a circle. See, for comparison, the OneDrive sidebar icon that is enabled by default in Windows Explorer (in contrast to the "Music" icon above it, which for whatever reason still features the folder symbol): |
As for Start Menu Tile icons, it looks like they're part of the VisualElementsManifest: https://docs.microsoft.com/en-us/windows/uwp/design/style/app-icons-and-logos |
I did some further digging, and this StackOverflow answer explains how to set a folder icon programmatically in Windows. The only related class in Qt appears to be QFileIconProvider, but it only seems to apply to icons within the application, not icons as they appear in the operating system's file browser. |
It looks like the code that sets the folder icon is here: desktop/src/common/utility_win.cpp Lines 41 to 51 in fbd9f51
|
It seems like the easiest way to use a folder icon would be to add it as the second icon in the
The second icon would have to be added somewhere in AddAppIconMacro.cmake. I can dig further. |
@elsiehupp how do others like Dropbox and Google Drive solve this issue on Windows, which kind of separate icons do they have? |
Yes, looks like you're on the right track there.
Yep, I think this macro is a bit moody though. Be careful, here lie dragons. ;-) |
I had been working on a Nextcloud folder-icon set based on the Windows 10 folder icons, but then Microsoft up and released a major update to the Windows 10 icon theme: I have not been able to get Windows installed on my computer—the Windows installer doesn’t like my partitioning scheme—so I don’t have an easy way of accessing the DLLs containing the new icons for the purpose of extracting them. If any of you have a working copy of Windows with the new icons installed, could you try and get me a copy of the new |
I suggest You to get official microsoft VM's. |
For a variety of reasons I would prefer to get an actual normal Windows 10 install up and running. I did get a Windows 10 VM running previously, but among other things it didn’t automatically activate with my hardware profile. (My main Linux PC shipped with Windows preinstalled, so I have an OEM license with no printed key.) |
Since the Pull Request with the above comment got merged, I figured here might be a better place to mention that Microsoft recently announced the upcoming availability of a third-party API for Windows 11 Widgets. This API will be based on Microsoft's cross-platform Adaptive Cards platform, so it might actually be worth engaging with at some point. Yes, Windows 11 widgets are a bit off-topic for this particular thread, but I didn't feel like creating an entirely new Issue just to follow up. (It also sounds like the "Adaptive Cards" platform might be more relevant to Nextcloud Server than Nextcloud Desktop, though any Nextcloud Adaptive Card would presumably also have platform-specific local/offline extensions.) |
Anyway, if anyone here does have an installed copy of Windows 11 that they can use to get copies of the DLLs containing the new icon set, feel free to send me the DLLs so I can extract the folder icons to use them as design templates. (I could also probably download the DLLs from some sketchy website like I ended up doing with the Windows 10 ones, but I haven't really looked into it since Windows 11 was widely released.) |
I just found a set of extracted icons from Windows 11, so that should be a good starting place for this! |
Hello, thank you for opening the request. |
I would like enchancement that distinguish betwen app and nextcloud folder, because right now they look the same.
Expected behaviour
User should know what is gonna open
Actual behaviour
You cant tell if u open app or folder
Steps to reproduce
Client configuration
Client version: 3.1.2
Operating system:
Windows
OS language:
Irrelevant
Installation path of client:
Standard
The text was updated successfully, but these errors were encountered: