|
488 | 488 | "description": "Whether or not the window has shadow.\n\n## Platform-specific\n\n- **Windows:** - `false` has no effect on decorated window, shadow are always ON. - `true` will make ndecorated window have a 1px white border, and on Windows 11, it will have a rounded corners. - **Linux:** Unsupported.",
|
489 | 489 | "default": true,
|
490 | 490 | "type": "boolean"
|
| 491 | + }, |
| 492 | + "windowEffects": { |
| 493 | + "description": "Window effects.\n\nRequires the window to be transparent.\n\n## Platform-specific:\n\n- **Windows**: If using decorations or shadows, you may want to try this workaround https://github.com/tauri-apps/tao/issues/72#issuecomment-975607891 - **Linux**: Unsupported", |
| 494 | + "anyOf": [ |
| 495 | + { |
| 496 | + "$ref": "#/definitions/WindowEffectsConfig" |
| 497 | + }, |
| 498 | + { |
| 499 | + "type": "null" |
| 500 | + } |
| 501 | + ] |
491 | 502 | }
|
492 | 503 | },
|
493 | 504 | "additionalProperties": false
|
|
551 | 562 | }
|
552 | 563 | ]
|
553 | 564 | },
|
| 565 | + "WindowEffectsConfig": { |
| 566 | + "description": "The window effects configuration object", |
| 567 | + "type": "object", |
| 568 | + "required": [ |
| 569 | + "effects" |
| 570 | + ], |
| 571 | + "properties": { |
| 572 | + "effects": { |
| 573 | + "description": "List of Window effects to apply to the Window. Conflicting effects will apply the first one and ignore the rest.", |
| 574 | + "type": "array", |
| 575 | + "items": { |
| 576 | + "$ref": "#/definitions/WindowEffect" |
| 577 | + } |
| 578 | + }, |
| 579 | + "state": { |
| 580 | + "description": "Window effect state **macOS Only**", |
| 581 | + "anyOf": [ |
| 582 | + { |
| 583 | + "$ref": "#/definitions/WindowEffectState" |
| 584 | + }, |
| 585 | + { |
| 586 | + "type": "null" |
| 587 | + } |
| 588 | + ] |
| 589 | + }, |
| 590 | + "radius": { |
| 591 | + "description": "Window effect corner radius **macOS Only**", |
| 592 | + "type": [ |
| 593 | + "number", |
| 594 | + "null" |
| 595 | + ], |
| 596 | + "format": "double" |
| 597 | + }, |
| 598 | + "color": { |
| 599 | + "description": "Window effect color. Affects [`WindowEffects::Blur`] and [`WindowEffects::Acrylic`] only on Windows 10 v1903+. Doesn't have any effect on Windows 7 or Windows 11.", |
| 600 | + "anyOf": [ |
| 601 | + { |
| 602 | + "$ref": "#/definitions/Color" |
| 603 | + }, |
| 604 | + { |
| 605 | + "type": "null" |
| 606 | + } |
| 607 | + ] |
| 608 | + } |
| 609 | + }, |
| 610 | + "additionalProperties": false |
| 611 | + }, |
| 612 | + "WindowEffect": { |
| 613 | + "description": "Platform-specific window effects", |
| 614 | + "oneOf": [ |
| 615 | + { |
| 616 | + "description": "A default material appropriate for the view's effectiveAppearance. **macOS 10.14-**", |
| 617 | + "deprecated": true, |
| 618 | + "type": "string", |
| 619 | + "enum": [ |
| 620 | + "appearanceBased" |
| 621 | + ] |
| 622 | + }, |
| 623 | + { |
| 624 | + "description": "*macOS 10.14-**", |
| 625 | + "deprecated": true, |
| 626 | + "type": "string", |
| 627 | + "enum": [ |
| 628 | + "light" |
| 629 | + ] |
| 630 | + }, |
| 631 | + { |
| 632 | + "description": "*macOS 10.14-**", |
| 633 | + "deprecated": true, |
| 634 | + "type": "string", |
| 635 | + "enum": [ |
| 636 | + "dark" |
| 637 | + ] |
| 638 | + }, |
| 639 | + { |
| 640 | + "description": "*macOS 10.14-**", |
| 641 | + "deprecated": true, |
| 642 | + "type": "string", |
| 643 | + "enum": [ |
| 644 | + "mediumLight" |
| 645 | + ] |
| 646 | + }, |
| 647 | + { |
| 648 | + "description": "*macOS 10.14-**", |
| 649 | + "deprecated": true, |
| 650 | + "type": "string", |
| 651 | + "enum": [ |
| 652 | + "ultraDark" |
| 653 | + ] |
| 654 | + }, |
| 655 | + { |
| 656 | + "description": "*macOS 10.10+**", |
| 657 | + "type": "string", |
| 658 | + "enum": [ |
| 659 | + "titlebar" |
| 660 | + ] |
| 661 | + }, |
| 662 | + { |
| 663 | + "description": "*macOS 10.10+**", |
| 664 | + "type": "string", |
| 665 | + "enum": [ |
| 666 | + "selection" |
| 667 | + ] |
| 668 | + }, |
| 669 | + { |
| 670 | + "description": "*macOS 10.11+**", |
| 671 | + "type": "string", |
| 672 | + "enum": [ |
| 673 | + "menu" |
| 674 | + ] |
| 675 | + }, |
| 676 | + { |
| 677 | + "description": "*macOS 10.11+**", |
| 678 | + "type": "string", |
| 679 | + "enum": [ |
| 680 | + "popover" |
| 681 | + ] |
| 682 | + }, |
| 683 | + { |
| 684 | + "description": "*macOS 10.11+**", |
| 685 | + "type": "string", |
| 686 | + "enum": [ |
| 687 | + "sidebar" |
| 688 | + ] |
| 689 | + }, |
| 690 | + { |
| 691 | + "description": "*macOS 10.14+**", |
| 692 | + "type": "string", |
| 693 | + "enum": [ |
| 694 | + "headerView" |
| 695 | + ] |
| 696 | + }, |
| 697 | + { |
| 698 | + "description": "*macOS 10.14+**", |
| 699 | + "type": "string", |
| 700 | + "enum": [ |
| 701 | + "sheet" |
| 702 | + ] |
| 703 | + }, |
| 704 | + { |
| 705 | + "description": "*macOS 10.14+**", |
| 706 | + "type": "string", |
| 707 | + "enum": [ |
| 708 | + "windowBackground" |
| 709 | + ] |
| 710 | + }, |
| 711 | + { |
| 712 | + "description": "*macOS 10.14+**", |
| 713 | + "type": "string", |
| 714 | + "enum": [ |
| 715 | + "hudWindow" |
| 716 | + ] |
| 717 | + }, |
| 718 | + { |
| 719 | + "description": "*macOS 10.14+**", |
| 720 | + "type": "string", |
| 721 | + "enum": [ |
| 722 | + "fullScreenUI" |
| 723 | + ] |
| 724 | + }, |
| 725 | + { |
| 726 | + "description": "*macOS 10.14+**", |
| 727 | + "type": "string", |
| 728 | + "enum": [ |
| 729 | + "tooltip" |
| 730 | + ] |
| 731 | + }, |
| 732 | + { |
| 733 | + "description": "*macOS 10.14+**", |
| 734 | + "type": "string", |
| 735 | + "enum": [ |
| 736 | + "contentBackground" |
| 737 | + ] |
| 738 | + }, |
| 739 | + { |
| 740 | + "description": "*macOS 10.14+**", |
| 741 | + "type": "string", |
| 742 | + "enum": [ |
| 743 | + "underWindowBackground" |
| 744 | + ] |
| 745 | + }, |
| 746 | + { |
| 747 | + "description": "*macOS 10.14+**", |
| 748 | + "type": "string", |
| 749 | + "enum": [ |
| 750 | + "underPageBackground" |
| 751 | + ] |
| 752 | + }, |
| 753 | + { |
| 754 | + "description": "*Windows 11 Only**", |
| 755 | + "type": "string", |
| 756 | + "enum": [ |
| 757 | + "mica" |
| 758 | + ] |
| 759 | + }, |
| 760 | + { |
| 761 | + "description": "**Windows 7/10/11(22H1) Only**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 11 build 22621.", |
| 762 | + "type": "string", |
| 763 | + "enum": [ |
| 764 | + "blur" |
| 765 | + ] |
| 766 | + }, |
| 767 | + { |
| 768 | + "description": "**Windows 10/11 Only**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000.", |
| 769 | + "type": "string", |
| 770 | + "enum": [ |
| 771 | + "acrylic" |
| 772 | + ] |
| 773 | + } |
| 774 | + ] |
| 775 | + }, |
| 776 | + "WindowEffectState": { |
| 777 | + "description": "Window effect state **macOS only**\n\n<https://developer.apple.com/documentation/appkit/nsvisualeffectview/state>", |
| 778 | + "oneOf": [ |
| 779 | + { |
| 780 | + "description": "Make window effect state follow the window's active state", |
| 781 | + "type": "string", |
| 782 | + "enum": [ |
| 783 | + "followsWindowActiveState" |
| 784 | + ] |
| 785 | + }, |
| 786 | + { |
| 787 | + "description": "Make window effect state always active", |
| 788 | + "type": "string", |
| 789 | + "enum": [ |
| 790 | + "active" |
| 791 | + ] |
| 792 | + }, |
| 793 | + { |
| 794 | + "description": "Make window effect state always inactive", |
| 795 | + "type": "string", |
| 796 | + "enum": [ |
| 797 | + "inactive" |
| 798 | + ] |
| 799 | + } |
| 800 | + ] |
| 801 | + }, |
| 802 | + "Color": { |
| 803 | + "description": "a tuple struct of RGBA colors. Each value has minimum of 0 and maximum of 255.", |
| 804 | + "type": "array", |
| 805 | + "items": [ |
| 806 | + { |
| 807 | + "type": "integer", |
| 808 | + "format": "uint8", |
| 809 | + "minimum": 0.0 |
| 810 | + }, |
| 811 | + { |
| 812 | + "type": "integer", |
| 813 | + "format": "uint8", |
| 814 | + "minimum": 0.0 |
| 815 | + }, |
| 816 | + { |
| 817 | + "type": "integer", |
| 818 | + "format": "uint8", |
| 819 | + "minimum": 0.0 |
| 820 | + }, |
| 821 | + { |
| 822 | + "type": "integer", |
| 823 | + "format": "uint8", |
| 824 | + "minimum": 0.0 |
| 825 | + } |
| 826 | + ], |
| 827 | + "maxItems": 4, |
| 828 | + "minItems": 4 |
| 829 | + }, |
554 | 830 | "BundleConfig": {
|
555 | 831 | "description": "Configuration for tauri-bundler.\n\nSee more: https://tauri.app/v1/api/config#bundleconfig",
|
556 | 832 | "type": "object",
|
|
0 commit comments