<body ng-app="starter" animation="slide-left-right-ios7">
<!--
The nav bar that will be updated as we navigate between views.
-->
<ion-nav-bar class="bar-stable nav-title-slide-ios7 background">
<ion-nav-back-button class="button-icon icon ion-ios7-arrow-back">
Back
</ion-nav-back-button>
</ion-nav-bar>
<!--
The views will be rendered in the <ion-nav-view> directive below
Templates are in the /templates folder (but you could also
have templates inline in this html file if you'd like).
-->
<ion-nav-view class="background"></ion-nav-view>
</body>
What do I need to do to get the header and footer to also display the background color?
I can set the header title background but I have not yet been able to set the full header background. There are two vertical stripes on either side that do not have the correct background.
So which variable, if any, in ionic.app.scss controls the background color, so we can change it to suit the app style? or is that variable to be found in a different file? Thanks.
I tried $light, but that does not change the app background. @mhartington, can you please help with your input on this? Where can we find the variable that can be altered to change ionic app background color? Thanks.
@mhartington, thanks for your quick reply. While I was poking around in the _variables.scss file, I just came across this variable $base-background-color and overriding it in the ionic.app.scss file seemed to do the trick, with the advantage of no additional class required.
The idea behind my approach is that you can set styles for your ion-contents similar to how you would for buttons and headers. This way you could change them on different views.
So in your own style.scss, you could either assign those variables directly to your new background color. More correctly, if you’ve changed your background color, you might want to redefine $light and $stable and such since relative to your new darker background these variables’ color probably doesn’t make as much sense any more.