update button in settings

This commit is contained in:
SpikeHD 2022-04-22 14:18:56 -07:00
parent d3b583ea59
commit b555457e5b
4 changed files with 21 additions and 2 deletions

5
manifest.json Normal file
View File

@ -0,0 +1,5 @@
{
"applicationId": "js.grassclipper.app",
"version": "0.4.6",
"resourcesURL": "https://github.com/Grasscutters/GrassClipper/releases/latest/download/manifest.json"
}

View File

@ -1,6 +1,6 @@
{ {
"applicationId": "js.grassclipper.app", "applicationId": "js.grassclipper.app",
"version": "1.0.0", "version": "0.4.6",
"defaultMode": "window", "defaultMode": "window",
"port": 0, "port": 0,
"documentRoot": "/resources/", "documentRoot": "/resources/",

View File

@ -47,6 +47,15 @@
Install the proxy server via the install script. Install the proxy server via the install script.
</span> </span>
</div> </div>
<div class="settingsRow">
<div class="settingSection">
<span class="settingLabel">Update</span>
<button class="smolBtn disabled" onclick="checkForUpdatesAndShow()" disabled>Update</button>
</div>
<span class="settingSubtitle">
Checking for updates...
</span>
</div>
</div> </div>
</div> </div>
<div id="controlBar"> <div id="controlBar">

View File

@ -244,12 +244,17 @@ body {
background: linear-gradient(#ffc61e, #ffd326); background: linear-gradient(#ffc61e, #ffd326);
} }
.playBtn.disabled { .playBtn.disabled,
.smolBtn.disabled {
background: linear-gradient(#9c9c9c, #949494); background: linear-gradient(#9c9c9c, #949494);
color: rgb(226, 226, 226); color: rgb(226, 226, 226);
cursor: default; cursor: default;
} }
.smolBtn.disabled:hover {
background: linear-gradient(#949494, #9c9c9c);
}
.smolBtn { .smolBtn {
padding: 0 20px; padding: 0 20px;
border-radius: 5px; border-radius: 5px;