Let the page buttons make way: a Page buttons setting that gives their room to the tiles, chevrons and dots instead of words, and a warning in the editor for pages nothing leads to (0.2.82)
GitHub issue #9 asked to drop the Previous/Next bar when Go to page tiles do the navigation and to give the tiles the whole screen. Page buttons is a setting the screen owns (on by default): a row in the Screen group of the settings page, switch.<screen>_page_buttons in Home Assistant, and a row in the editor's Screen settings. Without the bar, and on a screen with one page, place_page moves and sizes the three rows so they reach the bottom margin (Guition 108 -> 122 px, CYD 52 -> 61 px); a card keeps its circle, name and state in its middle and the single analog clock keeps its dial. With page buttons and swiping both off, the editor says where the Go to page tiles lead and which pages that leaves out of reach. The bar itself: each half of the band under the tiles is one key with an MDI chevron and lights up under a finger, and a dot per page sits between them; the screen's settings page uses the same pager. App 0.2.82, firmware 0.2.69. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,7 +45,12 @@ class GuitionTests(unittest.TestCase):
|
||||
self.assertFalse(x<xx+ww and x+w>xx and y<yy+hh and y+h>yy)
|
||||
rectangles.append((x,y,w,h))
|
||||
self.assertEqual(len(rectangles),6)
|
||||
self.assertIn('height: 44',SOURCE.split('id: page_next',1)[1][:200])
|
||||
# The page keys are the two halves of the band under the tiles (firmware 0.2.69+).
|
||||
band=480-v('SCROLL_Y')-v('SCROLL_H')
|
||||
self.assertEqual(band,60)
|
||||
for key in ('page_prev','page_next'):
|
||||
block=SOURCE.split(f'id: {key}',1)[1][:200]
|
||||
self.assertIn('width: 240\n',block);self.assertIn(f'height: {band}\n',block)
|
||||
|
||||
def test_all_tiles_clip_long_titles(self):
|
||||
for i in range(1,11):
|
||||
|
||||
Reference in New Issue
Block a user