Skip to content

Commit

Permalink
UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Adkinsm2020 committed Dec 11, 2021
1 parent e463d85 commit 00ba2e4
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
tags:
- v*
- "*"
pull_request:

jobs:
Expand Down
8 changes: 7 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
"version": "0.2.0",
"configurations": [
{
"command": "yarn start",
"name": "Run yarn start",
"request": "launch",
"type": "node-terminal"
},
/*{
"type": "node",
"request": "launch",
"name": "Electron Main",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"program": "${workspaceFolder}/main.js",
"skipFiles": ["<node_internals>/**"]
}
}*/
]
}
23 changes: 8 additions & 15 deletions app/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ body {
display: flex;
flex-direction: row;
align-items: center;
bottom: 0px;
width: 97.85%;
left: 221.2065px;
bottom: 25px;
width: 53.85%;
padding: 5px;
backdrop-filter: blur(30px);
background-color: rgba(255, 255, 255, 0.911);
Expand All @@ -56,8 +57,6 @@ body {
padding-left: 10px;
padding-right: 10px;
justify-content: flex-start;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 20px;
}

Expand Down Expand Up @@ -632,24 +631,17 @@ alert {
height: 85%;
backdrop-filter: blur(30px);
padding: 25px;
background-color: rgba(255, 255, 255, 0.26);
background-color: #2a2a2a;
}

#consoleCentre .centreItem {
background-color: #d3d3d3f1;
background-color: #4c4c4c;
padding: 10px;
width: 20%;
width: 48px;
height: 48px;
border-radius: 15px;
}

#consoleCentre .centreCon {
background-color: #202020a9;
border-radius: 30px;
border: transparent 1px solid;
height: 40%;
padding: 20px;
}

hr#showConsoleCentreLine {
width: 5%;
position: absolute;
Expand Down Expand Up @@ -682,6 +674,7 @@ hr#showConsoleCentreLine {
border-radius: 5px;
backdrop-filter: blur(15px);
color: rgb(255, 255, 255);
transition: display .2s;
}

.dropdown-content a {
Expand Down
15 changes: 12 additions & 3 deletions app/assets/js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ document.addEventListener('DOMContentLoaded', () => {
/**
* Get Date Or Time
*/

(function () {
setInterval(() => {
document.querySelector('#dockTime').textContent =
Expand All @@ -87,7 +88,7 @@ document.addEventListener('DOMContentLoaded', () => {
document.querySelector('#dockDate').textContent =
methods.formatDate(new Date().getFullYear() +
'/' +
new Date().getMonth() +
(new Date().getMonth() + 1) +
'/' +
new Date().getDate());
});
Expand All @@ -109,14 +110,22 @@ function showLauPad() {
hideConsoleCentre();
methods.showElementByFade('#laupad');
document.querySelector('#dock_time').style.bottom = 'calc(55%)';
document.querySelector('#dock_time').style.left = '0px';
document.querySelector('#dock_time').style.width = '97.85%';
document.querySelector('#dock_time').style.borderBottomLeftRadius = "0px";
document.querySelector('#dock_time').style.borderBottomRightRadius = "0px";
document.querySelector('#sysIco').onclick = function () {
hideLauPad();
};
}

function hideLauPad() {
methods.hideElementByFade('#laupad');
document.querySelector('#dock_time').style.bottom = '0px';
document.querySelector('#dock_time').style.bottom = '25px';
document.querySelector('#dock_time').style.left = '221.2065px';
document.querySelector('#dock_time').style.width = '53.85%';
document.querySelector('#dock_time').style.borderBottomLeftRadius = "25px";
document.querySelector('#dock_time').style.borderBottomRightRadius = "25px";
document.querySelector('#sysIco').onclick = function () {
showLauPad();
};
Expand Down Expand Up @@ -540,7 +549,7 @@ document.querySelector('#terminalButton').onclick = function () {
*
* By `Leng Yi Bai`
*
* @param str 'String'
* @param str {String}
*/

function displayMessage(str) {
Expand Down
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function createWindow() {

mainWindow.loadFile("./app/index.html");

console.log(app.getVersion());

/*const template = [
{
label: "Settings",
Expand Down

0 comments on commit 00ba2e4

Please sign in to comment.