Skip to content

Commit 8cce390

Browse files
authored
Update Welcome panel assets and styling (#208)
1 parent 7724ccb commit 8cce390

File tree

5 files changed

+34
-22
lines changed

5 files changed

+34
-22
lines changed
-7.97 KB
Loading
-15.4 KB
Loading
-3.09 KB
Loading

front_end/panels/rn_welcome/RNWelcome.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,14 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
173173
</x-link>
174174
</div>
175175
${launchId ? html`
176-
<div class="rn-session-id-message">
177-
${i18nString(UIStrings.sessionIdMessage)}
178-
<div class="rn-session-id">
176+
<aside>
177+
<div class="rn-session-id-message">
178+
${i18nString(UIStrings.sessionIdMessage)}
179+
</div>
180+
<div class="code-block rn-session-id">
179181
${launchId}
180182
</div>
181-
</div>
183+
</aside>
182184
` : ''}
183185
${this.#reactNativeVersion !== null && this.#reactNativeVersion !== undefined ? html`
184186
<p class="rn-welcome-version">React Native: <code>${this.#reactNativeVersion}</code></p>

front_end/panels/rn_welcome/rnWelcome.css

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
.rn-welcome-icon {
5353
width: 30px;
5454
height: 30px;
55-
border-radius: 4px;
55+
border-radius: 7px;
5656
margin-right: 12px;
5757
}
5858

@@ -65,7 +65,7 @@
6565
.rn-welcome-title-accessory {
6666
margin-left: 12px;
6767
padding: 4px 8px;
68-
border-radius: 4px;
68+
border-radius: 6px;
6969
background-color: var(--sys-color-green-bright);
7070
font-size: 12px;
7171
color: var(--sys-color-primary);
@@ -101,23 +101,14 @@
101101
border-right: 1px solid var(--sys-color-on-base-divider);
102102
}
103103

104-
.rn-session-id-message {
105-
display: block;
106-
margin-top: 24px;
107-
}
108-
109-
.rn-session-id-message > .rn-session-id {
110-
user-select: all;
111-
}
112-
113104
.rn-welcome-version {
114105
position: fixed;
115106
top: 8px;
116107
right: 8px;
117108
margin-top: 24px;
118109
padding: 4px 12px;
119-
border-radius: 6px;
120-
background-color: var(--sys-color-surface-variant);
110+
border-radius: 8px;
111+
background: var(--sys-color-surface2);
121112
color: var(--color-text-secondary);
122113
font-size: 11px;
123114
}
@@ -158,9 +149,9 @@
158149
margin-bottom: 8px;
159150
padding: 8px;
160151
padding-right: 16px;
161-
border: 1px solid var(--input-outline);
162-
border-radius: 4px;
163-
background-color: var(--color-background);
152+
border: 1px solid var(--sys-color-divider);
153+
border-radius: 10px;
154+
background-color: var(--sys-color-base);
164155
text-align: left;
165156
font-size: 14px;
166157
cursor: pointer;
@@ -187,10 +178,29 @@
187178
.rn-welcome-image {
188179
flex-shrink: 0;
189180
aspect-ratio: calc(16 / 9);
190-
height: 64px;
181+
height: 70px;
191182
margin-right: 16px;
192-
border-radius: 2px;
183+
border-radius: 6px;
193184
background-color: var(--sys-color-on-surface-subtle);
194185
background-position: center;
195186
background-size: cover;
196187
}
188+
189+
.rn-session-id-message {
190+
display: block;
191+
margin-top: 64px;
192+
margin-bottom: 8px;
193+
}
194+
195+
.rn-session-id {
196+
user-select: all;
197+
cursor: text;
198+
}
199+
200+
.code-block {
201+
background: var(--sys-color-surface2);
202+
padding: 8px;
203+
border-radius: 8px;
204+
color: var(--sys-color-on-surface);
205+
font-family: var(--monospace-font-family);
206+
}

0 commit comments

Comments
 (0)