mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-142 - Made changes as per review
This commit is contained in:
committed by
Kiran Niranjan
parent
dfbcf46412
commit
c996c52849
@@ -1,39 +0,0 @@
|
||||
html, body {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.content {
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.name {
|
||||
display: block;
|
||||
font-size: 1.3em;
|
||||
padding: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.version-text {
|
||||
display: block;
|
||||
font-size: 1em;
|
||||
color: #2f2f2f;
|
||||
}
|
||||
|
||||
.copyright-text {
|
||||
display: block;
|
||||
padding: 10px;
|
||||
font-size: 0.6em;
|
||||
color: #7f7f7f;
|
||||
}
|
||||
@@ -1,16 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en" style="margin: 0;height: 100%;font-family: sans-serif;">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>About</title>
|
||||
<link rel="stylesheet" type="text/css" href="./about-app.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<img class="logo" src="symphony-logo.png">
|
||||
<span id="app-name" class="name">Symphony</span>
|
||||
<span id="version" class="version-text"></span>
|
||||
<span id="copyright" class="copyright-text"></span>
|
||||
<body style="margin: 0; height: 100%; font-family: sans-serif;">
|
||||
<div class="content" style="text-align: center; display: flex; flex-direction: column; padding-top: 20px">
|
||||
<img class="logo" src="symphony-logo.png" style="margin: auto;">
|
||||
<span id="app-name" class="name" style="flex: 1; font-size: 1.3em; padding: 10px; font-weight: bold;">Symphony</span>
|
||||
<span id="version" class="version-text" style="flex: 1; font-size: 1em; color: #2f2f2f;"></span>
|
||||
<span id="copyright" class="copyright-text" style="flex: 1; padding: 10px; font-size: 0.6em; color: #7f7f7f;"></span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 5.1 KiB |
@@ -101,13 +101,6 @@ const template = [{
|
||||
submenu: [{
|
||||
label: 'Learn More',
|
||||
click() { electron.shell.openExternal('https://www.symphony.com'); }
|
||||
},
|
||||
{
|
||||
label: 'App Version',
|
||||
click(focusedWindow){
|
||||
let windowName = focusedWindow ? focusedWindow.name : '';
|
||||
aboutApp.openAboutWindow(windowName);
|
||||
}
|
||||
}]
|
||||
}
|
||||
];
|
||||
@@ -246,6 +239,14 @@ function getTemplate(app) {
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
|
||||
template[3].submenu.push({
|
||||
label: 'About Symphony',
|
||||
click(focusedWindow) {
|
||||
let windowName = focusedWindow ? focusedWindow.name : '';
|
||||
aboutApp.openAboutWindow(windowName);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return template;
|
||||
|
||||
Reference in New Issue
Block a user