From 41f4f8f6fdf5580e18eb544bf2a75a3a8c26b1cd Mon Sep 17 00:00:00 2001 From: nikicc Date: Tue, 10 Oct 2017 20:29:16 +0200 Subject: [PATCH] Report: Make elemnts bold in report_table --- Orange/canvas/report/index.html | 4 ++++ Orange/canvas/report/report.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Orange/canvas/report/index.html b/Orange/canvas/report/index.html index 777bd15095e..73e75349b39 100644 --- a/Orange/canvas/report/index.html +++ b/Orange/canvas/report/index.html @@ -70,6 +70,10 @@ padding: 2px 6px 2px 6px; } + th { + font-weight: bold; + } + @media screen { td, th { white-space: nowrap; diff --git a/Orange/canvas/report/report.py b/Orange/canvas/report/report.py index 560f9dc75af..1bfa7923d0a 100644 --- a/Orange/canvas/report/report.py +++ b/Orange/canvas/report/report.py @@ -241,7 +241,7 @@ def data(role=Qt.DisplayRole, bgcolor = 'transparent' font = data(Qt.FontRole) - weight = 'bold' if font and font.bold() else 'normal' + weight = 'font-weight: bold;' if font and font.bold() else '' alignment = data(Qt.TextAlignmentRole) or Qt.AlignLeft halign = ('left' if alignment & Qt.AlignLeft else @@ -254,7 +254,7 @@ def data(role=Qt.DisplayRole, 'color:{fgcolor};' 'border:{border};' 'background:{bgcolor};' - 'font-weight:{weight};' + '{weight}' 'text-align:{halign};' 'vertical-align:{valign};">{text}'.format( tag='th' if row is None or col is None else 'td',