Screen/App and TCSS relationship when changing screens #3177
BaccanoMob
started this conversation in
Ideas
Replies: 1 comment
-
I seem to remember we have had some conversation about if CSS on a So, in your example above, the styling for Screen1 Button {
background: blue;
} If we were to make this change then the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Any stylesheet added through CSS or CSS_PATH gets implemented throughout the app and various screens and the latest added gets more proirity.
For example, above code gives a blue button at for Screen 1 only at the first run but after it changes to different screens we only get red since CSS for second screen is added last.
It would be a good idea implement screen specific CSS and CSS in App class be used as a global. Similar to how webpages link to stylesheets under the head tag, screens should use the CSS defined in App class by default and then include the CSS of the screen. Whenever a screen is change the CSS of screen gets switched according to the current screen than just adding to CSS globally.
This will be helpful for beginners how just know to implement CSS (so it be easier for them to design per screen than for the whole app) as well as complex app with multiple screens so maintaining/managing CSS will be easier.
Beta Was this translation helpful? Give feedback.
All reactions