This commit is contained in:
Nicolai Ort 2020-06-30 13:36:19 +02:00
parent 86c9e21d3f
commit e55591d491
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@
<i class="fa fa-cog fa-2x"></i> <i class="fa fa-cog fa-2x"></i>
</a> </a>
<ul ngbDropdownMenu> <ul ngbDropdownMenu>
<!--
<li class=" header-title">Sidebar Background</li> <li class=" header-title">Sidebar Background</li>
<li class=" adjustments-line"> <li class=" adjustments-line">
<a class=" switch-trigger background-color" href="javascript:void(0)"> <a class=" switch-trigger background-color" href="javascript:void(0)">
@ -26,6 +27,7 @@
<div class=" clearfix"></div> <div class=" clearfix"></div>
</a> </a>
</li> </li>
-->
<li class=" adjustments-line text-center color-change"> <li class=" adjustments-line text-center color-change">
<span class=" color-label"> LIGHT MODE </span> <span class=" color-label"> LIGHT MODE </span>
<span class=" badge light-badge mr-2" (click)="changeDashboardColor('white-content')"> </span> <span class=" badge light-badge mr-2" (click)="changeDashboardColor('white-content')"> </span>

View File

@ -6,6 +6,7 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css'] styleUrls: ['./app.component.css']
}) })
export class AppComponent { export class AppComponent {
/*
changeSidebarColor(color){ changeSidebarColor(color){
var sidebar = document.getElementsByClassName('sidebar')[0]; var sidebar = document.getElementsByClassName('sidebar')[0];
var mainPanel = document.getElementsByClassName('main-panel')[0]; var mainPanel = document.getElementsByClassName('main-panel')[0];
@ -19,6 +20,7 @@ export class AppComponent {
mainPanel.setAttribute('data',color); mainPanel.setAttribute('data',color);
} }
} }
*/
changeDashboardColor(color){ changeDashboardColor(color){
var body = document.getElementsByTagName('body')[0]; var body = document.getElementsByTagName('body')[0];
if (body && color === 'white-content') { if (body && color === 'white-content') {
@ -29,6 +31,7 @@ export class AppComponent {
} }
} }
// function that adds color white/transparent to the navbar on resize (this is for the collapse) // function that adds color white/transparent to the navbar on resize (this is for the collapse)
/*
updateColor = () => { updateColor = () => {
var navbar = document.getElementsByClassName('navbar')[0]; var navbar = document.getElementsByClassName('navbar')[0];
if (window.innerWidth < 993 && !this.isCollapsed) { if (window.innerWidth < 993 && !this.isCollapsed) {
@ -39,4 +42,5 @@ export class AppComponent {
navbar.classList.add('navbar-transparent'); navbar.classList.add('navbar-transparent');
} }
}; };
*/
} }