There are several ways to achieve that. If your app pages have navbar and toolbar all the time, then i think it is better to set navbar/toolbar bg color to html element, e.g. (in v4)
html {
background-color: var(--f7-bars-bg-color);
}
Anyway, any solution is hacky. I was also thinking about adding this functionality into F7 core, but all i tried are still hacky and can cause other issues.