Adjust status and lock panels and format duration

This commit is contained in:
ubuntu1804 2025-11-08 12:30:49 +08:00
parent 6f453717ad
commit f92446678c
1 changed files with 4 additions and 3 deletions

View File

@ -286,7 +286,7 @@ void CustomWidget::drawStatusInfo(QPainter &painter)
.arg(elapsed); .arg(elapsed);
// 绘制半透明背景框 // 绘制半透明背景框
QRect statsRect(10, 70, 200, 100); QRect statsRect(10, 70, 200, 110);
painter.fillRect(statsRect, QColor(0, 0, 0, 150)); painter.fillRect(statsRect, QColor(0, 0, 0, 150));
painter.setPen(QColor(200, 255, 200)); painter.setPen(QColor(200, 255, 200));
@ -311,7 +311,7 @@ void CustomWidget::drawStatusInfo(QPainter &painter)
void CustomWidget::drawLockInfo(QPainter &painter) void CustomWidget::drawLockInfo(QPainter &painter)
{ {
QFont infoFont = painter.font(); QFont infoFont = painter.font();
QRect lockInfoRect(10, 180, 350, 120); QRect lockInfoRect(10, 180, 200, 150);
painter.fillRect(lockInfoRect, QColor(60, 0, 60, 180)); painter.fillRect(lockInfoRect, QColor(60, 0, 60, 180));
painter.setPen(QColor(255, 200, 255)); painter.setPen(QColor(255, 200, 255));
@ -342,7 +342,8 @@ void CustomWidget::drawLockInfo(QPainter &painter)
} }
QString lockInfo = QString( QString lockInfo = QString(
"\nLock Time: %1 (Duration: %2)\n" "\nLock Time: %1\n"
"Duration: %2\n"
"Frame Count at Lock: %3\n" "Frame Count at Lock: %3\n"
"Frames During Lock: %4\n" "Frames During Lock: %4\n"
"Total Locks: %5" "Total Locks: %5"