mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build with GCC.
This commit is contained in:
parent
d392c7e8f0
commit
75f542747d
4 changed files with 0 additions and 6 deletions
|
@ -360,15 +360,12 @@ void Row::PaintCornerBadgeFrame(
|
||||||
if (storiesCount) {
|
if (storiesCount) {
|
||||||
q.restore();
|
q.restore();
|
||||||
|
|
||||||
const auto st = context.st;
|
|
||||||
const auto outline = QRectF(0, 0, photoSize, photoSize);
|
const auto outline = QRectF(0, 0, photoSize, photoSize);
|
||||||
const auto storiesUnreadCount = data->storiesUnreadCount;
|
const auto storiesUnreadCount = data->storiesUnreadCount;
|
||||||
const auto storiesUnreadBrush = [&] {
|
const auto storiesUnreadBrush = [&] {
|
||||||
if (context.active || !storiesUnreadCount) {
|
if (context.active || !storiesUnreadCount) {
|
||||||
return st::dialogsUnreadBgMutedActive->b;
|
return st::dialogsUnreadBgMutedActive->b;
|
||||||
}
|
}
|
||||||
const auto left = st->padding.left();
|
|
||||||
const auto top = st->padding.top();
|
|
||||||
auto gradient = Ui::UnreadStoryOutlineGradient(outline);
|
auto gradient = Ui::UnreadStoryOutlineGradient(outline);
|
||||||
return QBrush(gradient);
|
return QBrush(gradient);
|
||||||
}();
|
}();
|
||||||
|
|
|
@ -233,7 +233,6 @@ List::Layout List::computeLayout(float64 expanded) const {
|
||||||
const auto smallCount = std::min(
|
const auto smallCount = std::min(
|
||||||
kSmallThumbsShown,
|
kSmallThumbsShown,
|
||||||
itemsCount - smallSkip);
|
itemsCount - smallSkip);
|
||||||
const auto smallWidth = st.photo + (smallCount - 1) * st.shift;
|
|
||||||
const auto leftSmall = st.left - (smallSkip ? st.shift : 0);
|
const auto leftSmall = st.left - (smallSkip ? st.shift : 0);
|
||||||
const auto leftFull = full.left - _scrollLeft + skipSide;
|
const auto leftFull = full.left - _scrollLeft + skipSide;
|
||||||
const auto startIndexFull = std::max(-leftFull, 0) / singleFull;
|
const auto startIndexFull = std::max(-leftFull, 0) / singleFull;
|
||||||
|
|
|
@ -566,7 +566,6 @@ void Header::rebuildVolumeControls(
|
||||||
});
|
});
|
||||||
slider->setValue(_controller->currentVolume());
|
slider->setValue(_controller->currentVolume());
|
||||||
|
|
||||||
const auto skip = button->width() / 2;
|
|
||||||
const auto size = button->width()
|
const auto size = button->width()
|
||||||
+ st::storiesVolumeSize
|
+ st::storiesVolumeSize
|
||||||
+ st::storiesVolumeBottom;
|
+ st::storiesVolumeBottom;
|
||||||
|
|
|
@ -30,7 +30,6 @@ void PaintOutlineSegments(
|
||||||
: (full / (count * 1.1));
|
: (full / (count * 1.1));
|
||||||
const auto left = full - (separator * count);
|
const auto left = full - (separator * count);
|
||||||
const auto length = left / float64(count);
|
const auto length = left / float64(count);
|
||||||
const auto step = length + separator;
|
|
||||||
const auto spin = separator * (1. - fromFullProgress);
|
const auto spin = separator * (1. - fromFullProgress);
|
||||||
|
|
||||||
auto start = 0. + (arc::kQuarterLength + (separator / 2)) + (3. * spin);
|
auto start = 0. + (arc::kQuarterLength + (separator / 2)) + (3. * spin);
|
||||||
|
|
Loading…
Add table
Reference in a new issue