From 7e59f0f9740dbefe109ba10bdaab77c268331e94 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 29 Aug 2017 10:31:16 +1000 Subject: [PATCH] data: add a fallback.svg file This SVG is generic enough to cover 7-button mice with up to 3 LEDs that are supported but don't have an SVG. The SVG style is intentionally NOT a generic mouse to make it obvious that something isn't right here. If we use a generic mouse, people may not put the effort into a proper SVG style because the generic mouse is good enough. The fallback is currently only used for test devices --- data/gnome/fallback.svg | 506 ++++++++++++++++++++++++++++++++++++++++ meson.build | 1 + ratbagd/ratbagd.c | 2 +- 3 files changed, 508 insertions(+), 1 deletion(-) create mode 100644 data/gnome/fallback.svg diff --git a/data/gnome/fallback.svg b/data/gnome/fallback.svg new file mode 100644 index 00000000..5d119efe --- /dev/null +++ b/data/gnome/fallback.svg @@ -0,0 +1,506 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + 404 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/meson.build b/meson.build index 2ed18ea9..073975f5 100644 --- a/meson.build +++ b/meson.build @@ -306,6 +306,7 @@ install_data(default_svg_files, install_dir : join_paths(get_option('datadir'), 'libratbag', 'default')) gnome_svg_files = [ + 'data/gnome/fallback.svg', 'data/gnome/logitech-g303.svg', 'data/gnome/logitech-g403.svg', 'data/gnome/logitech-g500.svg', diff --git a/ratbagd/ratbagd.c b/ratbagd/ratbagd.c index f71eaaa6..a87b2d9f 100644 --- a/ratbagd/ratbagd.c +++ b/ratbagd/ratbagd.c @@ -196,7 +196,7 @@ static const struct ratbag_test_device ratbagd_test_device_descr = { .num_resolutions = 3, .num_buttons = 4, .num_leds = 3, - .svg = "logitech-g500.svg", + .svg = "fallback.svg", .profiles = { { .buttons = {