Implement light theme
I also went ahead and fixed some buttonstyles that were inconsistent throughout the app
This commit is contained in:
parent
914f9a2a25
commit
90b886cce5
8 changed files with 144 additions and 93 deletions
|
@ -1,5 +1,5 @@
|
|||
mat-toolbar {
|
||||
background-color: #303030;
|
||||
background-color: #fafafa;
|
||||
box-shadow: none;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
|
@ -8,4 +8,8 @@ mat-toolbar {
|
|||
z-index: 999999;
|
||||
}
|
||||
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
mat-toolbar {
|
||||
background-color: #303030;
|
||||
}
|
||||
}
|
|
@ -9,6 +9,6 @@
|
|||
<mat-form-field>
|
||||
<textarea matInput [(ngModel)]="budget.description" placeholder="Description"></textarea>
|
||||
</mat-form-field>
|
||||
<button mat-button color="accent" (click)="save()">Save</button>
|
||||
<button class="button-delete" mat-button color="warn" *ngIf="budget.id" (click)="delete()">Delete</button>
|
||||
<button mat-raised-button color="accent" (click)="save()">Save</button>
|
||||
<button class="button-delete" mat-raised-button color="warn" *ngIf="budget.id" (click)="delete()">Delete</button>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.dashboard {
|
||||
color: #F1F1F1;
|
||||
color: #333333;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
|
@ -7,7 +7,7 @@
|
|||
}
|
||||
|
||||
.dashboard>mat-card {
|
||||
background: #212121;
|
||||
background: #FFFFFF;
|
||||
display: inline-block;
|
||||
margin: 1em;
|
||||
padding: 1em;
|
||||
|
@ -26,12 +26,14 @@
|
|||
display: block;
|
||||
}
|
||||
|
||||
.dashboard div h2, .dashboard div h3 {
|
||||
.dashboard div h2,
|
||||
.dashboard div h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.dashboard p, .dashboard a {
|
||||
color: #F1F1F1;
|
||||
.dashboard p,
|
||||
.dashboard a {
|
||||
color: #333333;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
@ -51,8 +53,9 @@
|
|||
}
|
||||
|
||||
.dashboard .no-categories a {
|
||||
border-color: #333333;
|
||||
display: inline-block;
|
||||
border: 1px dashed #F1F1F1;
|
||||
border: 1px dashed;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
|
@ -67,3 +70,21 @@
|
|||
top: 0.5em;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.dashboard {
|
||||
color: #F1F1F1;
|
||||
}
|
||||
|
||||
.dashboard>mat-card {
|
||||
background: #212121;
|
||||
}
|
||||
|
||||
.dashboard p,
|
||||
.dashboard a {
|
||||
color: #F1F1F1;
|
||||
}
|
||||
|
||||
.dashboard .no-categories a {
|
||||
border-color: #F1F1F1;
|
||||
}
|
||||
}
|
|
@ -18,6 +18,6 @@
|
|||
<input type="color" matInput [(ngModel)]="currentCategory.color" placeholder="Color">
|
||||
</mat-form-field>
|
||||
-->
|
||||
<button mat-button color="accent" (click)="save()">Save</button>
|
||||
<button class="button-delete" mat-button color="warn" *ngIf="currentCategory.id" (click)="delete()">Delete</button>
|
||||
<button mat-raised-button color="accent" (click)="save()">Save</button>
|
||||
<button class="button-delete" mat-raised-button color="warn" *ngIf="currentCategory.id" (click)="delete()">Delete</button>
|
||||
</div>
|
|
@ -1,12 +1,7 @@
|
|||
.categories mat-progress-bar.mat-progress-bar {
|
||||
background-color: #BDBDBD;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
::ng-deep .mat-progress-bar-buffer {
|
||||
background-color: #BDBDBD;
|
||||
}
|
||||
|
||||
p.mat-line.category-list-title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
@ -25,6 +20,12 @@ p.mat-line.category-list-title .remaining {
|
|||
background-color: #E57373 !important;
|
||||
}
|
||||
|
||||
::ng-deep .mat-progress-bar-buffer {
|
||||
background-color: #F1F1F1 !important;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
::ng-deep .mat-progress-bar-buffer {
|
||||
background-color: #333333 !important;
|
||||
}
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
.transaction-form {
|
||||
padding: 1em;
|
||||
color: #F1F1F1;
|
||||
}
|
||||
|
||||
.transaction-form * {
|
||||
|
@ -10,8 +9,3 @@
|
|||
mat-radio-button {
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
html,
|
||||
body {
|
||||
background: #333333;
|
||||
background: #F1F1F1;
|
||||
font-family: Roboto, "Helvetica Neue", sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
color: #F1F1F1;
|
||||
color: #333333;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ a.mat-fab {
|
|||
|
||||
.text-small {
|
||||
font-size: 1em;
|
||||
color: #BDBDBD
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
mat-toolbar.mat-toolbar-row,
|
||||
|
@ -105,7 +105,7 @@ mat-sidenav {
|
|||
|
||||
.form {
|
||||
padding: 1em;
|
||||
color: #F1F1F1;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.form .mat-form-field,
|
||||
|
@ -116,3 +116,28 @@ mat-sidenav {
|
|||
.form mat-radio-button {
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.form button {
|
||||
width: 100%;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
||||
html,
|
||||
body {
|
||||
background: #333333;
|
||||
}
|
||||
|
||||
p {
|
||||
color: #F1F1F1;
|
||||
}
|
||||
|
||||
.text-small {
|
||||
color: #BDBDBD;
|
||||
}
|
||||
|
||||
.form {
|
||||
color: #F1F1F1;
|
||||
}
|
||||
}
|
|
@ -16,9 +16,15 @@ $budget-app-accent: mat-palette($mat-cyan);
|
|||
$budget-app-warn: mat-palette($mat-red);
|
||||
|
||||
// Create the theme object (a Sass map containing all of the palettes).
|
||||
$budget-app-theme: mat-dark-theme($budget-app-primary, $budget-app-accent, $budget-app-warn);
|
||||
$budget-app-theme: mat-light-theme($budget-app-primary, $budget-app-accent, $budget-app-warn);
|
||||
$budget-dark-theme: mat-dark-theme($budget-app-primary, $budget-app-accent, $budget-app-warn);
|
||||
|
||||
// Include theme styles for core and each component used in your app.
|
||||
// Alternatively, you can import and @include the theme mixins for each component
|
||||
// that you are using.
|
||||
|
||||
@include angular-material-theme($budget-app-theme);
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include angular-material-theme($budget-dark-theme);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue