diff --git a/resources/icons/cog.svg b/resources/icons/cog.svg new file mode 100644 index 0000000..8391ec3 --- /dev/null +++ b/resources/icons/cog.svg @@ -0,0 +1,10 @@ + +Created with Fabric.js 1.7.22 + + + + + + + + \ No newline at end of file diff --git a/resources/index.html b/resources/index.html index 216fbaf..b49bdbb 100644 --- a/resources/index.html +++ b/resources/index.html @@ -13,6 +13,9 @@ GrassClipper 0.3.0 +
+ +
Minimize
diff --git a/resources/js/index.js b/resources/js/index.js index 21d0102..cd25f95 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -55,18 +55,17 @@ async function getFavIps() { * @returns {Promise} */ async function getCfg() { + const defaultConf = { + genshinImpactFolder: '', + lastConnect: '', + enableKillswitch: false + } const cfgStr = await Neutralino.storage.getData('config').catch(e => { // The data isn't set, so this is our first time opening - Neutralino.storage.setData('config', JSON.stringify({ - genshinImpactFolder: '', - lastConnect: '' - })) + Neutralino.storage.setData('config', JSON.stringify(defaultConf)) }) - const config = cfgStr ? JSON.parse(cfgStr) : { - genshinImpactFolder: '', - lastConnect: '' - } + const config = cfgStr ? JSON.parse(cfgStr) : defaultConf return config } diff --git a/resources/style/index.css b/resources/style/index.css index cc766a2..11bc7c4 100644 --- a/resources/style/index.css +++ b/resources/style/index.css @@ -99,9 +99,9 @@ body { filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(142deg) brightness(107%) contrast(101%); } -#minBtn { +#titleSection { /* Move all components to the right since this is the first button */ - margin-left: auto !important; + margin-right: auto !important; } .playBtn:hover, .smolBtn:hover {