mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-12 02:30:41 +09:00
dark about window
This commit is contained in:
parent
824f690b13
commit
3b9a954b04
5 changed files with 21 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
body, html { width: 100%; height: 100%; -webkit-user-select: none; user-select: none; -webkit-app-region: drag; }
|
||||
|
||||
body {
|
||||
margin: 0; color: #2c2b27; background: #fff; font-family: Helvetica, Arial, sans-serif; display: flex;
|
||||
margin: 0; color: #2c2b27; font-family: Helvetica, Arial, sans-serif; display: flex;
|
||||
flex-direction: column; justify-content: center; align-items: center; font-size: 12px;
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,6 @@ body {
|
|||
}
|
||||
.buttons button:hover { background: #f1981a; }
|
||||
|
||||
html.dark body { background: #2c2b27; color: #929082; }
|
||||
html.dark body { color: #929082; }
|
||||
html.dark .title { color: #cbc9bd; }
|
||||
html.dark .copyright { color: #5c5a54; }
|
|
@ -4,6 +4,8 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
|
||||
<title>Anytype</title>
|
||||
|
||||
<script src="common.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="about.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
var a = location.search.replace(/^\?/, '').split('&');
|
||||
var param = {};
|
||||
|
||||
a.forEach((s) => {
|
||||
var kv = s.split('=');
|
||||
param[kv[0]] = kv[1];
|
||||
});
|
||||
var param = getParam();
|
||||
|
||||
document.title = 'Anytype';
|
||||
document.getElementById('year').innerText = new Date().getFullYear();
|
||||
|
@ -12,5 +6,4 @@ document.getElementById('version').innerText = 'Version: ' + param.version;
|
|||
document.getElementById('close').addEventListener('click', e => {
|
||||
e.preventDefault();
|
||||
window.close();
|
||||
});
|
||||
document.getElementById('html').className = param.theme;
|
||||
});
|
14
electron/common.js
Normal file
14
electron/common.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
function getParam () {
|
||||
var a = location.search.replace(/^\?/, '').split('&');
|
||||
var param = {};
|
||||
|
||||
a.forEach((s) => {
|
||||
var kv = s.split('=');
|
||||
param[kv[0]] = kv[1];
|
||||
});
|
||||
return param;
|
||||
};
|
||||
|
||||
var param = getParam();
|
||||
|
||||
document.getElementById('html').className = param.theme;
|
|
@ -206,6 +206,7 @@ class CommonStore {
|
|||
|
||||
set(this.configObj, newConfig);
|
||||
|
||||
this.configObj.debug = this.configObj.debug || {};
|
||||
this.configObj.debug.ui ? obj.addClass('debug') : obj.removeClass('debug');
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue