Set fixed iOS/Android theme for all platforms in rc0 release candidate


#1

Hi,

Does anyone know how to override the theme for ios devices as android or vice versa. I saw some examples on the forum of this in example

BUT now since NgModule is being used in the release candidate how can we do it.

ALSO does anyone know how to override the style of one component ONLY for all platforms (e.g. use option button style of android for ios and windows)


#2

Looking for this as well. This doesn’t work anymore since @app doesn’t exist
@App({ templateUrl: 'build/app.html', config: { mode: 'md' } })


#3

On your app.module.ts file add { mode: 'md' } to apply Material Design style on every OS:

@NgModule({
    declarations: [
        MyApp,
        ...
    ],
    imports: [
        IonicModule.forRoot(MyApp, { mode: 'md' })
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        MyApp,
        ...
    ],
    providers: []
})

#4

That worked, thank you!


#5

Praise be to Allah

Thank you


#6

How can I use mode:‘ios’ only for tab icons?