Commit b5d372e
committed
Refactor AutoDropShadow logic for clarity and correctness
Simplified the AutoDropShadow method to avoid redundant operations and improve readability. Now, window corner preference and drop shadow effects are set based on blur and backdrop support, with clear comments explaining each case. Removed convoluted branching for more direct logic.1 parent 916b4ff commit b5d372e
1 file changed
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
710 | | - | |
711 | 709 | | |
712 | 710 | | |
713 | 711 | | |
714 | 712 | | |
| 713 | + | |
| 714 | + | |
715 | 715 | | |
| 716 | + | |
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
| 720 | + | |
719 | 721 | | |
720 | 722 | | |
721 | 723 | | |
722 | 724 | | |
723 | 725 | | |
724 | 726 | | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
733 | 730 | | |
734 | 731 | | |
735 | 732 | | |
| |||
0 commit comments