parent
5f39b99fe4
commit
4b8775f7d3
3 changed files with 6 additions and 77 deletions
|
|
@ -1,52 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1" ?>
|
||||
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg
|
||||
version="1.1"
|
||||
id="Layer_1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
viewBox="0 0 512 512"
|
||||
xml:space="preserve"
|
||||
>
|
||||
<path
|
||||
style="fill:#2BA5F7;"
|
||||
d="M426.578,330.454c-0.574,93.717-76.724,169.515-170.571,169.515
|
||||
c-93.86,0-170.01-75.798-170.584-169.515c25.066,14.463,54.149-1.069,85.162-1.069c31.13,0,60.304-30.644,85.422-45.211
|
||||
c25.118,14.567,54.292,45.211,85.422,45.211C372.442,329.385,401.525,344.918,426.578,330.454z"
|
||||
/>
|
||||
<path
|
||||
style="fill:#F95428;"
|
||||
d="M512,182.615c0,63.2-34.365,118.366-85.422,147.84c0-0.352,0-0.717,0-1.069
|
||||
c0-63.187-67.386-85.318-118.444-114.805c-0.391-62.639-1.5-150.304-52.127-179.648c25.118-14.567,54.292-22.901,85.422-22.901
|
||||
C435.628,12.031,512,88.402,512,182.615z"
|
||||
/>
|
||||
<path
|
||||
style="fill:#F7B239;"
|
||||
d="M256.007,34.932c-50.627,29.344,9.086,139.653,8.695,202.292
|
||||
c-51.058,29.474-179.279,28.961-179.279,92.161c0,0.352,0,0.717,0,1.069C34.365,300.98,0,245.815,0,182.615
|
||||
C0,88.402,76.372,12.031,170.584,12.031C201.714,12.031,230.888,20.364,256.007,34.932z"
|
||||
/>
|
||||
<path
|
||||
style="fill:#666666;"
|
||||
d="M256.007,143.325c31.013,0,60.096,23.758,85.162,38.221c0,0.352,0,0.717,0,1.069
|
||||
c0,31.541-3.289,77.082-18.215,102.429c-14.926,25.346-41.489,30.498-66.946,45.254c-26.65-15.448-64.993-33.093-79.988-60.034
|
||||
c-13.653-24.529-5.174-57.586-5.174-87.649c0-0.352,0-0.717,0-1.069C195.911,167.082,224.994,143.325,256.007,143.325z"
|
||||
/>
|
||||
<path
|
||||
style="fill:#2197D8;"
|
||||
d="M426.578,329.385c0,0.352,0,0.717,0,1.069c-25.053,14.463-54.136,22.745-85.149,22.745
|
||||
c-31.13,0-60.304-8.334-85.422-22.901c50.914-29.513,85.162-84.601,85.162-147.683c0-0.352,0-0.717,0-1.069
|
||||
C392.226,211.033,426.578,266.199,426.578,329.385z"
|
||||
/>
|
||||
<path
|
||||
style="fill:#E09B2D;"
|
||||
d="M170.845,182.615c0,63.082,34.247,118.17,85.162,147.683c-25.118,14.567-54.292,22.901-85.422,22.901
|
||||
c-31.013,0-60.096-8.281-85.162-22.745c0-0.352,0-0.717,0-1.069c0-63.2,34.365-118.366,85.422-147.84
|
||||
C170.845,181.898,170.845,182.263,170.845,182.615z"
|
||||
/>
|
||||
<path
|
||||
style="fill:#E54728;"
|
||||
d="M341.168,181.546c-25.066-14.463-54.149-22.745-85.162-22.745s-60.096,8.281-85.162,22.745
|
||||
c0.391-62.639,34.534-117.27,85.162-146.614C306.634,64.276,340.777,118.907,341.168,181.546z"
|
||||
/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.4 KiB |
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg viewBox="0 0 262 262"
|
||||
xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid">
|
||||
<path d="M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027" fill="#4285F4"/>
|
||||
<path d="M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1" fill="#34A853"/>
|
||||
<path d="M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782" fill="#FBBC05"/>
|
||||
<path d="M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251" fill="#EB4335"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.1 KiB |
|
|
@ -1,7 +1,7 @@
|
|||
use crate::section;
|
||||
use gpui::{
|
||||
img, App, AppContext, Context, Entity, FocusHandle, Focusable, IntoElement, ParentElement as _,
|
||||
Render, Styled, Window,
|
||||
App, AppContext, Context, Entity, FocusHandle, Focusable, IntoElement, ParentElement as _,
|
||||
Render, Styled, Window, img,
|
||||
};
|
||||
use gpui_component::{dock::PanelControl, v_flex};
|
||||
|
||||
|
|
@ -47,20 +47,9 @@ impl Focusable for ImageStory {
|
|||
|
||||
impl Render for ImageStory {
|
||||
fn render(&mut self, _: &mut Window, _: &mut Context<Self>) -> impl IntoElement {
|
||||
// The svg file are from Assets
|
||||
// See: crates/story/src/assets.rs#L21
|
||||
v_flex()
|
||||
.gap_4()
|
||||
.size_full()
|
||||
.child(section("SVG 160px").child(img("src/fixtures/google.svg").size_40().flex_grow()))
|
||||
.child(
|
||||
section("SVG 80px")
|
||||
.child(img("src/fixtures/color-wheel.svg").size_20().flex_grow()),
|
||||
)
|
||||
.child(
|
||||
section("SVG from img 40px").child(
|
||||
img("https://pub.lbkrs.com/files/202503/vEnnmgUM6bo362ya/sdk.svg").h_24(),
|
||||
),
|
||||
)
|
||||
v_flex().gap_4().size_full().child(
|
||||
section("SVG from URL")
|
||||
.child(img("https://pub.lbkrs.com/files/202503/vEnnmgUM6bo362ya/sdk.svg").h_24()),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue