29. 10. 2010.

Kako dodati novi izgled starim programima?

Povremeno se naiđe na program koji izgledom odudara od uobičajenih grafičkih tema za Windows XP, odn. Windows 7. Često je takav program moguće prilagoditi okruženju ovih verzija Windows-a, i to na vrlo jednostavan način.

Sve što je potrebno uraditi jeste da se sledeći tekst snimi u folder u kome se nalazi taj "zastareli" program, i to sa imenom ImePrograma.exe.manifest (važno: ne sme imati nikakvu dodatnu ekstenziju!):

Windows XP:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="program" type="win32" />
<description>program</description>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" />
</dependentAssembly>
</dependency>
</assembly>

Windows 7:*
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity processorArchitecture="x86" version="5.1.0.0" type="win32" name="program"/>
<description>program</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
</application>
</compatibility>
<asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="x86"/>
</dependentAssembly>
</dependency>
</assembly>

Nakon toga, program bi trebao da dobije moderniji grafički izgled. Ukoliko se pojavi neki problem, sve što je potrebno jeste izbrisati ovaj manifest fajl.

Evo kako jedan program izgleda BEZ i SA manifestom (WinXP / Win7):




_____
* Hvala, voodoo_!
.

Nema komentara:

Objavi komentar

Related Posts Plugin for WordPress, Blogger...