Skip to content

Commit

Permalink
layouts: Fix buttons for Huion and Gaomon tablets (#691)
Browse files Browse the repository at this point in the history
libwacom's SVG format requires that we have an element with
id="ButtonA", one with id="LabelA" and one with id="LeaderA".

The latter is the line pointing to the button. Since OSDs mostly fill in
the button rect when the button is pressed we need the label to be
outside the button and a leader pointing to it.

This patch was (supervised but) generated from a Python script:
all labels are moved to the right and a leader with the right id and
class was inserted. The script supports moving buttons (and adding
leaders) in all four directions, most tablets are ok now. Some tablets
have a less-than optimal layout (e.g. the Huion Mini Keypad) but that
can be fixed by someone with more time and motivation.

Script source:
https://gist.github.com/whot/8f3dbc09908862775b61f7d0a71fd5ed

Fixes: c80bd7f ("Add auto generated GAOMON tablet description files")
Fixes: ce093e7 ("Add auto generated HUION tablet description files")
  • Loading branch information
whot authored May 14, 2024
1 parent 9f03c25 commit c3225fb
Show file tree
Hide file tree
Showing 94 changed files with 4,803 additions and 12,567 deletions.
228 changes: 63 additions & 165 deletions data/layouts/gaomon-1060pro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c3225fb

Please sign in to comment.