mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-04 06:59:25 +00:00
Do not color removed/added when nothing removed and nothing added
This commit is contained in:
parent
377563a2ad
commit
7d6524c011
|
@ -158,8 +158,13 @@ public class Gitg.DiffStat : Gtk.DrawingArea
|
||||||
x -= padding.right + wbar;
|
x -= padding.right + wbar;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (added == 0 ||
|
if (added == 0 && removed == 0)
|
||||||
removed == 0)
|
{
|
||||||
|
sctx.save();
|
||||||
|
sctx.render_background(context, x, ybar, wrest, hbar);
|
||||||
|
sctx.restore();
|
||||||
|
}
|
||||||
|
else if (added == 0 || removed == 0)
|
||||||
{
|
{
|
||||||
sctx.save();
|
sctx.save();
|
||||||
sctx.add_class(added == 0 ? "removed-only" : "added-only");
|
sctx.add_class(added == 0 ? "removed-only" : "added-only");
|
||||||
|
|
Loading…
Reference in a new issue