File tree Expand file tree Collapse file tree 5 files changed +23
-3
lines changed
Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 22 "description" : " NativeScript Application" ,
33 "main" : " src/main.ts" ,
44 "dependencies" : {
5+ "@mdi/font" : " 4.9.95" ,
56 "@angular/animations" : " ~11.2.7" ,
67 "@angular/common" : " ~11.2.7" ,
78 "@angular/compiler" : " ~11.2.7" ,
Original file line number Diff line number Diff line change 11@import '@nativescript/theme/css/core.css' ;
22@import '@nativescript/theme/css/default.css' ;
3-
3+ .mdi {
4+ font-family : 'materialdesignicons-webfont' , 'Material Design Icons' ;
5+ }
46MDTabStrip {
57 selected-item-color : # FFFFFF ;
68 un-selected-item-color : # 404040 ;
Original file line number Diff line number Diff line change 1111 </ MDTabStripItem >
1212 < MDTabStripItem >
1313 < Label text ="Search "> </ Label >
14- < Image src ="res ://ic_menu "> </ Image >
14+ < Image src ="font :// " class =" mdi "> </ Image >
1515 </ MDTabStripItem >
1616 </ MDTabStrip >
1717
Original file line number Diff line number Diff line change 11// this import should be first in order to load some required settings (like globals and reflect-metadata)
22import { platformNativeScriptDynamic } from "@nativescript/angular" ;
3-
3+ import { themer } from '@nativescript-community/ui-material-core' ;
44import { AppModule } from './app/app.module' ;
55
6+ if ( global . isIOS ) {
7+ themer . setPrimaryColor ( '#bff937' ) ;
8+ themer . setPrimaryColorVariant ( '#33B5E5' ) ;
9+ themer . setAccentColor ( '#ff8a39' ) ;
10+ themer . setSecondaryColor ( '#a830d7' ) ;
11+ }
12+
613// A traditional NativeScript application starts by initializing global objects,
714// setting up global CSS rules, creating, and navigating to the main page.
815// Angular applications need to take care of their own initialization:
Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ module.exports = (env) => {
66 // Learn how to customize:
77 // https://docs.nativescript.org/webpack
88
9+ // Example: copy all files from a dependency
10+ webpack . Utils . addCopyRule ( {
11+ from : '@mdi/font/fonts/materialdesignicons-webfont.ttf' ,
12+ to : 'fonts' ,
13+ // the context of the "from" rule, in this case node_modules
14+ // we used the getProjectFilePath util here, but this could have been
15+ // a path.resolve(__dirname, 'node_modules') too.
16+ context : webpack . Utils . project . getProjectFilePath ( 'node_modules' )
17+ } )
18+
919 return webpack . resolveConfig ( ) ;
1020} ;
1121
You can’t perform that action at this time.
0 commit comments