Commit 8a9a566
committed
gui: fix software panel flickering and adjust column layout
The software list panel suffered from noticeable flickering when
scrolling due to unnecessary redraws:
- The cycle button (Libraries/Devices/Resources) was redrawn on every
scroll operation even though its label only changes when cycling
through software types. Only redraw when the label actually changes.
- The clear area for the list content extended into the scroll bar
region, causing it to be erased and redrawn on each scroll. Reduce
the clear width to stop before the scroll bar (SOFTWARE_PANEL_W - 16
instead of - 3).
- Move cycle button initial drawing to draw_software_panel() to ensure
it's visible on first display, since update_software_list() now skips
redrawing when the label hasn't changed.
Additionally, adjust column positions for better spacing:
- Location column: 130 -> 126
- Address column: 204 -> 200
- Version column: 290 -> 2841 parent 36c0601 commit 8a9a566
1 file changed
+21
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
796 | 802 | | |
797 | 803 | | |
798 | 804 | | |
| |||
825 | 831 | | |
826 | 832 | | |
827 | 833 | | |
828 | | - | |
| 834 | + | |
829 | 835 | | |
830 | 836 | | |
831 | | - | |
| 837 | + | |
832 | 838 | | |
833 | 839 | | |
834 | | - | |
| 840 | + | |
835 | 841 | | |
836 | 842 | | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
843 | 852 | | |
844 | 853 | | |
845 | 854 | | |
| |||
880 | 889 | | |
881 | 890 | | |
882 | 891 | | |
883 | | - | |
| 892 | + | |
884 | 893 | | |
885 | 894 | | |
886 | 895 | | |
887 | 896 | | |
888 | 897 | | |
889 | | - | |
| 898 | + | |
890 | 899 | | |
891 | 900 | | |
892 | 901 | | |
893 | 902 | | |
894 | | - | |
| 903 | + | |
895 | 904 | | |
896 | 905 | | |
897 | 906 | | |
| |||
0 commit comments