-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
OS rejects style #29
Comments
Sounds weird to me that WSB and my tool won't work, but other custom themes do...because this are the only tools (afaik) that could have created those custom themes. To find the problem, could you:
I'll then do a binary comparison between the original, your saved file and my saved file (that i'll create) and try to figure out what went wrong. |
Thanks for your quick reply! I tried it using the standard aero file and a custom theme called junguru I attached a .zip containing the files you requested: |
The working and not-working files are exactly the same. Not a byte different... so i am not wiser than before. Could you use this version and try to apply the theme themes with it as well? |
According to the docs on MSDN this means:
So it looks like windows expects a resource, but cannot find it. Without seeing the style thats hard to tell. |
Here you go! It's the default aero file, with nothing changed. I have tried loading it through msstyleeditor and it gives me the error, I used the file as a test |
I tested a bit, but the save msstyleEditor produces is fine, so it's something else. Unfortunately I don't currently have a system where i can reproduce this issue so i am limited to guesses. Could you try to copy the You should get a structure like this:
Then try to test a theme with the msstyleEditor again. Maybe Windows now requires to have those files nearby. |
Hi, I'm having the same problem :-( |
tried it too |
@nptr - I can confirm I'm having the same issue. file: aero.msstyles (stock Win 10 v1903 - May 2019 update) If I save the file to my desktop (with modifications) and copy it to the theme folder in Resources then I can load the theme normally in Personalization, and I see it is working. Just doesn't want to test in your program. EDIT: I get the same issue in WSB. It won't load the default aero.msstyles for testing either. Maybe it has something to do with a digital signature? Other custom msstyles from other users/themers work and load for testing just fine. One thing - I can't save and overwrite an msstyles file. Is that intentional? If possible, I'd prefer to be able to overwrite. Other than that, VERY NICE program! I like the layout much better than in WSB. WSB sometimes gives me a headache. The layout of your program, and the way you explained how classes/parts/properties work was VERY helpful. Any chance you can add a filter, instead of just CTRL+F when searching for classes and parts? |
I've been thinking about this issue:
Maybe the issue is how you are calling the function to implement the theme? Or as stated before, a resource might be missing. There is a VSCache folder whose contents cannot be copied in the default aero theme folder. I don't need to copy this folder in order to open up the msstyles file and edit it, nor do I need the VSCache folder for applying the theme in Personalization after I've edited it. It's only when trying to test the theme copied from the default aero.msstyles that this happens. Maybe if we can identify the exact resource missing, we can remove it from msstyles? |
It was intentional, yes. Technically it was never necessary as far as i remember, but was a convenient and quick fix at the time. I should be able to remove this restriction and provide a more standard save behaviour.
Can you specify this in greater detail? A textbox with the filter expression somewhere, that prunes the items in the tree view (left) and propery view (right) ? Or a separate dialog with filter textbox and a list of all found items? Edit: just saw your post on issue #23 with some details. It still would be nice to have your opinion on my two suggestion above. (Lets continue that on #23) Also, good to hear such a positive feedback, thank you! Also a thank you for sharing your investigation results.
I tried to set up a Win10 box for testing a while ago, but it refused to correctly boot in my VMWare VM, and i just let it be. I'll have to try again and dive into this issue, so i don't just make blind guesses. Monitoring the call Win10 does to apply the style is already on my list, as is monitoring the external resources. This VSCache (or caching issues in general) sound interesting too, ill look into it as well. |
Hi,
Not sure if any of that is relevant, but thought it best to share it just in case it helps. Also for me, the styles don't get applied when test does function. OK I did some more testing using autoit to just call on uxtheme.dll directly and found that if I'm calling on .msstyles file that has been saved with your app, it won't load, unless i first patch it with ThemeTool. Once it's patched, the dll will load the theme with no issues. Weirdly even running Test successfully on a file that Is patched doesn't actually visually apply the style using your app, but running the same file through the dll using autoit does apply it. Here's the code I'm using. I'm able to apply style files from other folders such as Desktop too, as long as they have already been patched after editing.
|
Yes, its indeed %PUBLIC%\Documents, I was writing from memory and erred on on this. But anything in "public" is fine. The signature thing is key information! I suspected something like this but never went deeper. The "Test" feature doesn't work on the original file but a file written by the editor. Even if no modifications were made. The signature is lost just like when saving the file. Thanks for the hints, much appreciated! :) I'll try to get a release out soon. |
@dt192 |
@nptr
NOT WORKING:
|
OK, just tested again and in all cases themes are now reverting on test end. I'll let you know if I work out why it wasn't working before. |
I wasn't able to replicate that issue above, so not sure why it wasn't working first time. I also tested applying a theme signed with your app via ThemeTool and that also worked fine. Seems all is fine other than applying a windows default theme. |
Thanks for all your effort, that helps me a lot! (I don't have a Win10 machine where I can easily develop and test on) I think I know why reverting didn't work. I restored the theme with different flags than used when applying it. No idea about the issue with the default theme. I'll track that issue separately in #48. |
When I open any theme in the editor (original aero.msstyle or any custom theme) I can't test it 'because the OS rejects it' even before I changed anything. If I save it and move it to it's corresponding directory in /Windows/Resources and change the theme it will just keep the skins, color etc of the last theme that was active. I also tried Visual Style Builder and it behaved in the same way. I have patched the system with UX Patcher and other custom themes from the net work perfectly well.
OS: Windows Pro x64
10.0.17763 Bld. 17763
Thanks in advance.
The text was updated successfully, but these errors were encountered: