Skip to content

Commit 8cd1b24

Browse files
committed
Report: Make <th> elemnts bold in report_table
1 parent a85299b commit 8cd1b24

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Orange/canvas/report/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
padding: 2px 6px 2px 6px;
7171
}
7272

73+
th {
74+
font-weight: bold;
75+
}
76+
7377
@media screen {
7478
td, th {
7579
white-space: nowrap;

Orange/canvas/report/report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def data(role=Qt.DisplayRole,
241241
bgcolor = 'transparent'
242242

243243
font = data(Qt.FontRole)
244-
weight = 'bold' if font and font.bold() else 'normal'
244+
weight = 'font-weight: bold;' if font and font.bold() else ''
245245

246246
alignment = data(Qt.TextAlignmentRole) or Qt.AlignLeft
247247
halign = ('left' if alignment & Qt.AlignLeft else
@@ -254,7 +254,7 @@ def data(role=Qt.DisplayRole,
254254
'color:{fgcolor};'
255255
'border:{border};'
256256
'background:{bgcolor};'
257-
'font-weight:{weight};'
257+
'{weight};'
258258
'text-align:{halign};'
259259
'vertical-align:{valign};">{text}</{tag}>'.format(
260260
tag='th' if row is None or col is None else 'td',

0 commit comments

Comments
 (0)