HOME | DD

Published: 2008-05-14 16:11:38 +0000 UTC; Views: 7801; Favourites: 11; Downloads: 317
Redirect to original
Description
Changing the looking of vista visual style.[on a position that the font letters would be on the center of the height of your Header.Item on explore, updated with 2 methods!
1. method
Changing the height of Header.Item for Windows Vista :
[this method has minor ''bugs'' as on welcome center of shorter first mouse over horizontal line ,and to the position of top arrow on scrolbar on a window(explorer style) also [both are 4 pixels up)see picture.
[for a perfect solution must be found the hex adresses of tabitem properties and do the hex editing changes on variant of visual style, so for that see 2nd method]
-----------------------------------------------------------------------------------------------------------
1st method[more simple but with minor bugs]
Open your shellstyle.dll with resource hacker, [open uifile/1/1033], then select view , find text and writte : clientviewhost
then add a new line code named : padding="rect(0rp,-4rp,0rp,0rp)" to look like
-----------------------------------
background="themeable(ARGB(0, 252, 252, 252), window)"
sortcolumn="themeable(ARGB(0, 252, 252, 252), window)"
padding="rect(0rp,-4rp,0rp,0rp)"
subtext="ARGB(255, 139, 139, 139)"
animation="rectangle|s|fast"
------------------------------------------
then select again view , find next and again add the line padding="rect(0rp,-4rp,0rp,0rp)" , to any of the
then select compile script, and save it.
-------------------------------------------------------------------------
You can change those values, specialy for the height change the second value[-4] (of padding="rect(0rp,-4rp,0rp,0rp)")for making your desired height of tab item size.
After doing these you must redesign the images 551,552,554,556,558,559[chage the internal shapes of them, not resize them] of Images of windows vista visual style.
--------------------------------------------------------------------------
The conclusion of this and many other changings is that on vista visual style does not exist code that existed on xp.
---------------------------------------------------------------------------
For a perfect solution as i have written , mut be found and changed hex adresses on Variant.
[SO with the new ukintel's work ([HEX EDITING] IMAGE and CONTENTS MARGINS - Modify Vista Image properties) could make a better solution SEE [link] ]
SO see the 2nd metod:
------------------------------------------------------------------------------
2. method [you must have knowlege on hex editing] (for header.Item on explorer)
Using the second method , we dont change shellstyle.dll parameters [ if you have done please set on parameter padding="rect(0rp,-4rp,0rp,0rp)" to padding="rect(0rp,0rp,0rp,0rp)" ].
2nd method. ( not having the bugs appearing in the 1st)
We must find on code where are the positions of the images that we use on tab items and then changing the IMAGE MARGINS and the CONTENTS MARGINS.
so we open with resource hacker the visual style, then select Variant , Normal, 1033 .
then select Action, Save recource as a binary file, select save it as Variant.
Open this Variant with hex EDITOR like Tiny Hexer, then search for images 551 ---> 2702 , 552 ---> 2802 , 554 ---> 2A02 , 559 ---> 2F02 .
Make sure you are NOT using "Insert Mode" (View/insert mode) as we only want to overwrite the hex code.
now i explain how to do that: press Ctrl and F , AND on the search menu of Tiny Hexer writte 2702 [ this is the hex number for 551.png image of tab items], then you see a part with numbers.
use the number TEN=10(s) as a marker. (after the second 10 is image margins) (after the third 10 is contents margins)
After you do this for all the images i described.[searching for 2702,2802 ,2A02,2F02]
Then save it.
YOU reopen resource hacker select Variant , Normal, 1033 , right clik to 1033 and select Replace resource , then open file with the new resource and save it as :VARIANT/NORMAL/1033.
Then resize image 551 to 20x204 , 552 and 554 to 20x51 and image 559 to 15x34.[width x height]
THATS it.
Thanks to Uk intel for the new method.
[also thanks to psycob because he had show us how to search on code, on past]
-------------------------------------------------------------------------------------
hope in future having a more specific solution.
you can also make your experiments with the values are marked to the images, or with the designing of images, for having better results[but be carefull with the height of distances].
this modification it works, thou i know that pechaps need more work, for been more accurate.
This must be known because i feel responsible for it.
there are many parameters not ''translated'' yet, like :
[Header.HeaderItem]
AccentColorHint =
Bgtype = imagefile
ContentMargins =
FillColorHint =
ImageCount = 12
ImageFile = 551
ImageLayout =
SizingMargins =
SizingType =
Transparent =
[Header]
Bgtype = imagefile
ImageFile =559
SizingMargins =
SizingType =
TRANSPARENT =
[also psycob in his bister theme use as sizing margins (on 551) : 02, 02, 07, 08] and for 559 i suggest : 02, 00, 07, 08 . ]
so, this is just a start, hope with help , could be better one, so to be images appearing more accurate.
enjoy.
Related content
Comments: 19
Chozo4 [2015-09-16 02:09:11 +0000 UTC]
Nice work and works well to hide them altogether even. However, I do question if there is any way to make it whereas they are shown only for the 'details' view mode and hidden for everything else [such as tiles, list, etc view]. I've been trying to convert an XP theme over to vista for personal use and hiding a lot of the non-xp elements. The header items are one of such features that feel very out of place outside the details view.
π: 0 β©: 1
ZEUSosX In reply to Chozo4 [2015-10-06 20:48:38 +0000 UTC]
i have not vista right now> the second method refer here works only forΒ 'details' view modeΒ .
π: 0 β©: 0
mik2b [2008-11-22 12:19:14 +0000 UTC]
Hello,
I don't understand how can you change height.
I'm doing the 2nd method.
Image and content margins don't change image dimensions, I think; and not image resizing either.
I did this steps, but tabs are 2px more height than yours (mine it's 19px and yours 17px). What I'm doing wrong?
What I have to change if I want to change height to 15px, for example? I have to change image and content margins, or only resizing this images?
I will be very grateful if you can explain me it a little...
Thank you.
π: 0 β©: 1
ZEUSosX In reply to mik2b [2008-12-04 21:16:00 +0000 UTC]
-----------
for 15 px i have not done the experiment, so yes must changed sizing and content margins, and resizing the images both (as on any changing).
it would be possible for 15px to change the size of the font, thou i have not done it.
---------------------------
if you use vista style builder it is easier and quiqer to do this kind of experiments.
π: 0 β©: 1
ZEUSosX In reply to ZEUSosX [2008-12-04 21:43:02 +0000 UTC]
also its possible that you must resize images 558, 556,557, 553 [or some of them].
π: 0 β©: 0
Miretank [2008-05-23 17:16:09 +0000 UTC]
Awesome. And many regards to UkIntel and psycoB
π: 0 β©: 1
ZEUSosX In reply to Miretank [2008-05-23 22:10:51 +0000 UTC]
thank you.
ofcource many regards to UkIntel and psycoB.
also remember that this is not a final solution but a solution for now.
hope in future having a more specific solution.
π: 0 β©: 0
ZEUSosX In reply to WhiteFlash92 [2008-05-17 15:47:45 +0000 UTC]
thank you WhiteFlash92.
π: 0 β©: 0
Michel8170 [2008-05-14 17:32:00 +0000 UTC]
Agree, that's another nice info
I have to test this right away
π: 0 β©: 2
ZEUSosX In reply to Michel8170 [2008-05-15 10:40:04 +0000 UTC]
[hope with the new ukintel's work ([HEX EDITING] IMAGE and CONTENTS MARGINS - Modify Vista Image properties)[link] could make a better solution]
π: 0 β©: 1
Michel8170 In reply to ZEUSosX [2008-05-15 16:52:45 +0000 UTC]
Thanks for the link, Pavlos
I'll check it out
π: 0 β©: 1
ZEUSosX In reply to Michel8170 [2008-05-16 08:32:48 +0000 UTC]
updated. here i have written hex editing solution for tab item height size for windows vista, see please 2nd method.
π: 0 β©: 0
DM-moinmoin [2008-05-14 17:15:01 +0000 UTC]
Great Tutorial. Many thanks, ZEUSosX
PS: Can i translate this for the german wiki?
π: 0 β©: 1
ZEUSosX In reply to DM-moinmoin [2008-05-14 20:33:03 +0000 UTC]
ofcource you can translate it but please you must know this: this is not a perfect solution.
the perfect solution could be made only with hex editing changing values, but since today those are not known to us [exept topsycob which i have pleased to give but he didnot reply]
so my solution its not perfect and everyone to your wiki must know the 2 'minor' bugs that made : on welcome center of shorter first mouse over horizontal line ,and to the position of top arrow on scrolbar on a window(explorer style) also [both are 4 pixels up)see picture.
This is the reason that i did not realeased it yet.
but because there since today no other solution , i realease it for anyone want to use it.
the 'good' one is that in my solution everyone can very ease control it.
so please translate and also writte this to your amazing wiki: until there is no other solution for changing tab item height , you can use this.
[also reffer the images i describe must changed 551,552,554,556,558,559, or be transparent like i did to 558 because on a small tab item area it did not look well].
thank you for your comments moinmoin.
π: 0 β©: 1
ZEUSosX In reply to ZEUSosX [2008-05-16 09:19:07 +0000 UTC]
now you can translate the 2nd solution which is the most accuratw.
-------------------------------
personally from the 1 st i understood more things about the windows vista visyal style construction thou the 2nd method is the most accurate for tab item changing.
π: 0 β©: 0