Home » U++ Library support » Look and Chameleon Technology » Office Ribbon skin
Re: Office Ribbon skin [message #11791 is a reply to message #11780] |
Wed, 26 September 2007 00:07 |
piratalp
Messages: 26 Registered: September 2007 Location: Argentina
|
Promising Member |
|
|
sergei wrote on Tue, 25 September 2007 13:12 | Yes, it mostly answers my questions, thanks. So, you're using: SColor*(System Colors) -> ChPalette -> Gradients/Blendings/...
The interesting part (for me at least) is SColor*(System Colors) -> ChPalette. For Office 2007 I see that you hardcode ChPalette. But (at least for Office 2003) it can be achieved from system colors. I've inspected ProfessionalColorTable as a reference, it used only 3 system colors for most of its 56 colors - window (SColorPaper), highlight (SColorHighlight), 3D face (SColorFace). Do you use these three too?
|
The answer to your question is yes.
But you're misunderstanding how the skin work, I'm not hardcoding an Office 2007 skin, what I'm hardcoding now is the Office 2007 Blue palette, returned by ChOffice2007Blue() as I said before, there is also ChSystemPalette(), and will be ChOffice2007Black(), ChOffice2007Silver(), ChXPBlue(), ChXPOlive(), ChXPSilver() and as many as we want, the skin will simply use the color from the palette YOU choose to render widgets in a ribbon style. For Office2003 look & feel, I'll make another skin (a piece of cake after ribbon is finished, just minor modifications) that ALSO will render widgets in ANY combination of colors..
Quote: |
And is this your ProfessionalColorTable alternative?
struct ChPalette {
Color FaceLight;
Color FaceMedium;
Color FaceNormal;
Color FaceDark;
Color FaceBorder;
Color FaceText;
}
If so, isn't that too few colors? E.g. what color is used for highlight? What for start/end of gradient in menu/button/pressed state? Or does ChPalette provide colors for future blending?
|
No, those 6 items represent just ONE final item (you can see it like SColorFace() divided in the 4-color needed to make the gradient + one for border + one for text), it is used in general items as I said in previous posts, there are also highlight, pressed & disabled combinations for general items, then start customized ones like menus & buttons..
Bests
|
|
|
|
|
Office Ribbon skin
By: mirek on Mon, 10 September 2007 19:15
|
|
|
Re: Any function to draw gradient color?
By: piratalp on Mon, 10 September 2007 20:33
|
|
|
Re: Any function to draw gradient color?
By: mirek on Mon, 10 September 2007 21:33
|
|
|
Re: Any function to draw gradient color?
By: piratalp on Tue, 11 September 2007 19:28
|
|
|
Re: Any function to draw gradient color?
By: mirek on Sat, 15 September 2007 10:30
|
|
|
Re: Any function to draw gradient color?
By: piratalp on Wed, 19 September 2007 20:58
|
|
|
Re: Any function to draw gradient color?
By: piratalp on Thu, 20 September 2007 00:25
|
|
|
Re: Any function to draw gradient color?
By: mirek on Sun, 23 September 2007 10:40
|
|
|
Re: Any function to draw gradient color?
By: mirek on Sun, 23 September 2007 10:41
|
|
|
Re: Any function to draw gradient color?
By: mirek on Sun, 23 September 2007 10:47
|
|
|
Re: Any function to draw gradient color?
By: piratalp on Mon, 24 September 2007 17:22
|
|
|
Re: Any function to draw gradient color?
By: mirek on Mon, 24 September 2007 19:29
|
|
|
Re: Any function to draw gradient color?
By: piratalp on Mon, 24 September 2007 21:19
|
|
|
Re: Any function to draw gradient color?
By: mirek on Mon, 24 September 2007 23:56
|
|
|
Re: Any function to draw gradient color?
By: piratalp on Tue, 25 September 2007 19:56
|
|
|
Re: Any function to draw gradient color?
By: mirek on Tue, 25 September 2007 23:00
|
|
|
Re: Office Ribbon Skin
By: piratalp on Wed, 26 September 2007 00:34
|
|
|
Re: Office Ribbon Skin
By: mirek on Wed, 26 September 2007 20:13
|
|
|
Re: Any function to draw gradient color?
By: Zardos on Mon, 10 September 2007 23:48
|
|
|
Re: Any function to draw gradient color?
By: unodgs on Tue, 11 September 2007 08:50
|
|
|
Re: Any function to draw gradient color?
By: piratalp on Tue, 11 September 2007 19:54
|
|
|
Re: Office Ribbon skin
By: sergei on Mon, 24 September 2007 02:51
|
|
|
Re: Office Ribbon skin
By: mirek on Mon, 24 September 2007 09:11
|
|
|
Re: Office Ribbon skin
By: piratalp on Mon, 24 September 2007 17:49
|
|
|
Re: Office Ribbon skin
By: sergei on Mon, 24 September 2007 19:28
|
|
|
Re: Office Ribbon skin
By: piratalp on Mon, 24 September 2007 21:05
|
|
|
Re: Office Ribbon skin
By: sergei on Mon, 24 September 2007 21:41
|
|
|
Re: Office Ribbon skin
By: piratalp on Tue, 25 September 2007 17:11
|
|
|
Re: Office Ribbon skin
By: sergei on Mon, 24 September 2007 23:59
|
|
|
Re: Office Ribbon skin
By: sergei on Tue, 25 September 2007 18:12
|
|
|
Re: Office Ribbon skin
By: piratalp on Wed, 26 September 2007 00:07
|
Goto Forum:
Current Time: Fri Apr 19 07:23:50 CEST 2024
Total time taken to generate the page: 0.03617 seconds
|