public inbox for yew-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH yew-widget-toolkit-assets 0/3] material: 8px spacing, touch-sized controls
@ 2026-10-22 17:40 Thomas Lamprecht
  2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 1/3] material: give controls a fingertip-sized target on touch screens Thomas Lamprecht
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2026-10-22 17:40 UTC (permalink / raw)
  To: yew-devel

Our material theme's 10px spacer puts its steps at 10, 20, 30 and
40px, off the 8dp grid that Material Design aligns components to, and
leaves a lot of room on desktops. Also, on phones, several controls are
smaller than a finger hits reliably.

This series lowers the Material default to 8px and keeps selected
controls at 44px where the primary pointer is coarse. The last patch
adds a root class that turns the touch sizes off, so an application
can offer that choice next to the density.

I checked it in Chromium with phone, tablet and desktop emulation in
the PVE mobile GUI and the PMG quarantine GUI and some other internal
UIs. FWICT, none of them needs changes but pages get about a fifth
tighter (more content visible and usable), and on a phone buttons grow
from 40px to 44px while list rows were already taller than that.

Updating the precompiled CSS is not sent along as part of the series and
needs a rebuild after applying, but that's purely mechanical.

Thomas Lamprecht (3):
  material: give controls a fingertip-sized target on touch screens
  material: reduce default spacing to 8px
  material: let an application turn the touch-sized controls off

 scss/introduction.md                      |  8 +++
 scss/material/_theme_config_material.scss |  7 +--
 scss/material/_theme_post_material.scss   | 74 +++++++++++++++++++++++
 3 files changed, 85 insertions(+), 4 deletions(-)

-- 
2.47.3





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-22 17:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-22 17:40 [PATCH yew-widget-toolkit-assets 0/3] material: 8px spacing, touch-sized controls Thomas Lamprecht
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 1/3] material: give controls a fingertip-sized target on touch screens Thomas Lamprecht
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 2/3] material: reduce default spacing to 8px Thomas Lamprecht
2026-10-22 17:41 ` [PATCH yew-widget-toolkit-assets 3/3] material: let an application turn the touch-sized controls off Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal