diff --git a/src/app/pages/dashboard/dashboard.module.ts b/src/app/pages/dashboard/dashboard.module.ts index 854e79cc..bd090903 100644 --- a/src/app/pages/dashboard/dashboard.module.ts +++ b/src/app/pages/dashboard/dashboard.module.ts @@ -1,5 +1,12 @@ import { NgModule } from '@angular/core'; -import { NbActionsModule, NbButtonModule, NbCardModule, NbTabsetModule, NbUserModule } from '@nebular/theme'; +import { + NbActionsModule, + NbButtonModule, + NbCardModule, + NbTabsetModule, + NbUserModule, + NbRadioModule, +} from '@nebular/theme'; import { NgxEchartsModule } from 'ngx-echarts'; import { ThemeModule } from '../../@theme/theme.module'; @@ -31,6 +38,7 @@ import { FormsModule } from '@angular/forms'; NbButtonModule, NbTabsetModule, NbActionsModule, + NbRadioModule, NgxEchartsModule, ], declarations: [ diff --git a/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.scss b/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.scss index e51e80d1..d77e99ce 100644 --- a/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.scss +++ b/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.scss @@ -1,5 +1,4 @@ @import '../../../../@theme/styles/themes'; -//@import '~@nebular/bootstrap/styles/hero-buttons'; @include nb-install-component() { position: relative; @@ -20,8 +19,8 @@ } .circle { - fill: nb-theme(color-bg); - stroke: nb-theme(color-success); + fill: nb-theme(background-basic-color-4); + stroke: nb-theme(color-primary-default); } .temperature-bg { @@ -38,18 +37,14 @@ align-items: center; justify-content: center; - border: 2px solid nb-theme(separator); - @include nb-for-theme(cosmic) { - //background-color: lighten(nb-theme(layout-bg), 2%); - border: none; - } + border: nb-theme(divider-width) nb-theme(divider-style) nb-theme(divider-color); } .power-bg { position: absolute; width: 5.25rem; height: 5.25rem; - background-color: nb-theme(card-bg); + background-color: nb-theme(card-background-color); border-radius: 50%; bottom: 2%; left: 50%; @@ -61,44 +56,22 @@ justify-content: center; cursor: pointer; font-size: 3rem; - color: nb-theme(color-fg-heading); - border: 2px solid nb-theme(separator); + color: nb-theme(text-basic-color); + border: nb-theme(divider-width) nb-theme(divider-style) nb-theme(divider-color); &:hover { - //background-color: lighten(nb-theme(card-bg), 5%); + background-color: nb-theme(color-basic-hover); + color: nb-theme(text-basic-color); } &:active { - //background-color: darken(nb-theme(card-bg), 5%); + background-color: nb-theme(color-basic-default); box-shadow: none; } - &.off { - color: nb-theme(color-fg); + &.off:not(:hover) { + color: nb-theme(text-hint-color); text-shadow: none; } } - - @include nb-for-theme(cosmic) { - .circle { - fill: nb-theme(color-fg-heading); - stroke: nb-theme(color-fg-heading); - } - - .power-bg { - border: none; - box-shadow: nb-theme(card-shadow); - text-shadow: 0 0 6px rgba(255, 255, 255, 0.5); - } - } - - @include nb-for-theme(corporate) { - .circle { - stroke: nb-theme(color-warning); - } - - .power-bg { - color: nb-theme(separator); - } - } } diff --git a/src/app/pages/dashboard/temperature/temperature.component.html b/src/app/pages/dashboard/temperature/temperature.component.html index fe34b752..0f972724 100644 --- a/src/app/pages/dashboard/temperature/temperature.component.html +++ b/src/app/pages/dashboard/temperature/temperature.component.html @@ -9,7 +9,7 @@ [fillColors]="colors.temperature">