+ // Change color of the frame in tracked changes, like for tabulars.
+ // Only do so if the color is not custom. But do so even if RowPainter
+ // handles the strike-through already.
+ Color c;
+ if (pi.change_.changed()
+ // Originally, these are the colors with role Text, from role() in
+ // ColorCache.cpp. The code is duplicated to avoid depending on Qt
+ // types, and also maybe it need not match in the future.
+ && (frameColor() == Color_foreground
+ || frameColor() == Color_cursor
+ || frameColor() == Color_preview
+ || frameColor() == Color_tabularline
+ || frameColor() == Color_previewframe)) {
+ c = pi.change_.color();
+ change_drawn = true;
+ } else
+ c = frameColor();