Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
onboarding: Add fast-follow adjustments (#35814)
Danilo Leal070f7dbe1a28
diff --git a/assets/images/certified_user_stamp.svg b/assets/images/certified_user_stamp.svgdeleted file mode 100644index 7e65c4fc9d4..00000000000--- a/assets/images/certified_user_stamp.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" width="51" height="51" fill="none"><path fill="#000" fill-opacity=".3" d="M25.5 3C37.926 3 48 13.074 48 25.5S37.926 48 25.5 48 3 37.926 3 25.5 13.074 3 25.5 3Zm0 3C14.73 6 6 14.73 6 25.5S14.73 45 25.5 45 45 36.27 45 25.5 36.27 6 25.5 6Z"/><circle cx="25.5" cy="25.5" r="22.5" stroke="#000"/><circle cx="25.5" cy="25.5" r="19.5" stroke="#000"/><path fill="#000" fill-rule="evenodd" d="M20.219 19.813a.406.406 0 0 0-.407.406v8.937H19V20.22c0-.673.546-1.219 1.219-1.219h10.884a.61.61 0 0 1 .431 1.04l-6.704 6.704h1.889v-.838h.812v1.041a.61.61 0 0 1-.61.61h-2.903l-1.397 1.396h6.332v-5.078h.813v5.078a.812.812 0 0 1-.813.813H21.81l-1.422 1.422h10.394a.406.406 0 0 0 .407-.407v-8.937H32v8.937c0 .673-.546 1.219-1.219 1.219H19.897a.61.61 0 0 1-.431-1.04l6.678-6.679h-1.863v.813h-.812v-1.016a.61.61 0 0 1 .61-.61h2.878l1.422-1.421h-6.332v5.078h-.813v-5.078c0-.449.364-.813.813-.813h7.144l1.422-1.422H20.219Z" clip-rule="evenodd"/><path fill="#000" d="M38.458 27.016c0-.648.622-1.13 1.464-1.13.836 0 1.464.486 1.464 1.135 0 .334-.168.59-.471.753v.026h1.464v.627H39.45a16 16 0 0 0-.94.037v-.601c.167-.021.313-.032.465-.042v-.027c-.335-.157-.518-.423-.518-.778Zm-.643-6.85 3.058.447-.727-1.511.517-.25 1.073 2.228-.47.227-3.06-.447.79 1.638-.519.25-1.133-2.355.47-.227Zm.683 4.304c-.169-.739.313-1.4 1.153-1.593.826-.188 1.527.183 1.688.886.157.688-.29 1.289-1.1 1.474l-.23.052-.402-1.759c-.441.155-.657.451-.574.818.053.23.2.388.388.41l.133.581c-.51.02-.933-.329-1.056-.869Zm1.85.098c.355-.114.54-.386.471-.687-.067-.295-.34-.458-.73-.444l.26 1.13Zm-1.315 2.594c0 .371.382.649.889.649s.888-.278.889-.649c0-.37-.382-.648-.89-.648-.506 0-.888.277-.888.648Zm-1.977 4.492.518.25-.329.683 2.26 1.089.325-.674.519.25-.933 1.936-.518-.25.325-.674-2.262-1.089-.328.684-.519-.25.942-1.955Zm-2.587 3.598 1.45 1.157c.242.193.484.192.64-.005.196-.245.107-.603-.216-.86l-1.287-1.027.39-.491 2.208 1.76-.375.47-.29-.231-.013.016a.78.78 0 0 1-.119.828c-.322.405-.83.429-1.288.064l-1.492-1.19.392-.49Zm.958-19.193a.784.784 0 1 1 .976-1.227.784.784 0 0 1-.976 1.227ZM32.04 37.022c.12.117.22.225.323.337l.02-.016c-.085-.36.009-.669.287-.89.507-.405 1.271-.218 1.796.44.521.654.532 1.447.025 1.851-.261.209-.566.238-.882.102l-.02.017.913 1.144-.49.392-1.827-2.29a15.93 15.93 0 0 0-.615-.713l.47-.374Zm.874-.029c-.29.232-.268.703.048 1.099.316.397.77.523 1.06.291.29-.231.27-.702-.046-1.099-.317-.396-.772-.522-1.062-.29Zm-3.46 1.101c.07.11.133.215.194.318l.019-.01a.78.78 0 0 1 .467-.694c.466-.224.933-.025 1.187.502l.828 1.72-.565.271-.806-1.672c-.133-.277-.352-.38-.578-.272-.282.136-.358.497-.178.87l.714 1.483-.565.272-.816-1.695c-.116-.24-.28-.545-.442-.832l.541-.261Zm.395-24.455c-.632-.144-.963-.858-.776-1.679.186-.815.8-1.319 1.433-1.175.326.075.538.295.629.626l.025.006.326-1.427.612.14-.652 2.855c-.059.26-.12.6-.174.925l-.585-.133c.016-.168.038-.313.062-.463l-.025-.006c-.228.291-.529.41-.875.33Zm-.163-1.54c-.113.495.072.929.433 1.012.362.082.717-.229.83-.723.113-.494-.073-.928-.434-1.01-.362-.083-.717.228-.83.722Zm-3.46 27.499c-.126-.55.23-1.034.872-1.18.622-.143 1.167.109 1.276.588l-.59.135c-.073-.177-.334-.262-.604-.2-.265.06-.408.232-.36.441.04.178.182.237.48.201l.14-.015c.644-.072 1.003.114 1.109.578.124.545-.198 1.01-.805 1.15-.58.132-1.104-.114-1.231-.578l.571-.13c.062.178.278.257.533.2.26-.06.394-.225.348-.428-.038-.169-.172-.235-.434-.207l-.14.016c-.686.076-1.06-.107-1.165-.571Zm-.146-28.044c0-.847.517-1.448 1.238-1.448.706 0 1.193.57 1.193 1.401v.235h-1.804c.052.465.293.742.669.743.235 0 .424-.11.486-.288h.596c-.094.501-.528.836-1.082.836-.758 0-1.296-.617-1.296-1.479Zm1.804-.304c-.032-.37-.257-.611-.566-.611-.303 0-.522.23-.595.611h1.16Zm-3.727-1.125.5 2.192.765-.175.128.56-2.14.49-.129-.56.765-.176-.372-1.63-.74.167-.127-.56 1.35-.308Zm-1.014 28.402c.156-.074.36-.11.575-.11.669 0 1.02.366 1.02 1.06v1.24h.73v.575h-.73v.78l-.629.109v-.889h-.915v-.575h.915v-1.24c0-.354-.167-.527-.511-.527a1.12 1.12 0 0 0-.455.1v-.523Zm.006-29.036a.474.474 0 0 1 .358-.569c.26-.06.51.098.57.358a.475.475 0 1 1-.928.211Zm-3.358 30.034.632.143c.003.173.123.308.307.35.31.07.596-.17.693-.593l.351-1.539.612.14-.628 2.752-.587-.134.085-.372-.02-.005a.844.844 0 0 1-.812.244c-.449-.102-.694-.486-.633-.986Zm.195-28.295-.015-.033c-.302-.626-.145-1.108.458-1.398.193-.093.392-.15.565-.151l.228.471a1.118 1.118 0 0 0-.453.108c-.311.15-.387.378-.233.698l.016.033.824-.397.25.518-.824.397.975 2.025-.565.273-.976-2.026-.659.318-.25-.518.66-.318Zm-2.438 1.138 1.401 1.758.613-.489.359.45-1.717 1.368-.358-.449.613-.49-1.043-1.307-.593.473-.358-.45 1.083-.864Zm.725 24.532-.706-.341.25-.518 1.978.952-.25.519-.706-.34-.726 1.507.683.33-.25.518-1.247-.602.974-2.025Zm-1.216 3.37a.471.471 0 0 1-.223-.634.475.475 0 1 1 .857.413.474.474 0 0 1-.634.222Zm-3.123-26.1.695.554.57-.716.45.359-.57.715.968.773c.278.221.517.198.732-.072a1.12 1.12 0 0 0 .206-.417l.409.326c-.041.168-.14.35-.273.518-.417.523-.921.568-1.465.135l-.969-.772-.457.572-.449-.359.456-.572-.61-.485.307-.56Zm2.431-1.935a.473.473 0 0 1 .075-.668.471.471 0 0 1 .67.075.477.477 0 0 1-.744.593Zm-1.55 24.734c-.552-.44-.577-1.189-.06-1.839l.147-.184 1.412 1.125c.248-.396.233-.763-.061-.997-.184-.147-.4-.178-.56-.079l-.466-.372c.387-.333.935-.325 1.368.02.592.474.63 1.292.091 1.967-.528.662-1.307.809-1.871.359Zm.272-1.247c-.207.31-.181.638.06.83.236.189.552.146.847-.106l-.907-.724Zm-2.49-1.46c-.372-.466-.377-1.043-.014-1.36l.364.459c-.134.133-.11.363.052.567.166.208.373.257.536.127.135-.108.137-.256-.002-.48l-.075-.12c-.366-.584-.363-1 .009-1.297.441-.352 1.03-.24 1.441.274.398.499.409 1.099.025 1.405l-.378-.475c.127-.141.09-.413-.082-.63-.17-.212-.387-.267-.554-.133-.143.114-.135.268.026.52l.076.12c.344.549.332.953-.04 1.25-.437.348-.996.26-1.384-.227Zm-.353-16.337.345.166.009-.018a.845.845 0 0 1-.058-.846c.2-.415.628-.568 1.103-.398l-.282.584c-.168-.034-.326.052-.408.221-.138.287.033.62.424.808l1.423.685-.273.565-2.544-1.225.261-.542Zm-.223 4.342c-.826-.189-1.298-.827-1.137-1.53.157-.688.821-1.036 1.632-.851l.23.052-.402 1.759c.465.052.788-.12.872-.488.052-.23-.013-.437-.172-.538l.133-.58c.468.203.697.7.574 1.24-.169.74-.89 1.128-1.73.936Zm-2.71 1.802c0-.612.407-1.093.993-1.182v.633a.543.543 0 0 0-.392.543c0 .47.502.774 1.28.774.785 0 1.282-.309 1.282-.79 0-.287-.173-.501-.445-.554v-.632c.612.062 1.046.56 1.046 1.197 0 .847-.769 1.433-1.883 1.433-1.113 0-1.881-.586-1.881-1.422Zm1.347 5.094a.782.782 0 0 1 .59-.938.783.783 0 1 1-.59.938Zm.746-8.308c-.067.295.108.561.464.718l.258-1.132c-.369-.052-.653.113-.722.414Z"/></svg>diff --git a/assets/images/pro_trial_stamp.svg b/assets/images/pro_trial_stamp.svgindex 501de88a48e..a3f90951208 100644--- a/assets/images/pro_trial_stamp.svg+++ b/assets/images/pro_trial_stamp.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" width="51" height="51" fill="none"><path fill="#000" fill-opacity=".15" d="M45 3a3 3 0 0 1 3 3v39a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h39ZM10 7a3 3 0 0 0-3 3v31a3 3 0 0 0 3 3h31a3 3 0 0 0 3-3V10a3 3 0 0 0-3-3H10Z"/><rect width="36" height="36" x="7.5" y="7.5" stroke="#000" stroke-dasharray="2 2" rx=".5"/><rect width="44" height="44" x="3.5" y="3.5" stroke="#000" stroke-dasharray="2 2" rx="2.5"/><path fill="#000" d="M28.636 13.124c.732 0 1.27.617 1.27 1.464s-.538 1.465-1.27 1.465-1.27-.618-1.27-1.465c0-.847.538-1.464 1.27-1.464Zm-6.066-.784c.69 0 1.171.465 1.171 1.124s-.48 1.124-1.17 1.124h-.66V16h-.653v-3.66h1.312Zm3.323.8c.46 0 .784.319.837.82h-.649c-.042-.166-.188-.27-.376-.27-.319 0-.544.297-.544.73V16h-.627v-2.823h.6v.382h.022a.844.844 0 0 1 .737-.418Zm2.743.56c-.382 0-.643.36-.643.888s.261.89.643.89c.381 0 .643-.362.643-.89s-.262-.889-.643-.889Zm-6.725.314h.686c.308 0 .517-.22.517-.55 0-.33-.21-.549-.517-.549h-.686v1.099ZM28.63 36.124c.649 0 1.083.366 1.083.91v.957c0 .382.036.721.104 1.009h-.606a2.793 2.793 0 0 1-.078-.366h-.027c-.151.266-.413.419-.757.419-.539 0-.915-.356-.915-.868 0-.523.397-.811 1.228-.884l.173-.016c.177-.016.25-.09.25-.246 0-.24-.172-.392-.465-.392-.267 0-.46.126-.48.314h-.613c.006-.486.466-.837 1.104-.837Zm3.413 1.867c0 .355.167.527.512.528.146 0 .303-.031.455-.1v.523c-.157.074-.361.11-.575.11-.67 0-1.02-.366-1.02-1.06v-2.286h-.81v-.575h1.438v2.86Zm-11.452-2.076h-1.03V39h-.654v-3.085h-1.035v-.575h2.719v.575Zm2.23.226c.46 0 .784.318.836.82h-.648c-.042-.167-.188-.271-.376-.271-.32 0-.544.297-.544.73V39h-.627v-2.823h.6v.382h.022a.844.844 0 0 1 .737-.418Zm2.993 2.284h.785V39h-2.196v-.575h.785v-1.673h-.758v-.575h1.384v2.248Zm3.272-.784a.583.583 0 0 1-.204.062l-.168.022c-.46.057-.653.193-.653.449 0 .23.162.382.418.382.34 0 .607-.272.607-.622v-.293Zm-3.638-2.782c.267 0 .477.21.477.476a.477.477 0 0 1-.952 0c0-.267.214-.475.475-.476Z"/><path fill="#000" fill-rule="evenodd" d="M20.219 19.813a.406.406 0 0 0-.407.406v8.937H19V20.22c0-.673.546-1.219 1.219-1.219h10.884a.61.61 0 0 1 .431 1.04l-6.704 6.704h1.889v-.838h.812v1.041a.61.61 0 0 1-.61.61h-2.903l-1.397 1.396h6.332v-5.078h.813v5.078a.812.812 0 0 1-.813.813H21.81l-1.422 1.422h10.394a.406.406 0 0 0 .407-.407v-8.937H32v8.937c0 .673-.546 1.219-1.219 1.219H19.897a.61.61 0 0 1-.431-1.04l6.678-6.679h-1.863v.813h-.812v-1.016a.61.61 0 0 1 .61-.61h2.878l1.422-1.421h-6.332v5.078h-.813v-5.078c0-.449.364-.813.813-.813h7.144l1.422-1.422H20.219Z" clip-rule="evenodd"/></svg>+<svg xmlns="http://www.w3.org/2000/svg" width="51" height="51" fill="none"><circle cx="25.5" cy="25.5" r="22.5" stroke="#000"/><circle cx="25.5" cy="25.5" r="19.5" stroke="#000"/><path fill="#000" fill-rule="evenodd" d="M20.219 19.813a.406.406 0 0 0-.407.406v8.937H19V20.22c0-.673.546-1.219 1.219-1.219h10.884a.61.61 0 0 1 .431 1.04l-6.704 6.704h1.889v-.838h.812v1.041a.61.61 0 0 1-.61.61h-2.903l-1.397 1.396h6.332v-5.078h.813v5.078a.812.812 0 0 1-.813.813H21.81l-1.422 1.422h10.394a.406.406 0 0 0 .407-.407v-8.937H32v8.937c0 .673-.546 1.219-1.219 1.219H19.897a.61.61 0 0 1-.431-1.04l6.678-6.679h-1.863v.813h-.812v-1.016a.61.61 0 0 1 .61-.61h2.878l1.422-1.421h-6.332v5.078h-.813v-5.078c0-.449.364-.813.813-.813h7.144l1.422-1.422H20.219Z" clip-rule="evenodd"/><path fill="#000" d="M37.732 22.393c-.19-.61.043-1.035.678-1.233l2.086-.651-.232-.74.526-.165.41 1.313-2.61.815c-.325.102-.435.304-.337.62.042.133.115.267.22.386l-.476.15a1.334 1.334 0 0 1-.265-.495Zm1.123 5.215a.75.75 0 1 1 1.482.225.75.75 0 0 1-1.482-.225Zm-2.298 4.336 2.875 1.996-1.203 1.733-.452-.314.847-1.22-.706-.49-.742 1.069-.452-.314.742-1.068-.814-.565-.847 1.22-.45-.314 1.202-1.733Zm-.296-12.918c-.26-.444-.15-.927.273-1.175.43-.253.86-.065 1.323.585l.097.135c.099.139.195.164.324.088.198-.116.24-.332.099-.573-.13-.22-.327-.32-.493-.245l-.295-.505c.403-.231.914-.021 1.223.505.314.534.223 1.07-.225 1.332l-.79.464a4.243 4.243 0 0 0-.782.575l-.293-.5c.071-.077.162-.16.264-.243l-.013-.021c-.293.004-.545-.138-.712-.422Zm.585-.663c-.19.111-.236.319-.112.53a.58.58 0 0 0 .807.198l.24-.141a.561.561 0 0 1-.15-.138l-.097-.128c-.27-.351-.477-.445-.688-.321Zm.1-3.48a.457.457 0 0 1 .019-.643.454.454 0 0 1 .643.018.45.45 0 0 1-.018.644.454.454 0 0 1-.644-.018Zm-2.504.99.516.546 1.163-1.099-.498-.527.4-.378.91.964-1.563 1.476.514.545-.399.378-1.442-1.526.399-.378Zm.007 18.737 1.447 1.59.518-.47.37.406-.518.471.024.026c.447.492.435.976-.038 1.407-.152.138-.32.243-.478.293l-.337-.37a1.07 1.07 0 0 0 .386-.223c.244-.222.252-.452.023-.703l-.024-.026-.647.59-.37-.408.647-.589-1.447-1.59.444-.404Zm-1.186-22.225.479.32-.202.303.016.011a.808.808 0 0 1 .809.059c.366.244.455.67.23 1.097l-.515-.344c.055-.155-.006-.316-.156-.416-.253-.17-.59-.052-.82.294l-.838 1.257-.5-.333 1.497-2.248Zm-1.056 23.98 1.053 1.875.61-.343.27.48-.611.342.017.03c.326.58.206 1.05-.352 1.363-.179.1-.366.165-.531.178l-.245-.436a1.07 1.07 0 0 0 .425-.13c.288-.161.347-.384.18-.68l-.017-.03-.762.428-.27-.48.763-.428-1.053-1.875.523-.293ZM30.75 10.992l-.927-.349.193-.514 2.434.916-.194.514-.922-.346-1.04 2.76-.584-.22 1.04-2.761Zm-2.39 27.73c-.047-.486.262-.909.77-1.057.696-.203 1.355.219 1.586 1.01.227.778-.087 1.468-.75 1.662-.647.188-1.246-.204-1.468-.967l-.064-.216 1.656-.483c-.172-.414-.468-.603-.813-.502-.216.063-.359.213-.37.393l-.546.16Zm.782.715c.128.332.399.493.682.41.278-.08.418-.35.384-.72l-1.066.31ZM25.3 39c.073-.48.495-.83 1.024-.86.719-.04 1.281.534 1.327 1.343.045.803-.44 1.412-1.16 1.452-.538.03-.986-.27-1.088-.739l.6-.034c.073.15.243.236.458.224.394-.022.62-.36.591-.865-.03-.524-.308-.853-.722-.83-.215.012-.374.117-.42.275l-.61.034Zm-2.267-27.083c-.077-.807.38-1.443 1.077-1.51.697-.065 1.265.474 1.342 1.28.076.807-.382 1.443-1.078 1.509-.697.066-1.265-.473-1.341-1.28Zm.596-.057c.048.503.33.822.693.788.363-.034.58-.401.532-.904-.047-.503-.329-.823-.692-.788-.363.034-.58.402-.532.904Zm-1.42 28.128.863.148.2-1.167c.058-.336-.072-.526-.397-.582a1.072 1.072 0 0 0-.446.02l.085-.492c.16-.044.358-.045.56-.01.63.108.901.51.789 1.165l-.2 1.168.69.118-.094.542-.69-.118-.125.734-.61.002.144-.838-.862-.148.093-.542Zm-1.803-28.691.116.346.019-.007a.808.808 0 0 1 .542-.602c.417-.14.808.052 1.008.491l-.588.196c-.089-.139-.254-.188-.424-.132-.29.097-.404.435-.273.829l.479 1.432-.57.19-.854-2.56.545-.183Zm-.123 26.328-.692-.291.214-.507 1.936.814-.214.507-.69-.29-.622 1.474.67.281-.215.507-1.22-.514.833-1.981Zm-1 3.278a.45.45 0 0 1-.242-.596.454.454 0 0 1 .595-.243c.23.097.34.366.244.597a.453.453 0 0 1-.596.242Zm-1.922-29.027c.563-.345 1.187-.206 1.517.33.329.538.169 1.158-.394 1.503l-.537.329.706 1.151-.533.326-1.83-2.984 1.071-.655Zm.653 23.764.649.47-.933 2.656-.486-.351.733-2.03-.016-.012-1.698 1.333-.478-.346 2.23-1.72Zm-.354-22.071.558-.343c.252-.154.312-.437.148-.706-.165-.268-.445-.342-.696-.188l-.559.341.549.896ZM14.138 35.76c-.444-.507-.34-1.216.257-1.74l.17-.148 1.136 1.298c.302-.331.35-.679.113-.95-.148-.169-.346-.235-.514-.169l-.376-.428c.42-.249.935-.147 1.285.252.477.545.372 1.32-.248 1.864-.61.534-1.368.54-1.823.021Zm-1.643-19.757 2.36 1.508c.214.138.5.303.777.456l-.31.484a7.723 7.723 0 0 1-.397-.206l-.013.021c.188.299.198.608.015.894-.334.522-1.083.59-1.761.156-.674-.43-.929-1.146-.595-1.668.172-.27.439-.39.767-.364l.013-.022-1.18-.753.324-.506Zm2.111 18.63c-.247.256-.278.57-.084.791.191.219.495.231.816.044l-.732-.836ZM13.107 17.83c-.19.299-.026.718.382.98.409.26.86.234 1.05-.065.192-.3.026-.72-.382-.98-.409-.262-.859-.234-1.05.065Zm-1.01 4.308c-.764-.27-1.14-.93-.91-1.58.226-.636.896-.892 1.645-.626l.212.076-.578 1.625c.436.102.763-.026.883-.365.075-.212.037-.417-.103-.53l.191-.537c.422.245.584.743.407 1.242-.242.683-.97.971-1.748.695ZM9.8 22.72l.496.057 2.248 1.92.197-1.728.546.063-.283 2.483-.497-.056-2.247-1.921-.181 1.595-.546-.063.267-2.35Zm1.505 6.883a.749.749 0 1 1 1.448-.392.749.749 0 1 1-1.448.392Zm.363-8.873c-.097.273.04.544.36.733l.372-1.046c-.345-.09-.634.035-.732.313Z"/></svg>diff --git a/assets/images/pro_user_stamp.svg b/assets/images/pro_user_stamp.svgnew file mode 100644index 00000000000..d037a9e8335--- /dev/null+++ b/assets/images/pro_user_stamp.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="51" height="51" fill="none"><path fill="#000" fill-opacity=".3" d="M25.5 3C37.926 3 48 13.074 48 25.5S37.926 48 25.5 48 3 37.926 3 25.5 13.074 3 25.5 3Zm0 3C14.73 6 6 14.73 6 25.5S14.73 45 25.5 45 45 36.27 45 25.5 36.27 6 25.5 6Z"/><circle cx="25.5" cy="25.5" r="22.5" stroke="#000"/><circle cx="25.5" cy="25.5" r="19.5" fill="#000" fill-opacity=".04" stroke="#000"/><path fill="#000" fill-rule="evenodd" d="M20.219 19.813a.406.406 0 0 0-.407.406v8.937H19V20.22c0-.673.546-1.219 1.219-1.219h10.884a.61.61 0 0 1 .431 1.04l-6.704 6.704h1.889v-.838h.812v1.041a.61.61 0 0 1-.61.61h-2.903l-1.397 1.396h6.332v-5.078h.813v5.078a.812.812 0 0 1-.813.813H21.81l-1.422 1.422h10.394a.406.406 0 0 0 .407-.407v-8.937H32v8.937c0 .673-.546 1.219-1.219 1.219H19.897a.61.61 0 0 1-.431-1.04l6.678-6.679h-1.863v.813h-.812v-1.016a.61.61 0 0 1 .61-.61h2.878l1.422-1.421h-6.332v5.078h-.813v-5.078c0-.449.364-.813.813-.813h7.144l1.422-1.422H20.219Z" clip-rule="evenodd"/><path fill="#000" d="M41.093 27.434a.471.471 0 0 1 .933.121.466.466 0 0 1-.527.405.468.468 0 0 1-.406-.526Zm-.965-4.148-.081-.718.565-.064.081.719.035-.004c.683-.077 1.081.227 1.155.884.024.21.01.414-.044.576l-.513.059c.05-.157.064-.315.048-.458-.038-.34-.227-.484-.577-.445l-.035.004.1.899-.564.063-.101-.898-2.207.249-.07-.617 2.208-.249Zm-.95-3.421-.253-.678.534-.198.252.678.033-.012c.644-.24 1.104-.041 1.334.579.073.198.11.4.096.571l-.484.18c.01-.164-.014-.32-.064-.456-.119-.32-.337-.416-.666-.293l-.034.012.315.848-.533.197-.315-.847-2.083.773-.216-.581 2.083-.773ZM38.1 26.002l.564.074-.1.768 1.639.214.097-.743.564.073-.177 1.357-2.203-.286-.1.769-.564-.073.28-2.153Zm-.57 5.34c-.42-.275-.568-.82-.368-1.331.27-.693 1.052-.975 1.832-.67.775.302 1.138 1.021.867 1.714-.203.52-.678.81-1.163.704l.225-.577c.174-.004.328-.127.409-.334.148-.38-.073-.739-.559-.929-.505-.197-.934-.076-1.09.322-.082.207-.052.403.076.514l-.23.587Zm.988 3.746a.469.469 0 0 1-.112-.655.472.472 0 0 1 .655-.112.468.468 0 0 1 .112.655.465.465 0 0 1-.655.112ZM35.8 18.413c-.463-.678-.154-1.583.751-2.2.906-.616 1.86-.573 2.323.106.462.679.153 1.583-.752 2.2-.905.617-1.86.573-2.323-.106Zm.631 13.357.464.328-.447.633 1.35.954.432-.611.464.328-.79 1.118-1.814-1.283-.448.632-.464-.328 1.253-1.771Zm.484-15.023c-.632.43-.88.956-.624 1.331.256.376.836.338 1.467-.092.632-.43.88-.957.625-1.332-.256-.376-.836-.337-1.468.093Zm-3.511 18.486c.09.057.191.134.295.221l.02-.016c-.06-.297.037-.58.294-.803.402-.349.914-.327 1.245.055.339.39.229.863-.344 1.456l-.118.123c-.123.127-.13.229-.029.346.156.179.382.18.6-.01.2-.172.263-.39.157-.544l.457-.397c.31.367.194.926-.282 1.34-.484.419-1.044.427-1.397.02l-.62-.713a4.38 4.38 0 0 0-.731-.686l.453-.392Zm.834-.143a.6.6 0 0 0-.05.858l.19.218a.58.58 0 0 1 .11-.18l.112-.123c.306-.341.363-.568.198-.76-.15-.17-.369-.179-.56-.013Zm-3.9 2.059c.105-.135.268-.258.457-.355.588-.3 1.062-.137 1.375.475l1.028 2.01.713-.365.259.506-1.266.648-1.287-2.517c-.16-.312-.384-.39-.688-.234a1.107 1.107 0 0 0-.355.292l-.236-.46Zm1.4-23.46a.774.774 0 1 1 .728-1.367.774.774 0 0 1-.727 1.368Zm-7.464-2.082c.004-.837.538-1.445 1.262-1.442.723.004 1.252.616 1.249 1.453-.004.836-.539 1.443-1.262 1.44-.723-.003-1.252-.615-1.249-1.451ZM24.26 39.1c.01-.687.543-1.182 1.256-1.173.713.01 1.234.518 1.225 1.205l-.032 2.48-.646-.01.031-2.479a.572.572 0 0 0-.586-.601.57.57 0 0 0-.601.586l-.032 2.48-.646-.009.031-2.48Zm.633-27.492c-.002.521.255.879.632.88.377.002.636-.353.639-.874.002-.522-.254-.88-.631-.881-.377-.002-.638.353-.64.875ZM21.79 40.35c-.57-.149-.917-.602-.817-1.068l.56.147c-.027.185.127.353.377.418.255.066.448-.017.5-.217.043-.165-.044-.284-.286-.379l-.131-.05c-.635-.245-.88-.576-.762-1.03.14-.54.674-.803 1.304-.639.61.16.974.628.851 1.098l-.58-.151c.017-.188-.173-.381-.438-.45-.26-.068-.463.017-.517.222-.045.175.052.291.33.396l.13.05c.597.23.827.557.708 1.012-.14.535-.634.796-1.23.64Zm-.278-29.595.09.366.019-.005c.098-.295.31-.5.611-.573.442-.107.827.124.994.594l-.623.151c-.079-.15-.244-.217-.425-.173-.306.074-.452.412-.351.829l.367 1.516-.603.147-.657-2.712.578-.14ZM18.322 39c-.612-.334-.765-1.058-.372-1.779l.111-.204 1.566.852c.174-.428.096-.782-.23-.96-.204-.11-.42-.105-.558.02l-.517-.282c.319-.391.853-.476 1.334-.214.658.358.833 1.148.426 1.896-.4.735-1.134 1.012-1.76.671Zm-.111-27.83c.604-.316 1.238-.13 1.54.447.301.577.092 1.205-.512 1.521l-.577.302.646 1.236-.572.299-1.675-3.205 1.15-.6Zm.163 26.57c-.148.337-.068.653.2.798.263.144.563.048.806-.249l-1.006-.549Zm.025-24.804.6-.314c.27-.14.353-.429.202-.717-.15-.289-.434-.385-.704-.244l-.6.313.502.962Zm-3.357 23.676c-.336-.307-.36-.756-.064-1.157l.473.432c-.081.15-.044.325.094.45.232.213.595.145.884-.172l1.053-1.152.457.418-1.882 2.06-.438-.4.255-.28-.016-.013a.834.834 0 0 1-.816-.186Zm-2.273-21.276 2.377 1.65c.217.15.506.331.785.5l-.339.488a7.96 7.96 0 0 1-.401-.228l-.015.02c.184.317.182.637-.018.926-.365.526-1.142.566-1.825.091-.68-.47-.915-1.22-.55-1.746.19-.271.47-.384.806-.345l.015-.022-1.188-.825.353-.509Zm.56 1.91c-.208.302-.055.742.357 1.028.412.285.878.276 1.087-.026.21-.301.055-.741-.356-1.027-.412-.286-.878-.276-1.087.025Zm-1.21 4.52c-.782-.297-1.155-.987-.902-1.653.249-.652.946-.9 1.713-.608l.218.083-.635 1.665c.448.116.789-.009.921-.356.083-.217.048-.43-.095-.55l.21-.55c.43.263.587.781.392 1.293-.267.7-1.026.98-1.822.677Zm-2.398.68.513.062 2.308 2.003.216-1.785.564.068-.312 2.565-.512-.062-2.307-2.003-.2 1.646-.565-.069.295-2.425Zm1.907 8.199a.774.774 0 1 1 1.458-.526.774.774 0 1 1-1.458.526ZM11.71 20.3c-.107.28.028.564.355.766l.408-1.072c-.353-.101-.655.021-.763.306Z"/></svg>diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.jsonindex 567580a9c69..c436b1a8fb5 100644--- a/assets/keymaps/default-linux.json+++ b/assets/keymaps/default-linux.json@@ -1103,6 +1103,13 @@"ctrl-enter": "menu::Confirm"}},+ {+ "context": "OnboardingAiConfigurationModal",+ "use_key_equivalents": true,+ "bindings": {+ "escape": "menu::Cancel"+ }+ },{"context": "Diagnostics","use_key_equivalents": true,@@ -1179,7 +1186,8 @@"ctrl-1": "onboarding::ActivateBasicsPage","ctrl-2": "onboarding::ActivateEditingPage","ctrl-3": "onboarding::ActivateAISetupPage",- "ctrl-escape": "onboarding::Finish"+ "ctrl-escape": "onboarding::Finish",+ "alt-tab": "onboarding::SignIn"}}]diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.jsonindex 1c2ad3a006f..960bac14797 100644--- a/assets/keymaps/default-macos.json+++ b/assets/keymaps/default-macos.json@@ -1205,6 +1205,13 @@"cmd-enter": "menu::Confirm"}},+ {+ "context": "OnboardingAiConfigurationModal",+ "use_key_equivalents": true,+ "bindings": {+ "escape": "menu::Cancel"+ }+ },{"context": "Diagnostics","use_key_equivalents": true,@@ -1281,7 +1288,8 @@"cmd-1": "onboarding::ActivateBasicsPage","cmd-2": "onboarding::ActivateEditingPage","cmd-3": "onboarding::ActivateAISetupPage",- "cmd-escape": "onboarding::Finish"+ "cmd-escape": "onboarding::Finish",+ "alt-tab": "onboarding::SignIn"}}]diff --git a/crates/ai_onboarding/src/ai_upsell_card.rs b/crates/ai_onboarding/src/ai_upsell_card.rsindex 65d3866273e..e9639ca075d 100644--- a/crates/ai_onboarding/src/ai_upsell_card.rs+++ b/crates/ai_onboarding/src/ai_upsell_card.rs@@ -137,7 +137,7 @@ impl RenderOnce for AiUpsellCard {.size(rems_from_px(72.)).child(Vector::new(- VectorName::CertifiedUserStamp,+ VectorName::ProUserStamp,rems_from_px(72.),rems_from_px(72.),)diff --git a/crates/onboarding/src/ai_setup_page.rs b/crates/onboarding/src/ai_setup_page.rsindex 6099745c409..00f2d5fc8ba 100644--- a/crates/onboarding/src/ai_setup_page.rs+++ b/crates/onboarding/src/ai_setup_page.rs@@ -1,7 +1,7 @@use std::sync::Arc;-use ai_onboarding::{AiUpsellCard, SignInStatus};-use client::UserStore;+use ai_onboarding::AiUpsellCard;+use client::{Client, UserStore};use fs::Fs;use gpui::{Action, AnyView, App, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, WeakEntity,@@ -12,8 +12,8 @@ use language_model::{LanguageModelProvider, LanguageModelProviderId, LanguageModuse project::DisableAiSettings;use settings::{Settings, update_settings_file};use ui::{- Badge, ButtonLike, Divider, Modal, ModalFooter, ModalHeader, Section, SwitchField, ToggleState,- prelude::*, tooltip_container,+ Badge, ButtonLike, Divider, KeyBinding, Modal, ModalFooter, ModalHeader, Section, SwitchField,+ ToggleState, prelude::*, tooltip_container,};use util::ResultExt;use workspace::{ModalView, Workspace};@@ -88,7 +88,7 @@ fn render_privacy_card(tab_index: &mut isize, disabled: bool, cx: &mut App) -> ih_flex().gap_2().justify_between()- .child(Label::new("We don't train models using your data"))+ .child(Label::new("Privacy is the default for Zed")).child(h_flex().gap_1().child(privacy_badge()).child(Button::new("learn_more", "Learn More")@@ -109,7 +109,7 @@ fn render_privacy_card(tab_index: &mut isize, disabled: bool, cx: &mut App) -> i).child(Label::new(- "Feel confident in the security and privacy of your projects using Zed.",+ "Any use or storage of your data is with your explicit, single-use, opt-in consent.",).size(LabelSize::Small).color(Color::Muted),@@ -240,6 +240,7 @@ fn render_llm_provider_card(pub(crate) fn render_ai_setup_page(workspace: WeakEntity<Workspace>,user_store: Entity<UserStore>,+ client: Arc<Client>,window: &mut Window,cx: &mut App,) -> impl IntoElement {@@ -283,15 +284,16 @@ pub(crate) fn render_ai_setup_page(v_flex().mt_2().gap_6()- .child(AiUpsellCard {- sign_in_status: SignInStatus::SignedIn,- sign_in: Arc::new(|_, _| {}),- account_too_young: user_store.read(cx).account_too_young(),- user_plan: user_store.read(cx).plan(),- tab_index: Some({+ .child({+ let mut ai_upsell_card =+ AiUpsellCard::new(client, &user_store, user_store.read(cx).plan(), cx);++ ai_upsell_card.tab_index = Some({tab_index += 1;tab_index - 1- }),+ });++ ai_upsell_card}).child(render_llm_provider_section(&mut tab_index,@@ -336,6 +338,10 @@ impl AiConfigurationModal {selected_provider,}}++ fn cancel(&mut self, _: &menu::Cancel, cx: &mut Context<Self>) {+ cx.emit(DismissEvent);+ }}impl ModalView for AiConfigurationModal {}@@ -349,11 +355,15 @@ impl Focusable for AiConfigurationModal {}impl Render for AiConfigurationModal {- fn render(&mut self, _window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {+ fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {v_flex()+ .key_context("OnboardingAiConfigurationModal").w(rems(34.)).elevation_3(cx).track_focus(&self.focus_handle)+ .on_action(+ cx.listener(|this, _: &menu::Cancel, _window, cx| this.cancel(&menu::Cancel, cx)),+ ).child(Modal::new("onboarding-ai-setup-modal", None).header(@@ -368,18 +378,19 @@ impl Render for AiConfigurationModal {.section(Section::new().child(self.configuration_view.clone())).footer(ModalFooter::new().end_slot(- h_flex()- .gap_1()- .child(- Button::new("onboarding-closing-cancel", "Cancel")- .on_click(cx.listener(|_, _, _, cx| cx.emit(DismissEvent))),+ Button::new("ai-onb-modal-Done", "Done")+ .key_binding(+ KeyBinding::for_action_in(+ &menu::Cancel,+ &self.focus_handle.clone(),+ window,+ cx,+ )+ .map(|kb| kb.size(rems_from_px(12.))),)- .child(Button::new("save-btn", "Done").on_click(cx.listener(- |_, _, window, cx| {- window.dispatch_action(menu::Confirm.boxed_clone(), cx);- cx.emit(DismissEvent);- },- ))),+ .on_click(cx.listener(|this, _event, _window, cx| {+ this.cancel(&menu::Cancel, cx)+ })),),),)@@ -396,7 +407,7 @@ impl AiPrivacyTooltip {impl Render for AiPrivacyTooltip {fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {- const DESCRIPTION: &'static str = "One of Zed's most important principles is transparency. This is why we are and value open-source so much. And it wouldn't be any different with AI.";+ const DESCRIPTION: &'static str = "We believe in opt-in data sharing as the default for building AI products, rather than opt-out. We'll only use or store your data if you affirmatively send it to us. ";tooltip_container(window, cx, move |this, _, _| {this.child(@@ -407,7 +418,7 @@ impl Render for AiPrivacyTooltip {.size(IconSize::Small).color(Color::Muted),)- .child(Label::new("Privacy Principle")),+ .child(Label::new("Privacy First")),).child(div().max_w_64().child(diff --git a/crates/onboarding/src/basics_page.rs b/crates/onboarding/src/basics_page.rsindex a4e40280511..a19a21fddf3 100644--- a/crates/onboarding/src/basics_page.rs+++ b/crates/onboarding/src/basics_page.rs@@ -201,12 +201,15 @@ fn render_telemetry_section(tab_index: &mut isize, cx: &App) -> impl IntoElementlet fs = <dyn Fs>::global(cx);v_flex()+ .pt_6().gap_4()+ .border_t_1()+ .border_color(cx.theme().colors().border_variant.opacity(0.5)).child(Label::new("Telemetry").size(LabelSize::Large)).child(SwitchField::new("onboarding-telemetry-metrics","Help Improve Zed",- Some("Sending anonymous usage data helps us build the right features and create the best experience.".into()),+ Some("Anonymous usage data helps us build the right features and improve your experience.".into()),if TelemetrySettings::get_global(cx).metrics {ui::ToggleState::Selected} else {@@ -294,7 +297,7 @@ fn render_base_keymap_section(tab_index: &mut isize, cx: &mut App) -> impl IntoEToggleButtonWithIcon::new("Emacs", IconName::EditorEmacs, |_, _, cx| {write_keymap_base(BaseKeymap::Emacs, cx);}),- ToggleButtonWithIcon::new("Cursor (Beta)", IconName::EditorCursor, |_, _, cx| {+ ToggleButtonWithIcon::new("Cursor", IconName::EditorCursor, |_, _, cx| {write_keymap_base(BaseKeymap::Cursor, cx);}),],@@ -326,10 +329,7 @@ fn render_vim_mode_switch(tab_index: &mut isize, cx: &mut App) -> impl IntoElemeSwitchField::new("onboarding-vim-mode","Vim Mode",- Some(- "Coming from Neovim? Zed's first-class implementation of Vim Mode has got your back."- .into(),- ),+ Some("Coming from Neovim? Use our first-class implementation of Vim Mode.".into()),toggle_state,{let fs = <dyn Fs>::global(cx);diff --git a/crates/onboarding/src/editing_page.rs b/crates/onboarding/src/editing_page.rsindex a8f0265b6b5..8b4293db0db 100644--- a/crates/onboarding/src/editing_page.rs+++ b/crates/onboarding/src/editing_page.rs@@ -584,11 +584,15 @@ fn render_popular_settings_section(window: &mut Window,cx: &mut App,) -> impl IntoElement {- const LIGATURE_TOOLTIP: &'static str = "Ligatures are when a font creates a special character out of combining two characters into one. For example, with ligatures turned on, =/= would become ≠.";+ const LIGATURE_TOOLTIP: &'static str =+ "Font ligatures combine two characters into one. For example, turning =/= into ≠.";v_flex()- .gap_5()- .child(Label::new("Popular Settings").size(LabelSize::Large).mt_8())+ .pt_6()+ .gap_4()+ .border_t_1()+ .border_color(cx.theme().colors().border_variant.opacity(0.5))+ .child(Label::new("Popular Settings").size(LabelSize::Large)).child(render_font_customization_section(tab_index, window, cx)).child(SwitchField::new(@@ -683,7 +687,10 @@ fn render_popular_settings_section([ToggleButtonSimple::new("Auto", |_, _, cx| {write_show_mini_map(ShowMinimap::Auto, cx);- }),+ })+ .tooltip(Tooltip::text(+ "Show the minimap if the editor's scrollbar is visible.",+ )),ToggleButtonSimple::new("Always", |_, _, cx| {write_show_mini_map(ShowMinimap::Always, cx);}),@@ -707,7 +714,7 @@ fn render_popular_settings_section(pub(crate) fn render_editing_page(window: &mut Window, cx: &mut App) -> impl IntoElement {let mut tab_index = 0;v_flex()- .gap_4()+ .gap_6().child(render_import_settings_section(&mut tab_index, cx)).child(render_popular_settings_section(&mut tab_index, window, cx))}diff --git a/crates/onboarding/src/onboarding.rs b/crates/onboarding/src/onboarding.rsindex c4d2b6847ce..98f61df97b8 100644--- a/crates/onboarding/src/onboarding.rs+++ b/crates/onboarding/src/onboarding.rs@@ -77,6 +77,8 @@ actions!(ActivateAISetupPage,/// Finish the onboarding process.Finish,+ /// Sign in while in the onboarding flow.+ SignIn]);@@ -376,6 +378,7 @@ impl Onboarding {cx,).map(|kb| kb.size(rems_from_px(12.)));+if ai_setup_page {this.child(ButtonLike::new("start_building")@@ -387,14 +390,7 @@ impl Onboarding {.w_full().justify_between().child(Label::new("Start Building"))- .child(keybinding.map_or_else(- || {- Icon::new(IconName::Check)- .size(IconSize::Small)- .into_any_element()- },- IntoElement::into_any_element,- )),+ .children(keybinding),).on_click(|_, window, cx| {window.dispatch_action(Finish.boxed_clone(), cx);@@ -409,11 +405,10 @@ impl Onboarding {.ml_1().w_full().justify_between()- .child(Label::new("Skip All"))- .child(keybinding.map_or_else(- || gpui::Empty.into_any_element(),- IntoElement::into_any_element,- )),+ .child(+ Label::new("Skip All").color(Color::Muted),+ )+ .children(keybinding),).on_click(|_, window, cx| {window.dispatch_action(Finish.boxed_clone(), cx);@@ -435,23 +430,39 @@ impl Onboarding {Button::new("sign_in", "Sign In").full_width().style(ButtonStyle::Outlined)+ .size(ButtonSize::Medium)+ .key_binding(+ KeyBinding::for_action_in(&SignIn, &self.focus_handle, window, cx)+ .map(|kb| kb.size(rems_from_px(12.))),+ ).on_click(|_, window, cx| {- let client = Client::global(cx);- window- .spawn(cx, async move |cx| {- client- .sign_in_with_optional_connect(true, &cx)- .await- .notify_async_err(cx);- })- .detach();+ window.dispatch_action(SignIn.boxed_clone(), cx);}).into_any_element()},)}+ fn on_finish(_: &Finish, _: &mut Window, cx: &mut App) {+ go_to_welcome_page(cx);+ }++ fn handle_sign_in(_: &SignIn, window: &mut Window, cx: &mut App) {+ let client = Client::global(cx);++ window+ .spawn(cx, async move |cx| {+ client+ .sign_in_with_optional_connect(true, &cx)+ .await+ .notify_async_err(cx);+ })+ .detach();+ }+fn render_page(&mut self, window: &mut Window, cx: &mut Context<Self>) -> AnyElement {+ let client = Client::global(cx);+match self.selected_page {SelectedPage::Basics => crate::basics_page::render_basics_page(cx).into_any_element(),SelectedPage::Editing => {@@ -460,16 +471,13 @@ impl Onboarding {SelectedPage::AiSetup => crate::ai_setup_page::render_ai_setup_page(self.workspace.clone(),self.user_store.clone(),+ client,window,cx,).into_any_element(),}}-- fn on_finish(_: &Finish, _: &mut Window, cx: &mut App) {- go_to_welcome_page(cx);- }}impl Render for Onboarding {@@ -486,6 +494,7 @@ impl Render for Onboarding {.size_full().bg(cx.theme().colors().editor_background).on_action(Self::on_finish)+ .on_action(Self::handle_sign_in).on_action(cx.listener(|this, _: &ActivateBasicsPage, _, cx| {this.set_page(SelectedPage::Basics, cx);}))diff --git a/crates/ui/src/components/button/toggle_button.rs b/crates/ui/src/components/button/toggle_button.rsindex 6fbf8346670..91defa730b3 100644--- a/crates/ui/src/components/button/toggle_button.rs+++ b/crates/ui/src/components/button/toggle_button.rs@@ -1,6 +1,8 @@+use std::rc::Rc;+use gpui::{AnyView, ClickEvent};-use crate::{ButtonLike, ButtonLikeRounding, ElevationIndex, TintColor, prelude::*};+use crate::{ButtonLike, ButtonLikeRounding, ElevationIndex, TintColor, Tooltip, prelude::*};/// The position of a [`ToggleButton`] within a group of buttons.#[derive(Debug, PartialEq, Eq, Clone, Copy)]@@ -301,6 +303,7 @@ pub struct ButtonConfiguration {icon: Option<IconName>,on_click: Box<dyn Fn(&ClickEvent, &mut Window, &mut App) + 'static>,selected: bool,+ tooltip: Option<Rc<dyn Fn(&mut Window, &mut App) -> AnyView>>,}mod private {@@ -315,6 +318,7 @@ pub struct ToggleButtonSimple {label: SharedString,on_click: Box<dyn Fn(&ClickEvent, &mut Window, &mut App) + 'static>,selected: bool,+ tooltip: Option<Rc<dyn Fn(&mut Window, &mut App) -> AnyView>>,}impl ToggleButtonSimple {@@ -326,6 +330,7 @@ impl ToggleButtonSimple {label: label.into(),on_click: Box::new(on_click),selected: false,+ tooltip: None,}}@@ -333,6 +338,11 @@ impl ToggleButtonSimple {self.selected = selected;self}++ pub fn tooltip(mut self, tooltip: impl Fn(&mut Window, &mut App) -> AnyView + 'static) -> Self {+ self.tooltip = Some(Rc::new(tooltip));+ self+ }}impl private::ToggleButtonStyle for ToggleButtonSimple {}@@ -344,6 +354,7 @@ impl ButtonBuilder for ToggleButtonSimple {icon: None,on_click: self.on_click,selected: self.selected,+ tooltip: self.tooltip,}}}@@ -353,6 +364,7 @@ pub struct ToggleButtonWithIcon {icon: IconName,on_click: Box<dyn Fn(&ClickEvent, &mut Window, &mut App) + 'static>,selected: bool,+ tooltip: Option<Rc<dyn Fn(&mut Window, &mut App) -> AnyView>>,}impl ToggleButtonWithIcon {@@ -366,6 +378,7 @@ impl ToggleButtonWithIcon {icon,on_click: Box::new(on_click),selected: false,+ tooltip: None,}}@@ -373,6 +386,11 @@ impl ToggleButtonWithIcon {self.selected = selected;self}++ pub fn tooltip(mut self, tooltip: impl Fn(&mut Window, &mut App) -> AnyView + 'static) -> Self {+ self.tooltip = Some(Rc::new(tooltip));+ self+ }}impl private::ToggleButtonStyle for ToggleButtonWithIcon {}@@ -384,6 +402,7 @@ impl ButtonBuilder for ToggleButtonWithIcon {icon: Some(self.icon),on_click: self.on_click,selected: self.selected,+ tooltip: self.tooltip,}}}@@ -486,11 +505,13 @@ impl<T: ButtonBuilder, const COLS: usize, const ROWS: usize> RenderOnceicon,on_click,selected,+ tooltip,} = button.into_configuration();let entry_index = row_index * COLS + col_index;ButtonLike::new((self.group_name, entry_index))+ .rounding(None).when_some(self.tab_index, |this, tab_index| {this.tab_index(tab_index + entry_index as isize)})@@ -498,7 +519,6 @@ impl<T: ButtonBuilder, const COLS: usize, const ROWS: usize> RenderOncethis.toggle_state(true).selected_style(ButtonStyle::Tinted(TintColor::Accent))})- .rounding(None).when(self.style == ToggleButtonGroupStyle::Filled, |button| {button.style(ButtonStyle::Filled)})@@ -527,6 +547,9 @@ impl<T: ButtonBuilder, const COLS: usize, const ROWS: usize> RenderOnce|this| this.color(Color::Accent),)),)+ .when_some(tooltip, |this, tooltip| {+ this.tooltip(move |window, cx| tooltip(window, cx))+ }).on_click(on_click).into_any_element()})@@ -920,6 +943,23 @@ impl<T: ButtonBuilder, const COLS: usize, const ROWS: usize> Component),],)])+ .children(vec![single_example(+ "With Tooltips",+ ToggleButtonGroup::single_row(+ "with_tooltips",+ [+ ToggleButtonSimple::new("First", |_, _, _| {})+ .tooltip(Tooltip::text("This is a tooltip. Hello!")),+ ToggleButtonSimple::new("Second", |_, _, _| {})+ .tooltip(Tooltip::text("This is a tooltip. Hey?")),+ ToggleButtonSimple::new("Third", |_, _, _| {})+ .tooltip(Tooltip::text("This is a tooltip. Get out of here now!")),+ ],+ )+ .selected_index(1)+ .button_width(rems_from_px(100.))+ .into_any_element(),+ )]).into_any_element(),)}diff --git a/crates/ui/src/components/image.rs b/crates/ui/src/components/image.rsindex 18f804abe9d..09c3bbeb943 100644--- a/crates/ui/src/components/image.rs+++ b/crates/ui/src/components/image.rs@@ -14,10 +14,10 @@ use crate::prelude::*;#[strum(serialize_all = "snake_case")]pub enum VectorName {AiGrid,- CertifiedUserStamp,DebuggerGrid,Grid,ProTrialStamp,+ ProUserStamp,ZedLogo,ZedXCopilot,}