Vista Style Builder

   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Ribbon Skinning  (Read 6730 times)
3am
Beta Tester
Dedicated Helper
*
Posts: 2097



View Profile
« on: September 09, 2011, 09:56:16 pm »

Anybody know how to skin the ribbon in like Paint and Wordpad?

I can make a flat one in msstyles but it's only good in black & white. Otherwise:

1) Played with the bitmaps in UIRibbonRes.dll and got nothing
2) Opened the UIFILES res files and got nothing
3) Tried to hex edit some of it and got nothing
4) Disassembled it and got nothing

So if anybody is able to actually skin the ribbon please let me know how so I can do it too
Logged
ka-la
Guest
« Reply #1 on: September 10, 2011, 03:53:38 pm »

hardcoded... in office there is 3 options you can choose from... , ive used the ribbon wpf toolkit for visual studio and you can change the color of the ribbon from there but not after its compiled... i guess you are out of luck this time, but some sort of HEX might come thru.
Logged
3am
Beta Tester
Dedicated Helper
*
Posts: 2097



View Profile
« Reply #2 on: September 10, 2011, 05:01:13 pm »

Thanks. Also want to thank Panda X and davesenior for their help.

1) The background is hardcoded. In this case the ribbon is called "Scenic".
2) There is a property in msstyles such that if you change it's value it forces the ribbon into flat classic mode. Panda can't remember which property it is. I changed it unknowingly in my msstyles so I can have a flat black background. I've made so many changes it'd take me forever to find the right one so I'm not going to look for it.
3) The bitmaps in UIRibbonRes.dll are useable only when the ribbon is in classic mode.
4) So no transparency and likely no gradients are possible. Just a solid color and only if you've made the unknown property value change to force a classic ribbon look.
Logged
Dave Senior
Beta Tester
Dedicated Themer
*
Posts: 234

Why Windows 10 ? > 7 8 9 ??


View Profile
« Reply #3 on: September 10, 2011, 11:59:38 pm »

If you have :
    Fonts & System Metrics >BTNFACE:COLOR Black (rgb  0, 0, 0 )
                  "                      BTNTEXT:COLOR White (rgb 255, 255, 255 )
                                        /****   Has to be these colors  ****/
  ......it forces classic/high contrast  colors to show in the ribbon , so you'll be ok with your .msstyle, the rest of us are  .....d Huh?

Logged
3am
Beta Tester
Dedicated Helper
*
Posts: 2097



View Profile
« Reply #4 on: September 11, 2011, 12:27:36 am »

If you have :
    Fonts & System Metrics >BTNFACE:COLOR Black (rgb  0, 0, 0 )
                  "                      BTNTEXT:COLOR White (rgb 255, 255, 255 )
                                        /****   Has to be these colors  ****/
  ......it forces classic/high contrast  colors to show in the ribbon , so you'll be ok with your .msstyle, the rest of us are  .....d Huh?



Yeah that's it. Thanks. You make these black and white, ribbon goes classic, and then you can recolor the background of the ribbon anything solid using the bitmaps in UIRibbonRes.

Good to get that sorted out finally Smiley

Also works if BTNFACE:COLOR is white and BTNTEXT:COLOR is black.

I wonder why?
« Last Edit: September 11, 2011, 10:31:50 am by 3am » Logged
ezio84
Beginner
*
Posts: 36


View Profile
« Reply #5 on: February 05, 2013, 01:46:35 pm »

If you have :
    Fonts & System Metrics >BTNFACE:COLOR Black (rgb  0, 0, 0 )
                  "                      BTNTEXT:COLOR White (rgb 255, 255, 255 )
                                        /****   Has to be these colors  ****/
  ......it forces classic/high contrast  colors to show in the ribbon , so you'll be ok with your .msstyle, the rest of us are  .....d Huh?


Thank you so much for this workaround!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!