added new tool

This commit is contained in:
Geoffray Levasseur committed 2026-11-03 15:39:22 +01:00
1 parent b5085fd11f
commit a4eb5689a6
2 files changed
+13

No files matched your search

+10
View File
@@ -755,4 +755,14 @@ void darkGradient(Dpi::Canvas &canvas, int x, int y, int width, int kind)
gradient(canvas, x, y, 0, 1, width, 0, color, brightness);
}
void numberBar(Dpi::Canvas &canvas, int x, int y, const QString &cap, int val, const Texture &texture)
{
if (val <= 0)
return;
dLine(canvas, x - 2, x + 170, y + 16, texture.colorBevelShade, texture.colorBevelLight);
loweredTextOut(canvas, -1, texture, x - 2, y, cap);
const QString s = QString::number(val);
risedTextOut(canvas, x + 170 - biColorTextWidth(canvas, s), y, s);
}
} // namespace Cevo