1 /* SPDX-License-Identifier: GPL-2.0-only */
5 /* Embed SVG files into code as debian packages does weird things when svgs are included as qrc */
6 namespace ToggleSwitchSVG
{
7 static constexpr char s_toggledOnContent
[] =
8 "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"
10 " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n"
11 " xmlns:cc=\"http://creativecommons.org/ns#\"\n"
12 " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n"
13 " xmlns:svg=\"http://www.w3.org/2000/svg\"\n"
14 " xmlns=\"http://www.w3.org/2000/svg\"\n"
15 " xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n"
16 " xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n"
17 " inkscape:version=\"1.0rc1 (1.0rc1+100)\"\n"
18 " sodipodi:docname=\"toggle-on.svg\"\n"
21 " viewBox=\"0 0 40 20\"\n"
25 " id=\"metadata12\">\n"
29 " <dc:format>image/svg+xml</dc:format>\n"
31 " rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />\n"
37 " <sodipodi:namedview\n"
38 " inkscape:current-layer=\"svg6\"\n"
39 " inkscape:window-maximized=\"1\"\n"
40 " inkscape:window-y=\"28\"\n"
41 " inkscape:window-x=\"65\"\n"
42 " inkscape:cy=\"10\"\n"
43 " inkscape:cx=\"20.062112\"\n"
44 " inkscape:zoom=\"32.2\"\n"
45 " showgrid=\"false\"\n"
46 " id=\"namedview8\"\n"
47 " inkscape:window-height=\"1020\"\n"
48 " inkscape:window-width=\"1855\"\n"
49 " inkscape:pageshadow=\"2\"\n"
50 " inkscape:pageopacity=\"0\"\n"
51 " guidetolerance=\"10\"\n"
52 " gridtolerance=\"10\"\n"
53 " objecttolerance=\"10\"\n"
54 " borderopacity=\"1\"\n"
55 " bordercolor=\"#666666\"\n"
56 " pagecolor=\"#ffffff\" />\n"
58 " style=\"fill:#0068bf;fill-opacity:1\"\n"
73 static constexpr char s_toggledOffContent
[] =
74 "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"20\" viewBox=\"0 0 40 20\">\n"
75 " <rect x=\"2\" y=\"2\" width=\"36\" height=\"16\" ry=\"8\" fill=\"#000000\" fill-opacity=\".26\"/>\n"
76 " <circle cx=\"10\" cy=\"10\" r=\"6\" fill=\"#ffffff\"/>\n"