fix #132: theme color for mobile chrome

This commit is contained in:
antelle 2016-04-03 12:32:38 +03:00
parent 29677458a7
commit 3599c72db4
3 changed files with 7 additions and 1 deletions

View File

@ -5,10 +5,11 @@
<title>KeeWeb</title>
<meta name="signature" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#6386EC">
<link rel="shortcut icon" href="favicon.png?__inline=true" />
<link rel="apple-touch-icon" sizes="192x192" href="touchicon.png?__inline=true">
<link rel="stylesheet" href="css/main.css?__inline=true" />
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="js/vendor.js?__inline=true"></script>
<script src="js/app.js?__inline=true"></script>
</head>

View File

@ -8,6 +8,10 @@ var ThemeChanger = {
}
});
document.body.classList.add('th-' + theme);
var metaThemeColor = document.head.querySelector('meta[name=theme-color]');
if (metaThemeColor) {
metaThemeColor.content = window.getComputedStyle(document.body).backgroundColor;
}
}
};

View File

@ -27,6 +27,7 @@ Storage providers, one-time passwords, usability improvements
`+` show error details on open
`+` select dropbox folder
`+` building deb
`+` theme color for mobile chrome
`-` fix capslock indicator
`-` fix file settings input behavior
`-` fix favicon download