Repository navigation
Commit 772eb0d
feat(context): draw the usage meter as a full ring (#86)
The meter beside the composer swept a 240° arc from the upper-left around the
bottom to the upper-right, so the gap at the top read as a broken circle and
the same percentage covered less visual ground than a ring would. The gauge is
now a complete circle that fills clockwise from 12 o'clock, drawn with two
<circle> elements instead of an arc path.
Only the shape changes. The percentage label, the hover tooltip with the token
counts, and the pale-red warning state above 80% behave as before, and the
existing dash-offset maths carries over since the fill length is still a
fraction of the stroke's total length.
Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>1 parent ded194f commit 772eb0d
2 files changed
Lines changed: 17 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
684 | | - | |
| 684 | + | |
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
| 706 | + | |
719 | 707 | | |
720 | 708 | | |
721 | 709 | | |
| |||
726 | 714 | | |
727 | 715 | | |
728 | 716 | | |
729 | | - | |
730 | | - | |
| 717 | + | |
731 | 718 | | |
732 | 719 | | |
733 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
734 | 723 | | |
735 | 724 | | |
736 | | - | |
737 | 725 | | |
738 | 726 | | |
739 | 727 | | |
740 | | - | |
| 728 | + | |
741 | 729 | | |
742 | 730 | | |
743 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
744 | 734 | | |
745 | 735 | | |
746 | 736 | | |
747 | 737 | | |
748 | 738 | | |
| 739 | + | |
749 | 740 | | |
750 | 741 | | |
751 | 742 | | |
| |||
0 commit comments