@@ -101,8 +101,6 @@ const light_theme_overrides = {
101101 columnHeaderBackgroundColor : "#fff" ,
102102 columnHeaderForegroundSelectionColor : "#333" ,
103103 columnHeaderBackgroundSelectionColor : "#40536d" ,
104- columnHeaderBackgroundNumberPositive : "#1078d1" ,
105- columnHeaderBackgroundNumberNegative : "#de3838" ,
106104 rowHeaderForegroundSelectionFont : "12px Arial, Helvetica, sans-serif" ,
107105 treeHeaderColor : "#666" ,
108106 treeHeaderBackgroundColor : "#fff" ,
@@ -192,6 +190,9 @@ bindTemplate(TEMPLATE)(
192190 const header = window . getComputedStyle ( this . querySelector ( "th" ) , null ) ;
193191 const row_hover = window . getComputedStyle ( this . querySelector ( "tr.hover" ) , null ) ;
194192 const cell_hover = window . getComputedStyle ( this . querySelector ( "td.hover" ) , null ) ;
193+ const cell_positive = window . getComputedStyle ( this . querySelector ( "td.positive" ) , null ) ;
194+ const cell_negative = window . getComputedStyle ( this . querySelector ( "td.negative" ) , null ) ;
195+ const table = window . getComputedStyle ( this . querySelector ( "table" ) ) ;
195196
196197 grid_properties [ "showRowNumbers" ] = grid_properties [ "showCheckboxes" ] || grid_properties [ "showRowNumbers" ] ;
197198 grid_properties [ "treeHeaderBackgroundColor" ] = grid_properties [ "backgroundColor" ] = style . getPropertyValue ( "background-color" ) ;
@@ -200,6 +201,19 @@ bindTemplate(TEMPLATE)(
200201 grid_properties [ "columnHeaderSeparatorColor" ] = header . getPropertyValue ( "border-color" ) ;
201202 grid_properties [ "columnHeaderColor" ] = header . getPropertyValue ( "color" ) ;
202203
204+ grid_properties [ "columnColorNumberPositive" ] = cell_positive . getPropertyValue ( "color" ) ;
205+ grid_properties [ "columnColorNumberNegative" ] = cell_negative . getPropertyValue ( "color" ) ;
206+ grid_properties [ "columnBackgroundColorNumberPositive" ] = cell_positive . getPropertyValue ( "background-color" ) ;
207+ grid_properties [ "columnBackgroundColorNumberNegative" ] = cell_negative . getPropertyValue ( "background-color" ) ;
208+
209+ const font = `${ table . getPropertyValue ( "font-size" ) } ${ table . getPropertyValue ( "font-family" ) } ` ;
210+ const headerfont = `${ header . getPropertyValue ( "font-size" ) } ${ header . getPropertyValue ( "font-family" ) } ` ;
211+
212+ grid_properties [ "columnHeaderFont" ] = headerfont ;
213+ grid_properties [ "font" ] = font ;
214+ grid_properties [ "rowHeaderFont" ] = font ;
215+ grid_properties [ "treeHeaderFont" ] = font ;
216+
203217 grid_properties [ "hoverRowHighlight" ] [ "backgroundColor" ] = row_hover . getPropertyValue ( "background-color" ) ;
204218 grid_properties [ "hoverRowHighlight" ] [ "color" ] = row_hover . getPropertyValue ( "color" ) ;
205219 grid_properties [ "hoverCellHighlight" ] [ "backgroundColor" ] = cell_hover . getPropertyValue ( "background-color" ) ;
0 commit comments