Dimming A Control Page On An iPad Using A 50% Screen Graphic

Posted on
Tue Mar 24, 2020 3:53 pm
mgolden50 offline
User avatar
Posts: 260
Joined: Jan 29, 2007
Location: Chandler, AZ

Dimming A Control Page On An iPad Using A 50% Screen Graphic

I'm Sheltering in place at home with lot's of time to work on automation during the Corona pandemic

My wife complains that the iPad displaying a Control Page in our bedroom is to bright at night when set for daytime viewing.
The built-in adaptive brightness adjustment does not have enough range between daytime and night time brightness levels.
I believe there's no way to remotely control the brightness of the iPad itself.

So my proposed solution is to create a 50% (or some other amount of transparency) black or grey .png image in PhotoShop with the same Pixel dimensions as the iPad.
The Idea is to display this image as an overlay on top of all of the other control page graphics by changing a variable.

But I have some questions:
Is there a way to assure that the screen will always be the foremost graphic when it's displayed?
does anyone know a better way to accomplish my iPad Control Page dimming objective?

Thanks,

Mike

Posted on
Tue Mar 24, 2020 8:10 pm
Rock offline
Posts: 23
Joined: Jan 15, 2013

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Sounds like a great idea to me. I’ve had the same issue. I’ll be anxious to see where this goes.


Sent from my iPhone using Tapatalk

Posted on
Wed Mar 25, 2020 4:50 am
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

This method should work.
Is there a way to assure that the screen will always be the foremost graphic when it's displayed?

If you make sure that the dimming image has the highest z-order value, it should always display on top of the other images.

Screen Shot 2020-03-25 at 5.50.11 AM.png
Screen Shot 2020-03-25 at 5.50.11 AM.png (15.36 KiB) Viewed 3657 times

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Mar 25, 2020 7:46 am
Rock offline
Posts: 23
Joined: Jan 15, 2013

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Would a touch penetrate the overlay?


Sent from my iPhone using Tapatalk

Posted on
Wed Mar 25, 2020 10:44 am
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Rock wrote:
Would a touch penetrate the overlay?


Sent from my iPhone using Tapatalk

Unfortunately not. That might be a nice feature request though. An image that is visible but transparent to clicks.

But if I'm thinking about this right, you could make a click on the dimming image load another duplicate control page that is set to a very dark color scheme.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Mar 25, 2020 12:20 pm
mgolden50 offline
User avatar
Posts: 260
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Thanks Dave for the suggestion. But where do I set the Z-order for an image?

Posted on
Wed Mar 25, 2020 1:25 pm
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Look in the upper right hand corner of the control page editing panel.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Mar 25, 2020 2:16 pm
mgolden50 offline
User avatar
Posts: 260
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Got it! Shure'nuf. Never saw that before.

Thx Dave.... I'll let you know how the dimming thing works out.

Mike

Posted on
Wed Mar 25, 2020 2:26 pm
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

You're welcome. Z-order is an absolute necessity if you want to build graphics like this:

Screen Shot 2020-03-25 at 3.21.46 PM.png
Screen Shot 2020-03-25 at 3.21.46 PM.png (17.25 KiB) Viewed 3563 times


It's made up of I think 5 overlaid images:
  • The frame
  • The text
  • The needle
  • The "light"
  • The bezel

EDIT: 6 images. I forgot the center button. :D

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Mar 25, 2020 4:41 pm
mgolden50 offline
User avatar
Posts: 260
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Dave,

OK, I give up. I have the edit z-order checkbox enabled. and I see little blue numbers after each displayed text variable and image. but for the life of me I can't see a way to change the x-order number. Are these numbers determined only by the order in which items are added to the control page or is there a more direct way to bring objects forward or send them back in the object layers stack as in other apps?

Thx

Mike

Posted on
Wed Mar 25, 2020 4:46 pm
mgolden50 offline
User avatar
Posts: 260
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Ahh! I found it. A little red arrow that allows one to raise or lower the x-order number

Thanks,

Posted on
Wed Mar 25, 2020 4:50 pm
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Sounds like you've got it now.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Mar 25, 2020 6:53 pm
mgolden50 offline
User avatar
Posts: 260
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

The iPad screen dimming solution works flawlessly :D

Thanks for the support.

Posted on
Wed Mar 25, 2020 7:13 pm
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Glad you found a solution that works for you. I totally understand the importance of the SAF (spouse acceptance factor)! :D

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Mar 25, 2020 8:16 pm
Rock offline
Posts: 23
Joined: Jan 15, 2013

Re: Dimming A Control Page On An iPad Using A 50% Screen Gra

Dave this may not be the thread to ask about this but I’m very interested in the gauge you created. Do you have a source for how to do this?


Sent from my iPhone using Tapatalk

Who is online

Users browsing this forum: No registered users and 3 guests