| 97 | } |
| 98 | |
| 99 | std::optional<QColor> backgroundColor(const QTextFormat& format) |
| 100 | { |
| 101 | if (!format.hasProperty(QTextFormat::BackgroundBrush)) |
| 102 | return std::nullopt; |
| 103 | return format.background().color(); |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Inverting is used for white colors, because it is assumed white in light color scheme |
no test coverage detected