added local material icons

main
Said Gedik 2024-08-13 15:21:45 +02:00
parent fb7ee4f319
commit bab0bbd0c4
4 changed files with 26 additions and 8 deletions

View File

@ -58,13 +58,6 @@ export class MultiselectAutocompleteComponent implements OnInit {
this.rawData.push({ item, selected: false }); this.rawData.push({ item, selected: false });
}); });
WebFont.load({
google: {
families: [
'Material Icons',
],
},
});
//console.log(this.appliedFilters); //console.log(this.appliedFilters);
//console.log(this.rawData); //console.log(this.rawData);

View File

@ -208,7 +208,6 @@ export class NttGanttComponent implements OnInit {
* The function ngOnInit sets values which are required for rendering the gantt Chart. Furthermore it triggers the Dataservice to fetch Changes from the backend and trims the resources (Changes Array) and sets the paginator to the first page. * The function ngOnInit sets values which are required for rendering the gantt Chart. Furthermore it triggers the Dataservice to fetch Changes from the backend and trims the resources (Changes Array) and sets the paginator to the first page.
*/ */
public ngOnInit(): void { public ngOnInit(): void {
WebFont.load({ google: { families: ['Material Icons',], }, });
this.renderGantt = false; this.renderGantt = false;
this.firstLoad = true; this.firstLoad = true;
this.sliceStart = 0; this.sliceStart = 0;

Binary file not shown.

View File

@ -15,6 +15,32 @@
@import '../node_modules/@syncfusion/ej2-gantt/styles/material.css'; @import '../node_modules/@syncfusion/ej2-gantt/styles/material.css';
@import "~@angular/material/prebuilt-themes/indigo-pink.css"; @import "~@angular/material/prebuilt-themes/indigo-pink.css";
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url('assets/fonts/MaterialIcons-Regular.ttf') format('woff2'),
url('assets/fonts/MaterialIcons-Regular.ttf') format('woff'),
url('assets/fonts/MaterialIcons-Regular.ttf') format('truetype');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.green-snackbar { .green-snackbar {
background: green !important; background: green !important;
color: white; color: white;