Skip to content

Commit

Permalink
Merge pull request #232 from LucyLMM/master
Browse files Browse the repository at this point in the history
visual and functional overhaul
  • Loading branch information
LucyLMM authored Jan 23, 2022
2 parents 6b52370 + 8a423ea commit ad52cf6
Show file tree
Hide file tree
Showing 410 changed files with 22,762 additions and 1,033 deletions.
Binary file modified build/icons/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/icons/icon.icns
Binary file not shown.
Binary file modified build/icons/icon.ico
Binary file not shown.
Binary file added build/icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added engines/fairy-stockfish.exe
Binary file not shown.
Binary file added engines/multi-variant-stockfish.exe
Binary file not shown.
Binary file added engines/stockfish.exe
Binary file not shown.
15,832 changes: 15,807 additions & 25 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ function createWindow () {
mainWindow = null
})
}

app.on('ready', createWindow)

app.on('window-all-closed', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/assets/chessground.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ cg-board square.current-premove {
pointer-events: none;
}
cg-board piece.dragging {
cursor: move;
cursor:crosshair;
z-index: 9;
}
cg-board piece.anim {
Expand Down
12 changes: 12 additions & 0 deletions src/renderer/assets/cssVars.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@
--main-bg-color: white;
--second-bg-color: white;
--main-text-color: #2c3e50;
--second-text-color: #2c3e50;
--light-text-color: #fff;
--main-border-color: black;
--scroll-track-color: lightgrey;
--scroll-thumb-color: grey;
--variation-color: lightgrey;
--button-color: #34495e;
--tooltip-color: lightgrey;
--hover-color: #22303d;
--save-btn-color: #4AAE9B;
--cancel-btn-color: #b22222;
--tab-btn-color: #333;
--tab-header-color: #4AAE9B;
--highlight-color: #2196F3;
--hover-highlight-color: #2196F3;
--dark-highlight-color: #2196F3;
--menubar-activetab-color: #00af89;
--eval-line-color: #ff4400;
}
188 changes: 188 additions & 0 deletions src/renderer/components/AboutTabModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
<template>
<div class="modal">
<div
class="backdrop"
@click="cancel"
/>
<div class="contents">
<header class="header">
<em class="icon mdi mdi-information-outline" />
{{ " " + title + " " }} <em class="icon mdi mdi-github" />
</header>
<section class="body">
<div class="item">
<span>
{{
'A free, open-source and modern Chess Variant Analysis GUI for the 21 century'
}}
</span>
</div>
<div
class="item"
style="white-space: pre-line"
>
<span>
{{ 'Version: 0.2.0' }}
</span>
</div>
<div class="item">
<span>
{{ 'License: AGPL-3.0' }}
</span>
</div>
<div class="item">
<span>
{{ 'Find our official' }}
</span>
<button
class="btn aboutTab"
@click="openGitHub"
>
GitHub
</button>
</div>
<div class="item">
<span>
{{ "Read more about our" }}
</span>
<button
class="btn aboutTab"
@click="openLicense"
>
License
</button>
</div>
<div
class="item"
style="white-space: pre-line"
>
<span>
{{ 'Our Authors:' }}
</span>
</div>
<div class="item">
<span>
{{ 'Johannes Czech' }}
</span>
</div>
<div class="item">
<span>
{{
'Laurin Bielich, Jannik Holmer, Peter Mader, Simon Muchau, Martin Ruzicka,'
}}
</span>
</div>
<div class="item">
<span>
{{
'Daniel Creß, Samuel Gajdos, Gökay Karaahmetli, Lena-Marie Munderich, Leif Schwaß'
}}
</span>
</div>
</section>
<footer class="footer">
<button
type="button"
class="btn aboutTab"
@click="cancel"
>
Close
</button>
</footer>
</div>
</div>
</template>

<script>
import { shell } from 'electron'
export default {
name: 'AboutTabModal',
props: {
title: {
required: true,
type: String
}
},
methods: {
cancel () {
this.$emit('close')
},
openGitHub () {
shell.openExternal('https://github.com/ml-research/liground')
},
openLicense () {
shell.openExternal(
'https://github.com/ml-research/liground/blob/master/LICENSE'
)
}
}
}
</script>

<style scoped>
.modal {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
}
.backdrop {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.3);
z-index: -1;
}
.contents {
display: flex;
flex-direction: column;
background: var(--second-bg-color);
box-shadow: 2px 2px 20px 1px var(--second-bg-color);
overflow-x: 10px;
}
.item {
margin: 5px 0;
display: flex;
flex-direction: row;
align-items: center;
font-size: 1em;
}
.item > * {
margin: 0 10px;
}
.header {
font-size: 20px;
padding: 20px;
display: flex;
justify-content: space-between;
border-bottom: 1px solid var(--main-border-color);
color: var(--tab-header-color);
user-select: none;
}
.footer {
padding: 15px;
display: flex;
justify-content: center;
border-top: 1px solid var(--main-border-color);
user-select: none;
}
.btn {
padding: 2px 3px;
margin: 2px;
border: none;
border-radius: 2px;
color: white;
cursor: pointer;
}
.btn.aboutTab {
background: var(--tab-btn-color);
}
</style>
Loading

0 comments on commit ad52cf6

Please sign in to comment.