mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added initial implementation of balance in credits settings.
This commit is contained in:
@@ -24,3 +24,4 @@ creditsTopupPrice: FlatLabel(defaultFlatLabel) {
|
||||
}
|
||||
|
||||
creditsHistoryRightSkip: 10px;
|
||||
creditsBalanceStarHeight: 20px;
|
||||
|
||||
@@ -256,11 +256,8 @@ void TopBar::resizeEvent(QResizeEvent *e) {
|
||||
const auto progress = (max > min)
|
||||
? ((e->size().height() - min) / float64(max - min))
|
||||
: 1.;
|
||||
_progress.top = 1. -
|
||||
std::clamp(
|
||||
(1. - progress) / kBodyAnimationPart,
|
||||
0.,
|
||||
1.);
|
||||
_progress.top = 1.
|
||||
- std::clamp((1. - progress) / kBodyAnimationPart, 0., 1.);
|
||||
_progress.body = _progress.top;
|
||||
_progress.title = 1. - progress;
|
||||
_progress.scaleTitle = 1. + kTitleAdditionalScale * progress;
|
||||
|
||||
Reference in New Issue
Block a user