mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Use larger skips in segments to allow up to 50.
This commit is contained in:
parent
3606e62515
commit
de0b79aee8
1 changed files with 3 additions and 2 deletions
|
@ -418,11 +418,12 @@ void RoundImageCheckbox::paint(Painter &p, int x, int y, int outerWidth) const {
|
|||
} else {
|
||||
const auto small = 160;
|
||||
const auto full = arc::kFullLength;
|
||||
const auto separator = (full > 2 * small * segments)
|
||||
const auto separator = (full > 1.1 * small * segments)
|
||||
? small
|
||||
: full / (segments * 2);
|
||||
: full / (segments * 1.1);
|
||||
const auto left = full - (separator * segments);
|
||||
const auto length = left / float64(segments);
|
||||
|
||||
auto start = 0. + (arc::kQuarterLength + (separator / 2));
|
||||
for (const auto &segment : ranges::views::reverse(_segments)) {
|
||||
p.setPen(QPen(
|
||||
|
|
Loading…
Add table
Reference in a new issue