Replies: 1 comment 2 replies
-
There is the Google TV app style remote navigation buttons example but what you are doing with the rotation to correct clickable areas improves upon that! I'm going to use your config as a base to improve the existing example, and then also add yours to the README. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The 3x3 grid of horizontal squares/rectangles is well suited for a "cross" shaped d-pad, but for the circles, it bothered me more than it really should.
Sure, you can play with sizing and margins and positioning, but without rotation, it just didn't seem right.
So I did this. I can't be the first to have done it, but I didn't see it posted in the discussions anywhere, so I just finished slapping this together. It's a bit unpolished and probably a ham-handed clumsy way of doing things, but I'm rather new to HA and I don't claim to be any sort of CSS-wizard, so here it is anyway.
Giving the up/down/left/right buttons their own backgrounds and adjusting their sizes/positions a little can result in a fairly nice-looking layout that's more like separate curved buttons versus one circular pad, if that's what you're going for. I like styling some of my remotes that way, just so they don't all look the same.
Red lines in the composite image show where the "clickable/tappable" areas are.
Beta Was this translation helpful? Give feedback.
All reactions