reformat and store darkmode setting correct in db
This commit is contained in:
		@@ -2,15 +2,15 @@
 | 
			
		||||
 * The coloring elements for dark theme
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
.backgroundcolor{
 | 
			
		||||
.backgroundcolor {
 | 
			
		||||
    background-color: #141520;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.textcolor{
 | 
			
		||||
.textcolor {
 | 
			
		||||
    color: white;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.subtextcolor{
 | 
			
		||||
.subtextcolor {
 | 
			
		||||
    color: #dedad6;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -18,11 +18,11 @@
 | 
			
		||||
    background: white;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hrcolor{
 | 
			
		||||
    border-color: rgba(255,255,255,.1);
 | 
			
		||||
.hrcolor {
 | 
			
		||||
    border-color: rgba(255, 255, 255, .1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.previewhover:hover{
 | 
			
		||||
.previewhover:hover {
 | 
			
		||||
    box-shadow: rgba(255, 255, 255, 0.7) 0 0 0 5px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -130,6 +130,7 @@ class GeneralSettings extends React.Component {
 | 
			
		||||
        updateRequest.append('tvshowpath', this.state.tvshowpath);
 | 
			
		||||
        updateRequest.append('mediacentername', this.state.mediacentername);
 | 
			
		||||
        updateRequest.append("tmdbsupport", this.state.tmdbsupport);
 | 
			
		||||
        updateRequest.append("darkmodeenabled", StaticInfos.isDarkTheme());
 | 
			
		||||
 | 
			
		||||
        fetch('/api/Settings.php', {method: 'POST', body: updateRequest})
 | 
			
		||||
            .then((response) => response.json()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user