-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow circler progress to draw arc #239
Conversation
+1 |
Sounds great. I changed it
|
Sounds useful, but why not just halve the value? |
|
That is not how
With inverted, the bar should be empty 6/10 and filled 4/10
|
This is not how it is supposed to work. From the gtk docs:
so a value of 0.6 should behave like that: That said, the currently implemented behavior should be correct regarding the fill of the progress bar, but not for the placement. changing the value of inverted should not change how it is placed. (I did not try this myself, I'm just going off of the screenshots posted here). Edit: if (this.inverted) {
startProgress = calculatedEndAngle - rangedValue;
endProgress = calculatedEndAngle;
} else {
startProgress = calculatedStartAngle;
endProgress = calculatedStartAngle + rangedValue;
} the background draw is not changed by setting inverted. |
yeah, you are right, mb |
I don't know; I felt that as a circle, it should also adjust the starting position accordingly. Anyway, I made the changes as @kotontrion suggested.
|
Allow drawing arc instead of a full circle by defining
startDraw, endDraw
example
if used without
startDraw, endDraw
it will draw a normal circle as it used to