-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Finding and solving theming issues #125
Comments
Thanks! I might make wiki entries for some of those things. |
@VerMishelb How do you fix issues with the aerolite style ? I encounter the same issues. |
Keeping the .msstyles file name as |
It doesn't work for me. Even copying the original folder exactly, the style is corrupted. |
Are you testing it using the editor's test feature or by saving and applying it using SecureUX/UltraUX? |
I just did (I have UltraUX) it works. It's just that it doesn't work with msstyleeditor's "test" function. |
If I remember correctly from some other issue, msstyleEditor saves the theme in Documents when the test button is used, but I'm not sure whether it keeps the name. I suppose the test fails due to that. |
Its saved in /Users/Public/ under a random name, and removed once the test is stopped or the application exits. |
I suppose it would be better to create a folder with random name instead and put the test theme inside it as "aero.msstyles" then? I'm still not sure whether there is a difference between "aero" and "aerolite" names. |
It does not work. In fact, if I modify aerolite, put it in another folder but with the same name, it applies the style but without the modifications. If I rename it, it applies the modifications but with the errors. I'm talking about the style applied without msstyleEditor. |
Have you tried removing the cache file in VSCache? |
Where is it stored ? |
|
The VSCache folder is empty. |
It works ! I showed hidden files (showing system files doesn't change anything, for some reason) in the edited visual style folder, and the Many thanks ! |
If not, I thought about the question, I thought that the corruption of aerolite may be related to the .mui file or to the shellstyle.dll. Maybe shellstyle or mui needs the exact name. |
I've had that idea but simply renaming the mui and putting it near msstyles so it could find it didn't seem to help. |
There's another theming issue that I and a lot of others have run into, maybe you can help? Certain elements of the Control Panel, like the sidebar, don't get themed correctly by dark themes. I've seen it frequently with the custom msstyles from Rectify11, but not exclusively. This is one example of many issues about it: Rectify11/Installer#288. One of the devs there just said "patch shell32.dll.mun in icons" which evidently is something you can do in Rectify11, but I don't know if it's something SecureUXTheme can do. That dev said in a similar issue "it's a microsoft issue and i can't do much about it" (namazso/SecureUxTheme#67). Is there something that could be edited within the style to fix this part of Control Panel? |
Files ending with .mun are simply resource files which can easily be opened and redacted using resource hacker. They are now used instead of storing everything inside of a dll for many system files. The problem is that this is not much of a portable solution as it requires you to take ownership over that file and keep a backup in order to survive unfortunate editing attempt by restoring the file through the recovery console. I doubt msstyles can solve this. The control panel sidebar (at least in Win10) can be solved using oldnewexplorer, though. I've described that in the main post. The modifications it makes actually support and use msstyles instead of muns. Maybe ExplorerPatcher can do the trick? (sorry for many edits, I just can't build a complete message currently for some reason). |
Those white elements are not handled by the .msstyles theme but by the undocumented DirectUI API.
To get rid of those in win10/11 use one of the below:
|
Wow, that was a very fast and informative response, thank you! I think I'll try manual patching with Resource Redirect and seehow it goes. (And if its too much work/too buggy, frankly I might just leave it as-is. Control Panel is the ONLY affected program I've noticed, and I don't use it super often.) The one thing I don't quite understand is why every single person who uses SecureUXTheme for darker theming isn't complaining about it; if it's something an msstyles can't fix then I'd expect it to be universally present bug. Idk maybe the bug only appeared with a recent windows update? |
That white background was always there. Forgot to tell that DUI files (UIFILEs) in most cases are already precompiled in the resources. You need to extract and decompile them in a duixml format to be able to read the code. For that you either use DuiTool or uib2t |
I think I've managed to win the .mui issue. Edited the main post to include the alternative solution to unskinned elements. Tested this just now with vaporvance's Aero10 and it seems to work fine. UPD: Nah, I take my words back, that did not work. |
This issue is a collection of theming issues I personally faced and solutions to them when discovered, because creating a separate issue for these is a wastage and some of these are unlikely to be caused by msstyleEditor itself but by a series of unfortunate factors (or by both).
Issue: Corrupted colour and margin settings for some elements.
Solution: Keep the .msstyles file name "aero.msstyles" or "aerolite.msstyles" and install OldNewExplorer if some elements are still not modified (alternatively, a Windhawk mod "UIFILE Override" is said to do the same).
Alternative solution (longer but doesn't require modifying the path in .theme):
WARNING: The following doesn't seem to work for me anymore for some reason. The safest option is to use the solution above.
Find the "en-US" folder of the theme, it must contain the .mui resource. Copy it over and change to your own language (e.g. ru-RU). Open the copy up and open the .mui using ResourceHacker. From actions menu select "Change Language for All Resources" and select your own (e.g. "Russian", "DEFAULT"). The first resource in the .mui has a language code too. Export that resource as a .bin, edit it with a HEX editor (HxD, ImHex) and replace the en-US part with your own (don't break the null bytes between letters, the encoding here is UTF-16!). Save the result, replace the resource in ResourceHacker and save the edited .mui. Now it should work correctly.
Effect:
Examples
Firefox title bar buttons are corrupted. Note how the tab text is white even though it should be black, making it unreadable.
aerolite — checkboxes, buttons and some other elements have corrupted properties
Luna10 by vprvnc — colourisation issues unless msstyles was renamed
Issue: Some parts are corrupted or don't have updated properties. Some images use the image file that is long gone.
Solution: Disable "Hide system files" and enable "Show hidden files" in explorer settings. Take ownership of
C:\Windows\Resources\Themes\aero\VSCache
, remove the corresponding cache file, re-apply the theme.Issue: Some elements refuse to read new properties.
Solution:
TBAMight be another case of the aforementioned issue.Effect: #122 (comment)
Issue: Frame borders are not applied whatsoever on one machine but work just fine on another machine.
Solution: The theme might be using window shadows instead to achieve an authentic look. Enable window shadows.
Effect:
Image
Luna10 by vprvnc
My friend's machine:
My own machine: (note that the screenshot features oldnewexplorer, but the issue affects all windows)
I will be editing this main post whenever I face something else.
The text was updated successfully, but these errors were encountered: