Welcome to OpenXML Developer Sign in | Join | Help

Where is semantic background color (bg1) defined?

Last post 10-07-2008, 3:00 AM by ankit. 3 replies.
Sort Posts: Previous Next
  •  09-09-2008, 6:10 AM 3669

    Where is semantic background color (bg1) defined?

    what is the value for bg1. Like accent is defined in theme.themeElements.colorScheme. Where is the definition for bg1, bg2, tx1 and tx2?

     

     

  •  09-30-2008, 5:21 PM 3747 in reply to 3669

    Re: Where is semantic background color (bg1) defined?

    Thats precisely what I am looking for now.

    schemClr val = tx2 and lumMod = 7500 (75%) is precisely this RGB int color = 6697728

    I dont know where I can get the definitions for bg1, bg2, tx1, and tx2

    Regards,
    nk


  •  09-30-2008, 5:36 PM 3748 in reply to 3747

    Re: Where is semantic background color (bg1) defined?

    Hi,

    This link may help.

    http://blogs.msdn.com/mike_frieds_blog/archive/2006/09/20/TableStyles2.aspx

    He says tx1, tx2 and bg1, and bg2 map to lt1, lt2.
    I enocuntered this problem when I got a fill definition for a shape as follows:

    a:solidfill
       a:schemeClr val="tx2"
       a:lumMod="7500"
    a:solidFill

    So this means this is the lt2 color, with 75% luminance... but its still unclear...
    When the theme color and tint definitions are used for theme based coloring in cells, I don't know why in DrawingML tx1, tx2, phClr are used. Crazy!!! There is no uniformity in color definitions throughout OOXML. If the style settings are close to uniform, data extraction with formatting will be so easy.. and quick.


    Regards,
    nk

  •  10-07-2008, 3:00 AM 3759 in reply to 3748

    Re: Where is semantic background color (bg1) defined?

    Ok, I have solved this problem....

     

    bg1, tx1, etc etc are defined in Slide Master for a slide in element called Color Map. As for phClr is concerned, it a bit more involved... It is like this certain items (like borders and fills ) in style matrix use this colour to back reference to a scheme. For example if a table has a border which it is picking up from style matrix, it will specify color that will replace phClr. I shall put up an example some times soon.

View as RSS news feed in XML