Skip to content

Commit e8e0a60

Browse files
committed
Added plugin icons, modified landing panel styles and formatting
1 parent 6b1df47 commit e8e0a60

File tree

6 files changed

+45
-31
lines changed

6 files changed

+45
-31
lines changed
155 Bytes
Loading
-103 Bytes
Loading
20.1 KB
Loading

ui-svelte-starter/src/App.svelte

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,39 @@
99
};
1010
});
1111
12-
export let name;
12+
export let src;
1313
</script>
1414

15-
<div>
16-
<sp-heading>Hello {name}!</sp-heading>
17-
<sp-heading>Plugin has been open for {count} seconds.</sp-heading>
18-
<sp-detail>Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn how to build Svelte apps.</sp-detail>
15+
<div class="container">
16+
<img {src} alt="svelte" height="75px" width="75px"/>
17+
<div class="body">
18+
<sp-heading>Plugin has been open for {count} seconds.</sp-heading>
19+
<sp-detail>Visit the <a href="https://www.adobe.io/photoshop/uxp/">UXP documentation</a> to learn how to build plugins for Photoshop.</sp-detail>
20+
</div>
1921
</div>
2022

2123
<style>
22-
div {
23-
text-align: center;
24-
padding: 1em;
25-
max-width: 240px;
24+
.container {
25+
display: flex;
26+
flex-direction: column;
27+
justify-content: center;
28+
align-items: center;
29+
height: 100%;
30+
padding: 0.5em;
2631
margin: 0 auto;
2732
}
33+
34+
.body {
35+
text-align: center;
36+
font-size: 12px;
37+
}
38+
39+
sp-detail a {
40+
color: #34a1eb;
41+
text-decoration: none;
42+
}
43+
44+
sp-detail a:hover {
45+
text-decoration: underline;
46+
}
2847
</style>

ui-svelte-starter/src/global.css

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1+
html,
12
body {
23
margin: 0;
4+
height: 100%;
5+
width: 100%;
36
padding: 8px;
47
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
58
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
6-
}
7-
8-
a {
9-
color: rgb(0, 100, 200);
10-
text-decoration: none;
11-
}
12-
13-
a:hover {
14-
text-decoration: underline;
15-
}
16-
17-
a:visited {
18-
color: rgb(0, 80, 160);
19-
}
9+
-webkit-font-smoothing: antialiased;
10+
background-color: var(--uxp-host-background-color);
11+
color: var(--uxp-host-text-color);
12+
border-color: var(--uxp-host-border-color);
13+
font-size: var(--uxp-host-font-size);
14+
}

ui-svelte-starter/src/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import { entrypoints } from 'uxp';
55
const app = new App({
66
target: document.body,
77
props: {
8-
name: 'UXP'
9-
}
8+
src: 'svelte.png'
9+
},
1010
});
1111

1212
entrypoints.setup({
13-
plugin: {
13+
plugin: {
1414
create(plugin) {
15-
console.log('Plugin created successfully.', plugin)
16-
},
17-
panels: {
18-
helloSvelte: app,
19-
},
15+
console.log('Plugin created successfully.', plugin)
16+
},
17+
panels: {
18+
svelte: app,
19+
},
2020
},
2121
});

0 commit comments

Comments
 (0)