# How to make a switch on screen 2 which changes the background colour of screen 1

**URL:** <https://community.thunkable.com/t/how-to-make-a-switch-on-screen-2-which-changes-the-background-colour-of-screen-1/1451618>\
**Category:** Questions about Thunkable X\
**Tags:** design\
**Created:** [August 16, 2021, 7:36am UTC](https://community.thunkable.com/t/how-to-make-a-switch-on-screen-2-which-changes-the-background-colour-of-screen-1/1451618 "2021-08-16T07:36:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ojusgupta194o5](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@ojusgupta194o5](https://community.thunkable.com/u/ojusgupta194o5)\
**Post date:** [August 16, 2021, 7:36am UTC](https://community.thunkable.com/t/how-to-make-a-switch-on-screen-2-which-changes-the-background-colour-of-screen-1/1451618/1 "2021-08-16T07:36:31Z")

</div>

How to make a switch on screen 2 which changes the background colour of screen 1

I want am making a app I have a switch on screen 2.  
I want the switch to change the background colour of screen 1 to black

---

<div class="post-metadata">

**Author:** ![mimostel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mimostel/32/107661_2.png) [@mimostel](https://community.thunkable.com/u/mimostel)\
**Post date:** [August 16, 2021, 7:49am UTC](https://community.thunkable.com/t/how-to-make-a-switch-on-screen-2-which-changes-the-background-colour-of-screen-1/1451618/2 "2021-08-16T07:49:28Z")

</div>

Every screen has its own objects, so you cant refer directly from a screen to another screens objects or properties.  
You can do it this way.  
As long as only one screen at a time will be visible, when set property of screen`s 2 switch to a value (true or false), keep that value stored in an app variable…  
Then when open 1st screen, just check that value. If true, than set its background color to black.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:17pm UTC](https://community.thunkable.com/t/how-to-make-a-switch-on-screen-2-which-changes-the-background-colour-of-screen-1/1451618/3 "2024-11-08T13:17:24Z")

</div>


