linuxwacom / libwacom

libwacom is a tablet description library
Other
336 stars 173 forks source link

data: add Huion KeyDial K20 #827

Closed whot closed 1 week ago

whot commented 2 weeks ago

This is the successor to the KD100 and optically the same so these files are copy/paste from the KD100

@deevad has a nicer-looking svg in udev-hid-bpf#35 but unfortunately that one requires a lot of manual fixes for the various CSS classes and object IDs we require. In the interest of getting this done quickly, here's a copy/pasted one that's been modified quickly.

This is a draft because I haven't yet been able to convince gnome settings to show the OSD

Deevad commented 2 weeks ago

Thank you very much!

I also posted a SVG I made on the udev-ebpf thread. Mine is still not cleaned (I can't still run the cleanup python script) but maybe you can enhance the layout you just merged with some element copy/pasted from mine (like the silhouette of the case).

The SVG: huion-kdial-mini-K20_inkscape-source.svg

huion-kdial-mini-K20_inkscape-source

whot commented 2 weeks ago

Thanks, I do like your SVG better but it needs a fair bit of fixup to pass the test (see #829 to make the tests provide some useful output). I played with it yesterday but ran of out time because there's too much of it... the simple fixes were s|Ring|Dial|g to but then all the buttons need fixes. And running clean_svg.py on the device moves the mode-switch button around for unknown reasons, it's quite frustrating. Either way, right now I'd prefer we have something so we can easily test with the various branch tips instead of having custom branches everywhere.

Deevad commented 2 weeks ago

Yes, I 100% agree. I was just suggesting to copy/paste the case outlines of my SVG on top of your SVG design just for decorating yours. But it is of course super optional.

whot commented 2 weeks ago

. I was just suggesting to copy/paste the case outlines of my SVG on top of your SVG design just for decorating yours

good idea, done now. This makes it a bit different to the other tablets which do not have an outline but it looks pretty terrible without it so let's see if anyone complains...

Deevad commented 2 weeks ago

good idea, done now.

Thank you!

whot commented 2 weeks ago

Ok, got this all to work - the dial is missing but that's a factor of the gnome and wayland stack not yet supporting relative dials. So we're good to merge this IMO

Deevad commented 2 weeks ago

So we're good to merge this IMO

Sure. Thank you for merging it.