Skip to content

Commit

Permalink
Change background color to a more blueish grey
Browse files Browse the repository at this point in the history
Signed-off-by: trivernis <trivernis@protonmail.com>
  • Loading branch information
Trivernis committed Feb 12, 2022
1 parent fbe516a commit bb725f6
Show file tree
Hide file tree
Showing 12 changed files with 87 additions and 62 deletions.
40 changes: 0 additions & 40 deletions mediarepo-ui/src/app/app.component-theme.scss

This file was deleted.

12 changes: 12 additions & 0 deletions mediarepo-ui/src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
@import "src/colors";

:host, ::ng-deep body {
font-family: $font-family;
background-color: $background;
color: white
}

::ng-deep .warn {
background-color: $warn;
color: white
}

::ng-deep .mat-button-wrapper > ng-icon {
font-size: 26px;
}
Expand All @@ -16,3 +27,4 @@
background-color: $warn;
color: $text;
}

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1 class="title" mat-dialog-title>
{{message}}
</div>
<div *ngIf="this.allowCancel" class="busy-dialog-actions" mat-dialog-actions>
<button (click)="this.dialogRef.close(false)" mat-flat-button>
<button (click)="this.dialogRef.close(false)" color="primary" mat-stroked-button>
Cancel
</button>
</div>
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import "src/colors";

.selectable.selected {
background-color: #5c5c5c;
background-color: $background-lighter-10;
}

body {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
width: 100%;
height: 100%;
border-top: 2px solid $background-darker-05;
background-color: $background;

.file-item {
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@
cursor: pointer;
user-select: none;
font-size: 1.2em;
transition-duration: 0.1s;
transition-duration: 0.2s;
width: 100%;
background-color: $background-lighter-05;

app-tag-item {
margin: auto auto auto 0.25em;
&:hover {
background-color: $background-lighter-10;
}
}

.selectable-tag:hover {
background-color: $background-lighter-10;
}
&:active {
cursor: pointer;
background-color: $background;
}

.selectable-tag:active {
cursor: pointer;
background-color: $background;
app-tag-item {
margin: auto auto auto 0.25em;
}
}

cdk-virtual-scroll-viewport {
Expand Down Expand Up @@ -143,6 +143,11 @@ mat-divider {
.tag-input-item {
background-color: $background-lighter-10;
border-radius: 1em;
transition-duration: 0.2s;

&:hover {
background-color: $background-lighter-15;
}
}

mat-form-field:focus {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@import "src/colors";

mat-list {
height: 100%;
width: 100%;
display: block;
background-color: #353535;
background-color: $background;
padding: 0;
border-radius: 0.25em;
}
Expand All @@ -22,7 +24,7 @@ mat-list-item.or-filter-list-item {
}

.selected {
background-color: #5c5c5c;
background-color: $background-lighter-10;
}

app-selectable {
Expand All @@ -31,5 +33,5 @@ app-selectable {
}

.or-combinator {
color: #7dff70;
color: $accent-lighter-10;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
background-color: $background-lighter-10;
text-overflow: ellipsis;
overflow: hidden;

&:hover {
background-color: $background-lighter-15;
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {Component, Input} from "@angular/core";
import {ChangeDetectionStrategy, Component, Input} from "@angular/core";
import {Tag} from "../../../../../api/models/Tag";

@Component({
selector: "app-tag-item",
templateUrl: "./tag-item.component.html",
styleUrls: ["./tag-item.component.scss"]
styleUrls: ["./tag-item.component.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class TagItemComponent {

Expand Down
8 changes: 7 additions & 1 deletion mediarepo-ui/src/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ $warn-chill: #fcd349;
$text: #FFF;
$text-darker-10: darken($text, 10%);

$background: darken(#424242, 5%);
$background: darken(#373a46, 10%);
$background-darker-05: darken($background, 5%);
$background-darker-10: darken($background, 10%);
$background-lighter-05: lighten($background, 5%);
$background-lighter-10: lighten($background, 10%);
$background-lighter-15: lighten($background, 15%);

// specifics
$tag-namespace: $accent-lighter-10;


// fonts
$typography-config: mat.get-typography-config($theme);
$font-family: mat.font-family($typography-config);
38 changes: 36 additions & 2 deletions mediarepo-ui/src/material-theme-correction.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,51 @@
}

.mat-dialog-container {
background: $background;
background: $background-lighter-05;
}

.mat-drawer {
background: $background;
background: $background !important;
}

.mat-flat-button, .mat-raised-button, .mat-fab, .mat-mini-fab {
background: $background;
}

.mat-form-field-flex {
background: $background-lighter-05;
}

.mat-form-field-appearance-fill .mat-form-field-flex {
background: $background-lighter-05;
}

.mat-autocomplete-panel, mat-option, .mat-menu-panel {
background: $background-lighter-05;
}

button .mat-flat-button {
background: $background-lighter-05;
}

mat-option {
&.mat-selected {
background: $background-lighter-10 !important;
}

&:hover {
background: darken($background-lighter-10, 1%) !important;
}
}

mat-toolbar.mat-toolbar {
background: $background-darker-05;
}

.mat-card {
background: $background-lighter-10;
}

// scrollbar

::-webkit-scrollbar {
Expand Down
2 changes: 0 additions & 2 deletions mediarepo-ui/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@use 'sass:map';
@use "@angular/material" as mat;
@use 'src/app/app.component-theme' as app;

@include mat.core();

Expand All @@ -25,5 +24,4 @@ $warn-palette: map.get($color-config, 'warn');


@include mat.all-component-themes($theme);
@include app.theme($theme);

0 comments on commit bb725f6

Please sign in to comment.