mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
CmdPal: Update web search extensions icons (#42034)
## Summary of the Pull Request This PR updates icons in the Web Search extension: - Replaces the main icon with a new one based on Fluent UI System Color Icons. The globe’s color shifts slightly from turquoise to bluish to increase contrast between the Web Search extension icon and the Clipboard History icon. - Fixes the cutoff on the right edge of the original extension icon. - Updates the history item icon to the Fluent UI History icon. - Adds a search command icon using the Fluent UI Search icon.  <img width="1678" height="1029" alt="image" src="https://github.com/user-attachments/assets/a1072036-cae5-44da-9666-700df7a4642f" /> <img width="1784" height="1101" alt="image" src="https://github.com/user-attachments/assets/e27fd7f1-0591-45ab-8685-e2629b393ec1" /> <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist - [x] Closes: #42037 - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx <!-- Provide a more detailed description of the PR, other things fixed, or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<g>
|
||||
<g transform="matrix(2.25,0,0,2.2493,-0.5,-4.49859)">
|
||||
<path d="M10,18C14.389,18 18,14.389 18,10C18,5.611 14.389,2 10,2C5.611,2 2,5.611 2,10C2,14.389 5.611,18 10,18" style="fill:url(#_Linear1);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g transform="matrix(2.25,0,0,2.2493,-0.49775,-4.48735)">
|
||||
<path d="M7.853,2.291C7.52,2.759 7.246,3.266 7.037,3.801C6.669,4.707 6.387,5.796 6.211,7L2.58,7C2.45,7.323 2.34,7.657 2.25,8L6.09,8C5.969,9.331 5.969,10.669 6.091,12L2.251,12C2.341,12.343 2.451,12.677 2.581,13L6.211,13C6.387,14.204 6.669,15.293 7.037,16.199C7.246,16.734 7.52,17.241 7.853,17.709C8.552,17.903 9.274,18.001 10,18C10.726,18.001 11.448,17.903 12.147,17.709C12.48,17.241 12.754,16.734 12.963,16.199C13.331,15.293 13.613,14.204 13.789,13L17.419,13C17.549,12.677 17.659,12.343 17.748,12L13.908,12C14.032,10.67 14.032,9.33 13.908,8L17.748,8C17.66,7.66 17.55,7.326 17.418,7L13.79,7C13.614,5.796 13.332,4.707 12.964,3.801C12.755,3.266 12.481,2.759 12.148,2.291C11.449,2.097 10.726,1.999 10,2C9.274,1.999 8.552,2.097 7.853,2.291M7.223,7C7.389,5.924 7.643,4.965 7.963,4.178C8.261,3.445 8.605,2.886 8.966,2.518C9.324,2.153 9.672,2 10,2C10.328,2 10.676,2.153 11.034,2.518C11.394,2.886 11.739,3.445 12.037,4.178C12.357,4.965 12.611,5.924 12.777,7L7.223,7ZM10,18C10.328,18 10.676,17.847 11.034,17.482C11.394,17.114 11.739,16.555 12.037,15.822C12.357,15.035 12.611,14.076 12.777,13L7.223,13C7.39,14.076 7.644,15.035 7.964,15.822C8.262,16.555 8.606,17.114 8.967,17.482C9.325,17.847 9.673,18 10.001,18M7.001,10C7.001,10.692 7.034,11.362 7.097,12L12.905,12C12.968,11.335 13,10.668 13,10C13,9.308 12.967,8.638 12.904,8L7.096,8C7.032,8.665 7,9.332 7,10" style="fill:url(#_Radial2);"/>
|
||||
</g>
|
||||
<g transform="matrix(-2.25,0,0,2.22013,44.5,-3.97361)">
|
||||
<path d="M10,18C14.389,18 18,14.389 18,10C18,5.611 14.389,2 10,2C5.611,2 2,5.611 2,10C2,14.389 5.611,18 10,18" style="fill:url(#_Radial3);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g transform="matrix(-2.25,0,0,2.22013,44.5,-3.97361)">
|
||||
<path d="M10,18C14.389,18 18,14.389 18,10C18,5.611 14.389,2 10,2C5.611,2 2,5.611 2,10C2,14.389 5.611,18 10,18" style="fill:url(#_Radial4);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g transform="matrix(1.07186,0,0,1.07219,-1186.62,-806.111)">
|
||||
<g transform="matrix(1.71182,0,0,1.71128,1106.73,763.62)">
|
||||
<path d="M9.978,11.087C8.977,11.846 7.756,12.257 6.5,12.257C3.342,12.257 0.744,9.658 0.744,6.5C0.744,3.342 3.342,0.744 6.5,0.744C9.658,0.744 12.257,3.342 12.257,6.5C12.257,7.756 11.846,8.977 11.087,9.978L14.119,13.01C14.279,13.158 14.369,13.367 14.369,13.584C14.369,14.015 14.015,14.369 13.584,14.369C13.367,14.369 13.158,14.279 13.01,14.119L9.978,11.087Z" style="fill:url(#_Linear5);"/>
|
||||
</g>
|
||||
<g transform="matrix(1.71182,0,0,1.71128,1106.73,763.62)">
|
||||
<path d="M9.978,11.087C8.977,11.846 7.756,12.257 6.5,12.257C3.342,12.257 0.744,9.658 0.744,6.5C0.744,3.342 3.342,0.744 6.5,0.744C9.658,0.744 12.257,3.342 12.257,6.5C12.257,7.756 11.846,8.977 11.087,9.978L14.119,13.01C14.279,13.158 14.369,13.367 14.369,13.584C14.369,14.015 14.015,14.369 13.584,14.369C13.367,14.369 13.158,14.279 13.01,14.119L9.978,11.087Z" style="fill:url(#_Linear6);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0.000311608" gradientUnits="userSpaceOnUse" gradientTransform="matrix(11.555,10.666,-10.666,11.555,5.556,4.667)"><stop offset="0" style="stop-color:rgb(41,195,255);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(32,82,203);stop-opacity:1"/></linearGradient>
|
||||
<radialGradient id="_Radial2" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(4.20189,4.66481,-4.8129,4.338,6.091,12)"><stop offset="0" style="stop-color:rgb(59,213,255);stop-opacity:0"/><stop offset="0.45" style="stop-color:rgb(59,213,255);stop-opacity:0"/><stop offset="0.82" style="stop-color:rgb(59,213,255);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(59,213,255);stop-opacity:1"/></radialGradient>
|
||||
<radialGradient id="_Radial3" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-6.72116,-6.88408e-15,6.70252e-15,-6.72116,14,13.9512)"><stop offset="0" style="stop-color:rgb(0,53,128);stop-opacity:0.7"/><stop offset="1" style="stop-color:rgb(0,53,128);stop-opacity:0"/></radialGradient>
|
||||
<radialGradient id="_Radial4" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(8.37502,6.37502,-6.91548,9.08503,13.2097,13.1926)"><stop offset="0" style="stop-color:rgb(27,68,177);stop-opacity:0.2"/><stop offset="0.41" style="stop-color:rgb(27,68,177);stop-opacity:0.2"/><stop offset="1" style="stop-color:rgb(27,68,177);stop-opacity:0"/></radialGradient>
|
||||
<linearGradient id="_Linear5" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-10.1905,10.1905,-10.1905,-10.1905,12.7341,0.475165)"><stop offset="0" style="stop-color:rgb(239,253,252);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(188,227,247);stop-opacity:1"/></linearGradient>
|
||||
<linearGradient id="_Linear6" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-10.1905,10.1905,-10.1905,-10.1905,12.7341,0.475165)"><stop offset="0" style="stop-color:rgb(239,253,252);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(188,227,247);stop-opacity:1"/></linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<g>
|
||||
<g transform="matrix(2.25,0,0,2.2493,-0.5,-4.49859)">
|
||||
<path d="M10,18C14.389,18 18,14.389 18,10C18,5.611 14.389,2 10,2C5.611,2 2,5.611 2,10C2,14.389 5.611,18 10,18" style="fill:url(#_Linear1);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g transform="matrix(2.25,0,0,2.2493,-0.49775,-4.48735)">
|
||||
<path d="M7.853,2.291C7.52,2.759 7.246,3.266 7.037,3.801C6.669,4.707 6.387,5.796 6.211,7L2.58,7C2.45,7.323 2.34,7.657 2.25,8L6.09,8C5.969,9.331 5.969,10.669 6.091,12L2.251,12C2.341,12.343 2.451,12.677 2.581,13L6.211,13C6.387,14.204 6.669,15.293 7.037,16.199C7.246,16.734 7.52,17.241 7.853,17.709C8.552,17.903 9.274,18.001 10,18C10.726,18.001 11.448,17.903 12.147,17.709C12.48,17.241 12.754,16.734 12.963,16.199C13.331,15.293 13.613,14.204 13.789,13L17.419,13C17.549,12.677 17.659,12.343 17.748,12L13.908,12C14.032,10.67 14.032,9.33 13.908,8L17.748,8C17.66,7.66 17.55,7.326 17.418,7L13.79,7C13.614,5.796 13.332,4.707 12.964,3.801C12.755,3.266 12.481,2.759 12.148,2.291C11.449,2.097 10.726,1.999 10,2C9.274,1.999 8.552,2.097 7.853,2.291M7.223,7C7.389,5.924 7.643,4.965 7.963,4.178C8.261,3.445 8.605,2.886 8.966,2.518C9.324,2.153 9.672,2 10,2C10.328,2 10.676,2.153 11.034,2.518C11.394,2.886 11.739,3.445 12.037,4.178C12.357,4.965 12.611,5.924 12.777,7L7.223,7ZM10,18C10.328,18 10.676,17.847 11.034,17.482C11.394,17.114 11.739,16.555 12.037,15.822C12.357,15.035 12.611,14.076 12.777,13L7.223,13C7.39,14.076 7.644,15.035 7.964,15.822C8.262,16.555 8.606,17.114 8.967,17.482C9.325,17.847 9.673,18 10.001,18M7.001,10C7.001,10.692 7.034,11.362 7.097,12L12.905,12C12.968,11.335 13,10.668 13,10C13,9.308 12.967,8.638 12.904,8L7.096,8C7.032,8.665 7,9.332 7,10" style="fill:url(#_Radial2);"/>
|
||||
</g>
|
||||
<g transform="matrix(-2.25,0,0,2.22013,44.5,-3.97361)">
|
||||
<path d="M10,18C14.389,18 18,14.389 18,10C18,5.611 14.389,2 10,2C5.611,2 2,5.611 2,10C2,14.389 5.611,18 10,18" style="fill:url(#_Radial3);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g transform="matrix(-2.25,0,0,2.22013,44.5,-3.97361)">
|
||||
<path d="M10,18C14.389,18 18,14.389 18,10C18,5.611 14.389,2 10,2C5.611,2 2,5.611 2,10C2,14.389 5.611,18 10,18" style="fill:url(#_Radial4);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g transform="matrix(1.07186,0,0,1.07219,-1186.62,-806.111)">
|
||||
<g transform="matrix(1.71182,0,0,1.71128,1106.73,763.62)">
|
||||
<path d="M9.978,11.087C8.977,11.846 7.756,12.257 6.5,12.257C3.342,12.257 0.744,9.658 0.744,6.5C0.744,3.342 3.342,0.744 6.5,0.744C9.658,0.744 12.257,3.342 12.257,6.5C12.257,7.756 11.846,8.977 11.087,9.978L14.119,13.01C14.279,13.158 14.369,13.367 14.369,13.584C14.369,14.015 14.015,14.369 13.584,14.369C13.367,14.369 13.158,14.279 13.01,14.119L9.978,11.087Z" style="fill:url(#_Linear5);"/>
|
||||
</g>
|
||||
<g transform="matrix(1.71182,0,0,1.71128,1106.73,763.62)">
|
||||
<path d="M9.978,11.087C8.977,11.846 7.756,12.257 6.5,12.257C3.342,12.257 0.744,9.658 0.744,6.5C0.744,3.342 3.342,0.744 6.5,0.744C9.658,0.744 12.257,3.342 12.257,6.5C12.257,7.756 11.846,8.977 11.087,9.978L14.119,13.01C14.279,13.158 14.369,13.367 14.369,13.584C14.369,14.015 14.015,14.369 13.584,14.369C13.367,14.369 13.158,14.279 13.01,14.119L9.978,11.087Z" style="fill:url(#_Linear6);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0.000311608" gradientUnits="userSpaceOnUse" gradientTransform="matrix(11.555,10.666,-10.666,11.555,5.556,4.667)"><stop offset="0" style="stop-color:rgb(41,195,255);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(32,82,203);stop-opacity:1"/></linearGradient>
|
||||
<radialGradient id="_Radial2" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(4.20189,4.66481,-4.8129,4.338,6.091,12)"><stop offset="0" style="stop-color:rgb(59,213,255);stop-opacity:0"/><stop offset="0.45" style="stop-color:rgb(59,213,255);stop-opacity:0"/><stop offset="0.82" style="stop-color:rgb(59,213,255);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(59,213,255);stop-opacity:1"/></radialGradient>
|
||||
<radialGradient id="_Radial3" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-6.72116,-6.88408e-15,6.70252e-15,-6.72116,14,13.9512)"><stop offset="0" style="stop-color:rgb(0,53,128);stop-opacity:0.7"/><stop offset="1" style="stop-color:rgb(0,53,128);stop-opacity:0"/></radialGradient>
|
||||
<radialGradient id="_Radial4" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(8.37502,6.37502,-6.91548,9.08503,13.2097,13.1926)"><stop offset="0" style="stop-color:rgb(27,68,177);stop-opacity:0.2"/><stop offset="0.41" style="stop-color:rgb(27,68,177);stop-opacity:0.2"/><stop offset="1" style="stop-color:rgb(27,68,177);stop-opacity:0"/></radialGradient>
|
||||
<linearGradient id="_Linear5" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-9.10051,9.10051,-9.10051,-9.10051,11.6441,1.56519)"><stop offset="0" style="stop-color:rgb(203,247,244);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(153,209,239);stop-opacity:1"/></linearGradient>
|
||||
<linearGradient id="_Linear6" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-9.10051,9.10051,-9.10051,-9.10051,11.6441,1.56519)"><stop offset="0" style="stop-color:rgb(203,247,244);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(153,209,239);stop-opacity:1"/></linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.4 KiB |
@@ -1,46 +0,0 @@
|
||||
<svg width="17" height="18" viewBox="0 0 17 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.5 16.5C12.9183 16.5 16.5 12.9183 16.5 8.5C16.5 4.08172 12.9183 0.5 8.5 0.5C4.08172 0.5 0.5 4.08172 0.5 8.5C0.5 12.9183 4.08172 16.5 8.5 16.5Z" fill="url(#paint0_linear_1874_17772)"/>
|
||||
<g style="mix-blend-mode:overlay">
|
||||
<mask id="mask0_1874_17772" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="17" height="17">
|
||||
<path d="M8.5 16.5C12.9183 16.5 16.5 12.9183 16.5 8.5C16.5 4.08172 12.9183 0.5 8.5 0.5C4.08172 0.5 0.5 4.08172 0.5 8.5C0.5 12.9183 4.08172 16.5 8.5 16.5Z" fill="url(#paint1_linear_1874_17772)"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_1874_17772)">
|
||||
<g opacity="0.4">
|
||||
<path d="M8.50093 16.9422C10.2322 16.9422 11.6356 13.1618 11.6356 8.49844C11.6356 3.83508 10.2322 0.0546875 8.50093 0.0546875C6.76967 0.0546875 5.36621 3.83508 5.36621 8.49844C5.36621 13.1618 6.76967 16.9422 8.50093 16.9422Z" stroke="white" stroke-width="0.888889" stroke-miterlimit="10"/>
|
||||
<path d="M-1.27734 10.7227H17.3893" stroke="white" stroke-width="0.888889" stroke-miterlimit="10"/>
|
||||
<path d="M-0.388672 6.27734H16.9447" stroke="white" stroke-width="0.888889" stroke-miterlimit="10"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g filter="url(#filter0_dd_1874_17772)">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.49414 8.79454C3.49414 10.7549 5.0596 12.318 6.95878 12.318C8.85796 12.318 10.4234 10.7549 10.4234 8.79454C10.4234 6.8342 8.85796 5.27105 6.95878 5.27105C5.0596 5.27105 3.49414 6.8342 3.49414 8.79454ZM2.27778 8.79454C2.27778 11.4123 4.37353 13.5344 6.95878 13.5344C8.07111 13.5344 9.09282 13.1415 9.89597 12.4854L13.1894 15.8203C13.4314 16.0653 13.8237 16.0653 14.0656 15.8203C14.3076 15.5753 14.3076 15.1781 14.0656 14.9331L10.7498 11.5756C11.3096 10.7944 11.6398 9.83353 11.6398 8.79454C11.6398 6.17679 9.54403 4.05469 6.95878 4.05469C4.37353 4.05469 2.27778 6.17679 2.27778 8.79454Z" fill="url(#paint2_linear_1874_17772)"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="filter0_dd_1874_17772" x="1.5678" y="3.69991" width="13.3888" height="13.3683" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||
<feOffset dy="0.354773"/>
|
||||
<feGaussianBlur stdDeviation="0.354773"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.32 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1874_17772"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||
<feOffset dy="0.0709546"/>
|
||||
<feGaussianBlur stdDeviation="0.0354773"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24 0"/>
|
||||
<feBlend mode="normal" in2="effect1_dropShadow_1874_17772" result="effect2_dropShadow_1874_17772"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_1874_17772" result="shape"/>
|
||||
</filter>
|
||||
<linearGradient id="paint0_linear_1874_17772" x1="4.05556" y1="3.16667" x2="15.6111" y2="13.8333" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#30CCD7"/>
|
||||
<stop offset="1" stop-color="#0669BC"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_1874_17772" x1="4.05556" y1="3.16667" x2="15.6111" y2="13.8333" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#30CCD7"/>
|
||||
<stop offset="1" stop-color="#0669BC"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear_1874_17772" x1="3.84394" y1="4.05469" x2="14.6506" y2="16.7175" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#E7ECF1"/>
|
||||
<stop offset="1" stop-color="#CBCCCD"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
@@ -6,7 +6,11 @@ using Microsoft.CommandPalette.Extensions.Toolkit;
|
||||
|
||||
namespace Microsoft.CmdPal.Ext.WebSearch;
|
||||
|
||||
internal sealed class Icons
|
||||
internal static class Icons
|
||||
{
|
||||
internal static IconInfo WebSearch { get; } = IconHelpers.FromRelativePath("Assets\\WebSearch.png");
|
||||
internal static IconInfo WebSearch { get; } = IconHelpers.FromRelativePaths("Assets\\WebSearch.light.png", "Assets\\WebSearch.dark.png");
|
||||
|
||||
internal static IconInfo Search { get; } = new("\uE721");
|
||||
|
||||
internal static IconInfo History { get; } = new("\uE81C");
|
||||
}
|
||||
|
||||
@@ -31,13 +31,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Assets\WebSearch.svg" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Update="Assets\WebSearch.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Update="Assets\WebSearch.svg">
|
||||
<Content Update="Assets\**\*.*">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -18,7 +18,6 @@ namespace Microsoft.CmdPal.Ext.WebSearch.Pages;
|
||||
|
||||
internal sealed partial class WebSearchListPage : DynamicListPage, IDisposable
|
||||
{
|
||||
private readonly IconInfo _newSearchIcon = new(string.Empty);
|
||||
private readonly ISettingsInterface _settingsManager;
|
||||
private readonly Lock _sync = new();
|
||||
private static readonly CompositeFormat PluginInBrowserName = System.Text.CompositeFormat.Parse(Properties.Resources.plugin_in_browser_name);
|
||||
@@ -32,7 +31,7 @@ internal sealed partial class WebSearchListPage : DynamicListPage, IDisposable
|
||||
|
||||
Name = Resources.command_item_title;
|
||||
Title = Resources.command_item_title;
|
||||
Icon = IconHelpers.FromRelativePath("Assets\\WebSearch.png");
|
||||
Icon = Icons.WebSearch;
|
||||
Id = "com.microsoft.cmdpal.websearch";
|
||||
|
||||
_settingsManager = settingsManager;
|
||||
@@ -70,6 +69,7 @@ internal sealed partial class WebSearchListPage : DynamicListPage, IDisposable
|
||||
var historyItem = items[index];
|
||||
history.Add(new ListItem(new SearchWebCommand(historyItem.SearchString, _settingsManager))
|
||||
{
|
||||
Icon = Icons.History,
|
||||
Title = historyItem.SearchString,
|
||||
Subtitle = historyItem.Timestamp.ToString("g", CultureInfo.InvariantCulture),
|
||||
});
|
||||
@@ -82,7 +82,7 @@ internal sealed partial class WebSearchListPage : DynamicListPage, IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
private static IListItem[] Query(string query, List<ListItem> historySnapshot, ISettingsInterface settingsManager, IconInfo newSearchIcon)
|
||||
private static IListItem[] Query(string query, List<ListItem> historySnapshot, ISettingsInterface settingsManager)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(query);
|
||||
|
||||
@@ -99,7 +99,7 @@ internal sealed partial class WebSearchListPage : DynamicListPage, IDisposable
|
||||
{
|
||||
Title = searchTerm,
|
||||
Subtitle = string.Format(CultureInfo.CurrentCulture, PluginOpen, BrowserInfo.Name ?? BrowserInfo.MSEdgeName),
|
||||
Icon = newSearchIcon,
|
||||
Icon = Icons.Search,
|
||||
};
|
||||
results.Add(result);
|
||||
}
|
||||
@@ -117,7 +117,7 @@ internal sealed partial class WebSearchListPage : DynamicListPage, IDisposable
|
||||
historySnapshot = _historyItems;
|
||||
}
|
||||
|
||||
var items = Query(search ?? string.Empty, historySnapshot, _settingsManager, _newSearchIcon);
|
||||
var items = Query(search ?? string.Empty, historySnapshot, _settingsManager);
|
||||
|
||||
lock (_sync)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user