mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
fix(temperature): fix temperature dragger gradient, fix switcher button hover background (#1745)
This commit is contained in:
parent
a6d5d4956c
commit
f12bd9f540
4 changed files with 20 additions and 11 deletions
|
|
@ -2,7 +2,7 @@ import {Component, OnDestroy} from '@angular/core';
|
|||
import { NbThemeService } from '@nebular/theme';
|
||||
import { takeWhile } from 'rxjs/operators/takeWhile' ;
|
||||
|
||||
interface ICardSettings {
|
||||
interface CardSettings {
|
||||
title: string;
|
||||
iconClass: string;
|
||||
type: string;
|
||||
|
|
@ -17,22 +17,22 @@ export class DashboardComponent implements OnDestroy {
|
|||
|
||||
private alive = true;
|
||||
|
||||
lightCard: ICardSettings = {
|
||||
lightCard: CardSettings = {
|
||||
title: 'Light',
|
||||
iconClass: 'nb-lightbulb',
|
||||
type: 'primary',
|
||||
};
|
||||
rollerShadesCard: ICardSettings = {
|
||||
rollerShadesCard: CardSettings = {
|
||||
title: 'Roller Shades',
|
||||
iconClass: 'nb-roller-shades',
|
||||
type: 'success',
|
||||
};
|
||||
wirelessAudioCard: ICardSettings = {
|
||||
wirelessAudioCard: CardSettings = {
|
||||
title: 'Wireless Audio',
|
||||
iconClass: 'nb-audio',
|
||||
type: 'info',
|
||||
};
|
||||
coffeeMakerCard: ICardSettings = {
|
||||
coffeeMakerCard: CardSettings = {
|
||||
title: 'Coffee Maker',
|
||||
iconClass: 'nb-coffee-maker',
|
||||
type: 'warning',
|
||||
|
|
@ -40,7 +40,7 @@ export class DashboardComponent implements OnDestroy {
|
|||
|
||||
statusCards: string;
|
||||
|
||||
commonStatusCardsSet: ICardSettings[] = [
|
||||
commonStatusCardsSet: CardSettings[] = [
|
||||
this.lightCard,
|
||||
this.rollerShadesCard,
|
||||
this.wirelessAudioCard,
|
||||
|
|
@ -48,9 +48,9 @@ export class DashboardComponent implements OnDestroy {
|
|||
];
|
||||
|
||||
statusCardsByThemes: {
|
||||
default: ICardSettings[];
|
||||
cosmic: ICardSettings[];
|
||||
corporate: ICardSettings[];
|
||||
default: CardSettings[];
|
||||
cosmic: CardSettings[];
|
||||
corporate: CardSettings[];
|
||||
} = {
|
||||
default: this.commonStatusCardsSet,
|
||||
cosmic: this.commonStatusCardsSet,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue