diff --git a/modules/core_styles/styles/progressbars.otui b/modules/core_styles/styles/progressbars.otui index 82e2e589..0793c354 100644 --- a/modules/core_styles/styles/progressbars.otui +++ b/modules/core_styles/styles/progressbars.otui @@ -7,4 +7,7 @@ ProgressBar < UIProgressBar ProgressRect < UIProgressRect anchors.fill: parent - background-color: #00000044 + phantom: true + color: white + background-color: #00000088 + font: verdana-11px-rounded diff --git a/src/otclient/ui/uiprogressrect.cpp b/src/otclient/ui/uiprogressrect.cpp index 459cb012..c74ff034 100644 --- a/src/otclient/ui/uiprogressrect.cpp +++ b/src/otclient/ui/uiprogressrect.cpp @@ -75,6 +75,11 @@ void UIProgressRect::drawSelf(Fw::DrawPane drawPane) Point var = Point(std::max(m_percent - 87.5, 0.0) * (drawRect.horizontalCenter() - drawRect.left()) / 12.5, 0); g_painter->drawFilledTriangle(drawRect.center(), drawRect.topCenter(), drawRect.topLeft() + var); } + + drawImage(m_rect); + drawBorder(m_rect); + drawIcon(m_rect); + drawText(m_rect); } void UIProgressRect::setPercent(float percent)