Skip to content

Commit 18a64f6

Browse files
committed
change important button class to primary
1 parent 1de4404 commit 18a64f6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

public/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ button {
255255
background-color: var(--surface4);
256256
}
257257

258-
&.important {
258+
&.primary {
259259
background-color: var(--accent);
260260

261261
&:hover {

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export function App() {
252252

253253
<button
254254
class={[
255-
use(this.allowPlay, (allowed) => (!allowed ? "disabled" : "important")),
255+
use(this.allowPlay, (allowed) => (!allowed ? "disabled" : "primary")),
256256
]}
257257
on:click={startgame}
258258
title="Start Game"

src/FsExplorer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export function FSExplorer() {
175175
<div class="flex space-between vcenter" style="margin-block: 1rem;">
176176
<span>File: <pre>{use(this.filePath)}</pre></span>
177177
<span class="flex vcenter gap-sm">
178-
<button on:click={() => {
178+
<button class="primary" on:click={() => {
179179
this.fs.writeFile(this.filePath, (new TextEncoder()).encode(this.fileData));
180180
// this.filePath = "";
181181
// this.fileData = "";
@@ -202,7 +202,7 @@ export function FSExplorer() {
202202
</div>
203203
))}
204204
<div class="flex vcenter" id="uploadcontainer">
205-
<button class="large important" title="Upload to this directory" on:click={() => {
205+
<button class="large primary" title="Upload to this directory" on:click={() => {
206206
let input = h("input", { type: "file" });
207207

208208
input.addEventListener("change", () => {

src/main.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function IntroSplash() {
217217
};
218218

219219
let finish = async () => {
220-
$el.classList.remove("important");
220+
$el.classList.remove("primary");
221221
$el.classList.add("disabled");
222222
this.playlabel.innerText = "Initializing...";
223223
window.assetblob = URL.createObjectURL(new Blob([encbuf]));
@@ -271,7 +271,7 @@ function IntroSplash() {
271271
)),
272272
(
273273
<div>
274-
<button class="action important" on:click={download}>
274+
<button class="action primary" on:click={download}>
275275
<span class="material-symbols-rounded">download</span>
276276
<span class="label">Download Assets</span>
277277
</button>
@@ -282,7 +282,7 @@ function IntroSplash() {
282282
{$if(use(this.downloaded),
283283
$if(use(this.decrypted),
284284
(
285-
<button class="action important" on:click={finish}>
285+
<button class="action primary" on:click={finish}>
286286
<span class="material-symbols-rounded">stadia_controller</span>
287287
<span bind:this={use(this.playlabel)} class="label">Play</span>
288288
</button>
@@ -293,7 +293,7 @@ function IntroSplash() {
293293
Downloaded assets. Now you need to decrypt them. Find the game files directory for your copy of Celeste and upload <code>Content/Dialog/english.txt</code>.
294294
</p>
295295

296-
<button class="action important" on:click={decrypt}>
296+
<button class="action primary" on:click={decrypt}>
297297
<span class="material-symbols-rounded">encrypted</span>
298298
<span class="label">Decrypt</span>
299299
</button>

0 commit comments

Comments
 (0)