Ribbon Theme

Re: Ribbon Theme

Postby James Bott » Fri Oct 05, 2018 3:33 pm

Ribbonbar Themes

I did find that there are two "dark" themes in Office 2016, the Black theme, and the Dark Gray theme. All the more reason we need some type of configuration file that we can use to store multiple themes. And a small utility program we can use to define each theme. And to make this simple, we need to eliminate the use of manifest constants and RGB values in the classes and replace them with variables.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Ribbon Theme

Postby James Bott » Fri Oct 05, 2018 4:09 pm

Silvio wrote: I saw the word 2016 have the tabs more big I think we can make it.

Yes, I have already done that. See my previous screenshots with both Word and my version of FWH's Ribbonbar.

oBar:nHeightFld := 22
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Ribbon Theme

Postby Silvio.Falconi » Fri Oct 05, 2018 4:31 pm

James is right all you sad

But wich color I need ?

I have a list of Office colors ( total 138 colors) (I found it on the web )
and I use a function made by me to select these colors on my application ( and not choose colors function )

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Ribbon Theme

Postby Silvio.Falconi » Fri Oct 05, 2018 4:46 pm

Image

I think

oRebar:nHeightFld := 22
oRebar:hSeparation := 6

the tabs are more near to another look the image

then I found this at word2016

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Ribbon Theme

Postby James Bott » Fri Oct 05, 2018 5:29 pm

Silvio,

I have been getting the Office colors using screenshots from the web, and a utility program to read the colors off the screen. Here are the ones I am using.

// Microsoft Office 2016 colors
nMSRed := RGB(182,71,43)
nMSGreen:= RGB(33,114,69)
nMSBlue:= RGB(42,87,154)
nMSPurple := RGB(128,57,123)
nMSRibbon := RGB(141,141,141)

// Dark Gray Theme
nMSBackground := RGB(68,68,68)
nMSRibbon := RGB(178,178,178)

// Black Theme
nMSBackground := RGB(10,10,10)
nMSRibbon := RGB(54,54,54)


If you would like a copy of my color reading utility, let me know.

I would be interested in seeing the MS Office colors you found on the web.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Ribbon Theme

Postby Silvio.Falconi » Fri Oct 05, 2018 7:53 pm

james
colors sent

and for the button wich colors we use ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Ribbon Theme

Postby James Bott » Fri Oct 05, 2018 11:59 pm

Silvio wrote: and for the button which colors we use ?

I assume you mean for the mouse over color (it is not a gradient so there is only one color).

The color I have is RGB(197,197,197) which I got from a paused screen of a YouTube video of an Office product. I had to pause the video right when the presenter put the cursor over a button, then use my screen color reader to get the RGB value.

I have spend close to an hour searching the net for a list of the official color values for Office themes with no luck. And it can be confusing since there are also color themes for use making documents, spreadsheets, or presentations using Office products. I think these are the ones that you found, Silvio.

I did come across this discription of three office themes which gave me a laugh.

...standing in a blizzard white, poke you in the eye colorful, or almost a goth dark gray.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Ribbon Theme

Postby fraxzi » Sat Oct 06, 2018 4:13 am

James Bott wrote:Frances,

Impressive!

I find it interesting that Outlook 2016 and Word 2016 have different dark themes. Word's theme is much darker. Are there two dark themes to pick from? I don't have a copy of Office 2016 here to look at--I am using screenshots.



Thanks James!

But my Office 2016 has only one 'Dark Gray' theme.

:wink:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Ribbon Theme

Postby James Bott » Sat Oct 06, 2018 5:31 am

I found references on the web that there is both a Dark theme and a Black theme in Office 2016, at least some versions since yours does not. Maybe you missed an update?

If you do a search for "Office 2016 themes" then click on "images" you will see screenshots of both.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Ribbon Theme

Postby fraxzi » Sat Oct 06, 2018 6:43 am

James Bott wrote:I found references on the web that there is both a Dark theme and a Black theme in Office 2016, at least some versions since yours does not. Maybe you missed an update?

If you do a search for "Office 2016 themes" then click on "images" you will see screenshots of both.



It's OK James, my Company has only Office 2016 Standard ... I saw some posts that the 'Black' theme is available with 365 subscription or pro...
I can live with Dark Gray Theme as long as it wont strain my user's eye staring with ... :D :D :D

:wink:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Ribbon Theme

Postby Silvio.Falconi » Sat Oct 06, 2018 11:44 am

I think we must create on Setstyle Method of Ribbonbar a section type

if ::l2016
Do case
Case nTheme= 1 //DarkGray
Case nTheme= 2 //DarkBlack
Case nTheme= 3 //MsRed
Case nTheme= 4 //MsGreen
Case nTheme= 5 //MsBlue
Case nTheme= 6 //MsPurple
Case nTheme= 7 //MsRibbon
Endcase
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Ribbon Theme

Postby James Bott » Mon Oct 08, 2018 4:09 pm

Silvia wrote: oRebar:hSeparation := 6


I use a value of 2 which seems about right.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Ribbon Theme

Postby fraxzi » Mon Oct 08, 2018 11:49 pm

James Bott wrote:
Silvia wrote: oRebar:hSeparation := 6


I use a value of 2 which seems about right.



I used :hSeparation := 4 based on my font Verdana ...

:)
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Ribbon Theme

Postby James Bott » Tue Oct 09, 2018 5:03 pm

Frances wrote: I used :hSeparation := 4 based on my font Verdana


I do remember noticing that File Manager and MS Word do not use the same font on the ribbonbar. I figured out which font MS Word was using but I didn't write it down apparently. File Manager uses the same font as our Ribbonbar does by default.

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Ribbon Theme

Postby James Bott » Thu Oct 11, 2018 8:23 pm

Frances,

I am quite sure that the font being used in Office 2016 is Segoe UI 12pt.

oBar:oFont := TFont():New("Segoe UI",0,-12)

However, I have seen another font in one screenshot of Word 2016, in which the capital I has serifs. All other Word 2016 screenshots show Segoe UI with no serifs.

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests