diff options
-rw-r--r-- | .github/FUNDING.yml | 2 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/bug_report.md | 30 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/empty-template.md | 10 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/feature_request.md | 17 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | src/app/icons/minimize.png | bin | 0 -> 981 bytes | |||
-rw-r--r-- | src/app/index.html | 10 | ||||
-rw-r--r-- | src/app/main.css | 24 | ||||
-rw-r--r-- | src/index.js | 1 |
9 files changed, 86 insertions, 12 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..96f466a --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +liberapay: 0neGal +custom: ["https://github.com/R2Northstar"] diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..139b2fe --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,30 @@ +--- +name: Bug report +about: Create a bug report to help us fix problems +title: 'bug: Short description of your bug' +labels: bug +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Version:** +If possible add on `--version` or simply the version of Viper + +**Additional Info** +Any extra info should go here! diff --git a/.github/ISSUE_TEMPLATE/empty-template.md b/.github/ISSUE_TEMPLATE/empty-template.md new file mode 100644 index 0000000..a6ae206 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/empty-template.md @@ -0,0 +1,10 @@ +--- +name: Empty Template +about: An empty issue template with nothing in it. +title: '' +labels: '' +assignees: '' + +--- + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..9d76fdf --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,17 @@ +--- +name: Feature request +about: Suggest an idea or feature to be added to Viper +title: 'feat: Your Feature' +labels: enhancement +assignees: '' + +--- + +**What feature would you like added?** +A clear and concise description of the feature + +**Why should this feature be added?** +What benefit does this feature offer? + +**Additional Info** +Feel free to put anything here or delete it if not relevant. @@ -81,4 +81,6 @@ Keep in mind building all Linux builds may take a while on some systems as packa ## Credits -All credits for logos go to Imply#9781. +**Logo:** Imply#9781<br> +**Viper Background:** [Uber Panzerhund](https://www.reddit.com/r/titanfall/comments/fwuh2x/take_to_the_skies)<br> +**Titanfall+Northstar Logo:** [Aftonstjarma](https://www.steamgriddb.com/logo/47851) diff --git a/src/app/icons/minimize.png b/src/app/icons/minimize.png Binary files differnew file mode 100644 index 0000000..4169e28 --- /dev/null +++ b/src/app/icons/minimize.png diff --git a/src/app/index.html b/src/app/index.html index 8ebffff..fe383a0 100644 --- a/src/app/index.html +++ b/src/app/index.html @@ -8,7 +8,10 @@ <body> <div id="bgHolder"></div> - <div id="close" onclick="ipcRenderer.send('exit')"></div> + <div id="winbtns"> + <div id="minimize" onclick="ipcRenderer.send('minimize')"></div> + <div id="close" onclick="ipcRenderer.send('exit')"></div> + </div> <nav class="gamesContainer"> <button id="vpBtn" onclick="page(0)"></button> @@ -40,8 +43,9 @@ </ul> <h2>%%viper.menu.info.credits%%</h2> <ul> - <li>"Titanfall|2 + Northstar" logo: <a href="https://www.steamgriddb.com/logo/47851">Aftonstjarma</a></li> - <li>Viper logo: Imply#9781</li> + <li>Viper Logo: Imply#9781</li> + <li>Viper Background: <a href="https://www.reddit.com/r/titanfall/comments/fwuh2x/take_to_the_skies">Uber Panzerhund</a></li> + <li>Titanfall+Northstar Logo: <a href="https://www.steamgriddb.com/logo/47851">Aftonstjarma</a></li> </ul> </div> </div> diff --git a/src/app/main.css b/src/app/main.css index 3907461..de0db46 100644 --- a/src/app/main.css +++ b/src/app/main.css @@ -26,25 +26,33 @@ background: var(--red); } -.playBtn, .gamesContainer button, #close { +.playBtn, .gamesContainer button, #winbtns div { cursor: pointer; } -#close { +#winbtns { z-index: 1; + display: flex; + position: fixed; + top: var(--padding); + right: calc(var(--padding) / 2); +} + +#winbtns div { width: 25px; opacity: 0.6; height: 25px; - position: fixed; - top: var(--padding); - right: var(--padding); + position: relative; background-size: contain; transition: 0.25s ease-in-out; - background-image: url("icons/close.png"); + margin-right: calc(var(--padding) / 2); } -#close:hover {opacity: 1.0} -#close:active {transform: scale(0.98)} +#winbtns #close {background-image: url("icons/close.png")} +#winbtns #minimize {background-image: url("icons/minimize.png")} + +#winbtns div:hover {opacity: 1.0} +#winbtns div:active {transform: scale(0.98)} body { margin: 0; diff --git a/src/index.js b/src/index.js index 98de132..3f50840 100644 --- a/src/index.js +++ b/src/index.js @@ -42,6 +42,7 @@ function start() { win.loadFile(__dirname + "/app/index.html"); ipcMain.on("exit", () => {process.exit(0)}) + ipcMain.on("minimize", () => {win.minimize()}) ipcMain.on("winLog", (event, ...args) => {win.webContents.send("log", ...args)}); ipcMain.on("winAlert", (event, ...args) => {win.webContents.send("alert", ...args)}); ipcMain.on("ns-update-event", (event) => win.webContents.send("ns-update-event", event)); |