diff --git a/data/mouse-left-symbolic.svg b/data/mouse-left-symbolic.svg index bce62c28..04fa8c55 100644 --- a/data/mouse-left-symbolic.svg +++ b/data/mouse-left-symbolic.svg @@ -1,39 +1,36 @@ - - - - - - image/svg+xml - - - - - + xmlns='http://www.w3.org/2000/svg' + xmlns:svg='http://www.w3.org/2000/svg' + xmlns:gpa='https://www.gtk.org/grappa' + gpa:version='1' + gpa:state='0' + id='svg4354' + width='32' + height='32' + viewBox='0 0 32 32'> + id='rect1-2-9-7' + class='foreground foreground-fill' + opacity='0.4' + fill='url(#gpa:foreground) rgb(0,0,0)' + fill-opacity='1' + fill-rule='nonzero' + d='M 12.7344 2.87305 C 10.8662 3.46716, 8.59463 4.84934, 8.50586 14.2285 C 10.2394 14.6283, 12.6311 14.8552, 13.9798 14.8954 C 15.3284 14.9356, 16 14.264, 16 13.4356 L 16 2.51953 C 15.1292 2.49726, 14.0021 2.56384, 12.7344 2.87305 Z'> + - + id='rect1-2-9' + class='foreground foreground-fill foreground-stroke' + fill='url(#gpa:foreground) rgb(0,0,0)' + fill-opacity='0.1' + fill-rule='nonzero' + stroke='url(#gpa:foreground) rgb(0,0,0)' + stroke-opacity='1' + stroke-width='1' + stroke-linecap='butt' + stroke-linejoin='miter' + stroke-miterlimit='4' + d='M 10.6531 28.3167 C 8.56745 27.0615, 8.5 20.5593, 8.5 16 C 8.5 11.4407, 8.56745 4.9385, 10.6531 3.68333 C 12.7388 2.42815, 16 2.5, 16 2.5 C 16 2.5, 19.2612 2.42815, 21.3469 3.68333 C 23.4325 4.9385, 23.5 11.4407, 23.5 16 C 23.5 20.5593, 23.4326 27.0615, 21.3469 28.3167 C 19.2612 29.5718, 16 29.5, 16 29.5 C 16 29.5, 12.7388 29.5718, 10.6531 28.3167 Z' + gpa:stroke-minwidth='25%' + gpa:stroke-maxwidth='150%'> + diff --git a/data/mouse-right-symbolic.svg b/data/mouse-right-symbolic.svg index d9f5c49b..72e5d6bb 100644 --- a/data/mouse-right-symbolic.svg +++ b/data/mouse-right-symbolic.svg @@ -1,39 +1,38 @@ + viewBox="0 0 32 32" + version="1.1" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:gpa="https://www.gtk.org/grappa"> - - - - image/svg+xml - - - - - - + id="defs1" /> + id="rect1-2-9-7" + class="foreground foreground-fill" + opacity="0.4" + fill="url(#gpa:foreground) #000000" + fill-opacity="1" + fill-rule="nonzero" + d="M 19.2656,2.87305 C 21.1338,3.46716 23.40537,4.84934 23.49414,14.2285 21.7606,14.6283 19.3689,14.8552 18.0202,14.8954 16.6716,14.9356 16,14.264 16,13.4356 V 2.51953 c 0.8708,-0.02227 1.9979,0.04431 3.2656,0.35352 z" /> + id="rect1-2-9" + class="foreground foreground-fill foreground-stroke" + fill="url(#gpa:foreground) #000000" + fill-opacity="0.1" + fill-rule="nonzero" + stroke="url(#gpa:foreground) #000000" + stroke-opacity="1" + stroke-width="1" + stroke-linecap="butt" + stroke-linejoin="miter" + stroke-miterlimit="4" + d="M 21.3469,28.3167 C 23.43255,27.0615 23.5,20.5593 23.5,16 23.5,11.4407 23.43255,4.9385 21.3469,3.68333 19.2612,2.42815 16,2.5 16,2.5 16,2.5 12.7388,2.42815 10.6531,3.68333 8.5675,4.9385 8.5,11.4407 8.5,16 8.5,20.5593 8.5674,27.0615 10.6531,28.3167 12.7388,29.5718 16,29.5 16,29.5 c 0,0 3.2612,0.0718 5.3469,-1.1833 z" + gpa:stroke-minwidth="25%" + gpa:stroke-maxwidth="150%" /> diff --git a/data/mouse-touchpad.gresource.xml b/data/mouse-touchpad.gresource.xml index 9d202b8b..3451732d 100644 --- a/data/mouse-touchpad.gresource.xml +++ b/data/mouse-touchpad.gresource.xml @@ -1,22 +1,18 @@ + pointing/symbolic.svg + mouse-left-symbolic.svg mouse-right-symbolic.svg touchpad-click-areas-symbolic.svg touchpad-click-multitouch-symbolic.svg touchpad-scroll-edge-symbolic.svg touchpad-scroll-two-finger-symbolic.svg - pointing/24-symbolic.svg - pointing/24-symbolic.svg pointing/32.svg pointing/32.svg - pointing/32-symbolic.svg - pointing/32-symbolic.svg pointing/48.svg pointing/48.svg - pointing/48-symbolic.svg - pointing/48-symbolic.svg clicking/32.svg clicking/32.svg clicking/48.svg diff --git a/data/pointing/24-symbolic.svg b/data/pointing/24-symbolic.svg deleted file mode 100644 index de9106a9..00000000 --- a/data/pointing/24-symbolic.svg +++ /dev/null @@ -1,562 +0,0 @@ - - - - - - - image/svg+xml - - - - Jakub Steiner - - - - http://jimmac.musichall.cz/themes.php?skin=7 - - - negative - inverted - cursor - theme - X - xorg - xcursor - - - Inverted variant of the DMZ cursor theme. - - - - - - - diff --git a/data/pointing/32-symbolic.svg b/data/pointing/32-symbolic.svg deleted file mode 100644 index b80ec8d1..00000000 --- a/data/pointing/32-symbolic.svg +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - image/svg+xml - - - - - - - diff --git a/data/pointing/48-symbolic.svg b/data/pointing/48-symbolic.svg deleted file mode 100644 index 93e12455..00000000 --- a/data/pointing/48-symbolic.svg +++ /dev/null @@ -1,97 +0,0 @@ - -image/svg+xml diff --git a/data/touchpad-click-areas-symbolic.svg b/data/touchpad-click-areas-symbolic.svg index 2d447a04..6fa43b47 100644 --- a/data/touchpad-click-areas-symbolic.svg +++ b/data/touchpad-click-areas-symbolic.svg @@ -1,44 +1,40 @@ - - - - - - image/svg+xml - - - - - + xmlns='http://www.w3.org/2000/svg' + xmlns:svg='http://www.w3.org/2000/svg' + xmlns:gpa='https://www.gtk.org/grappa' + gpa:version='1' + gpa:state='0' + id='svg4354' + width='32' + height='32' + viewBox='0 0 32 32'> - + id='rect1' + class='foreground-stroke' + fill='url(#gpa:foreground) rgb(0,0,0)' + fill-opacity='0.1' + fill-rule='nonzero' + stroke='url(#gpa:foreground) rgb(0,0,0)' + stroke-opacity='1' + stroke-width='1' + stroke-linecap='butt' + stroke-linejoin='miter' + stroke-miterlimit='4' + d='M 5 4.5 L 27 4.5 C 28.385 4.5, 29.5 5.615, 29.5 7 L 29.5 26 C 29.5 27.385, 28.385 28.5, 27 28.5 L 5 28.5 C 3.615 28.5, 2.5 27.385, 2.5 26 L 2.5 7 C 2.5 5.615, 3.615 4.5, 5 4.5 Z' + gpa:stroke-minwidth='25%' + gpa:stroke-maxwidth='150%'> + + id='rect835' + class="foreground foreground-fill" + opacity="0.8" + fill="url(#gpa:foreground) #000000" + fill-rule='nonzero' + x='17' + y='22' + width='11' + height='5' + rx='1.02269' + ry='1.02269'> + diff --git a/data/touchpad-click-multitouch-symbolic.svg b/data/touchpad-click-multitouch-symbolic.svg index 811f06d1..96c3e0af 100644 --- a/data/touchpad-click-multitouch-symbolic.svg +++ b/data/touchpad-click-multitouch-symbolic.svg @@ -1,39 +1,35 @@ - - - - - - image/svg+xml - - - - - + xmlns='http://www.w3.org/2000/svg' + xmlns:svg='http://www.w3.org/2000/svg' + xmlns:gpa='https://www.gtk.org/grappa' + gpa:version='1' + gpa:state='0' + id='svg4354' + width='32' + height='32' + viewBox='0 0 32 32'> + id='rect1' + class='foreground-stroke' + fill='url(#gpa:foreground) rgb(0,0,0)' + fill-opacity='0.1' + fill-rule='nonzero' + stroke='url(#gpa:foreground) rgb(0,0,0)' + stroke-opacity='1' + stroke-width='1' + stroke-linecap='butt' + stroke-linejoin='miter' + stroke-miterlimit='4' + d='M 5 4.5 L 27 4.5 C 28.385 4.5, 29.5 5.615, 29.5 7 L 29.5 26 C 29.5 27.385, 28.385 28.5, 27 28.5 L 5 28.5 C 3.615 28.5, 2.5 27.385, 2.5 26 L 2.5 7 C 2.5 5.615, 3.615 4.5, 5 4.5 Z' + gpa:stroke-minwidth='25%' + gpa:stroke-maxwidth='150%'> + - + id='path925' + class="foreground foreground-fill" + opacity="0.8" + fill="url(#gpa:foreground) #000000" + fill-rule='nonzero' + d='M 12.5 14 A 2.5 2.5 0 0 0 10 16.5 A 2.5 2.5 0 0 0 12.5 19 A 2.5 2.5 0 0 0 15 16.5 A 2.5 2.5 0 0 0 12.5 14 Z M 20.5 14 A 2.5 2.5 0 0 0 18 16.5 A 2.5 2.5 0 0 0 20.5 19 A 2.5 2.5 0 0 0 23 16.5 A 2.5 2.5 0 0 0 20.5 14 Z'> + diff --git a/data/touchpad-scroll-edge-symbolic.svg b/data/touchpad-scroll-edge-symbolic.svg index f7afd6e4..8ab2907e 100644 --- a/data/touchpad-scroll-edge-symbolic.svg +++ b/data/touchpad-scroll-edge-symbolic.svg @@ -1,39 +1,35 @@ - - - - - - image/svg+xml - - - - - + xmlns='http://www.w3.org/2000/svg' + xmlns:svg='http://www.w3.org/2000/svg' + xmlns:gpa='https://www.gtk.org/grappa' + gpa:version='1' + gpa:state='0' + id='svg4354' + width='32' + height='32' + viewBox='0 0 32 32'> + id='rect1' + class='foreground-stroke' + fill='url(#gpa:foreground) rgb(0,0,0)' + fill-opacity='0.1' + fill-rule='nonzero' + stroke='url(#gpa:foreground) rgb(0,0,0)' + stroke-opacity='1' + stroke-width='1' + stroke-linecap='butt' + stroke-linejoin='miter' + stroke-miterlimit='4' + d='M 5 4.5 L 27 4.5 C 28.385 4.5, 29.5 5.615, 29.5 7 L 29.5 26 C 29.5 27.385, 28.385 28.5, 27 28.5 L 5 28.5 C 3.615 28.5, 2.5 27.385, 2.5 26 L 2.5 7 C 2.5 5.615, 3.615 4.5, 5 4.5 Z' + gpa:stroke-minwidth='25%' + gpa:stroke-maxwidth='150%'> + - + id='path873-5-2' + class="foreground foreground-fill" + opacity="0.8" + fill="url(#gpa:foreground) #000000" + fill-rule='nonzero' + d='M 26.4961 7 C 26.4296 7, 26.371 6.99961, 26.3262 7.09961 L 24.918 8.5 C 24.8664 8.6, 24.834 8.69922, 24.834 8.69922 C 24.834 8.89922, 24.9454 9, 25.084 9 L 26 9 L 26 22 L 25.084 22 C 24.9454 22, 24.834 22.1008, 24.834 22.3008 C 24.834 22.3008, 24.8664 22.4, 24.918 22.5 L 26.3262 23.9004 C 26.371 24.0004, 26.4296 24, 26.4961 24 C 26.5625 24, 26.6232 24.0004, 26.668 23.9004 L 28.082 22.5 C 28.1336 22.4, 28.166 22.3008, 28.166 22.3008 C 28.166 22.1008, 28.0096 22.1022, 27.916 22 L 27 22 L 27 9 L 27.916 9 C 28.0546 9, 28.166 8.89922, 28.166 8.69922 C 28.166 8.69922, 28.1336 8.6, 28.082 8.5 L 26.668 7.09961 C 26.6232 6.99961, 26.5626 7, 26.4961 7 Z M 6.74219 23.8008 C 6.66472 23.8008, 6.59629 23.9004, 6.54883 23.9004 L 5.07031 25.3008 C 5.02643 25.4008, 5 25.4, 5 25.5 C 5 25.6, 5.02643 25.5992, 5.07031 25.6992 L 6.54883 27.0996 C 6.59629 27.0996, 6.66472 27.1992, 6.74219 27.1992 C 6.88593 27.1992, 6.99957 27.1004, 7 26.9004 L 7 26 L 23 26 L 23 26.9004 C 23 27.1004, 23.116 27.1992, 23.2598 27.1992 C 23.3372 27.1992, 23.4057 27.0996, 23.4531 27.0996 L 24.9297 25.6992 C 24.9736 25.5992, 25.002 25.6, 25.002 25.5 C 25.002 25.4, 24.9736 25.4008, 24.9297 25.3008 L 23.4531 23.9004 C 23.4057 23.9004, 23.3372 23.8008, 23.2598 23.8008 C 23.116 23.8008, 23 23.8996, 23 24.0996 L 23 25 L 7 25 L 7 24.0996 C 7 23.8996, 6.88593 23.8008, 6.74219 23.8008 Z'> + diff --git a/data/touchpad-scroll-two-finger-symbolic.svg b/data/touchpad-scroll-two-finger-symbolic.svg index c8514797..a3b944c0 100644 --- a/data/touchpad-scroll-two-finger-symbolic.svg +++ b/data/touchpad-scroll-two-finger-symbolic.svg @@ -1,39 +1,35 @@ - - - - - - image/svg+xml - - - - - + xmlns='http://www.w3.org/2000/svg' + xmlns:svg='http://www.w3.org/2000/svg' + xmlns:gpa='https://www.gtk.org/grappa' + gpa:version='1' + gpa:state='0' + id='svg4354' + width='32' + height='32' + viewBox='0 0 32 32'> + id='rect1' + class='foreground-stroke' + fill='url(#gpa:foreground) rgb(0,0,0)' + fill-opacity='0.1' + fill-rule='nonzero' + stroke='url(#gpa:foreground) rgb(0,0,0)' + stroke-opacity='1' + stroke-width='1' + stroke-linecap='butt' + stroke-linejoin='miter' + stroke-miterlimit='4' + d='M 5 4.5 L 27 4.5 C 28.385 4.5, 29.5 5.615, 29.5 7 L 29.5 26 C 29.5 27.385, 28.385 28.5, 27 28.5 L 5 28.5 C 3.615 28.5, 2.5 27.385, 2.5 26 L 2.5 7 C 2.5 5.615, 3.615 4.5, 5 4.5 Z' + gpa:stroke-minwidth='25%' + gpa:stroke-maxwidth='150%'> + - + id='path873-5-1' + class="foreground foreground-fill" + opacity="0.8" + fill="url(#gpa:foreground) #000000" + fill-rule='nonzero' + d='M 13.4961 6.99805 C 13.4296 6.99805, 13.371 7.02643, 13.3262 7.07031 L 11.918 8.54688 C 11.8664 8.59434, 11.834 8.66276, 11.834 8.74023 C 11.834 8.88397, 11.9454 9, 12.084 9 L 13 9 L 13 14 L 7.00195 14 L 7.00195 13.084 C 7.00195 12.9454, 6.88593 12.834, 6.74219 12.834 C 6.66472 12.834, 6.59629 12.8664, 6.54883 12.918 L 5.07031 14.332 C 5.02643 14.3768, 5 14.4374, 5 14.5039 C 5 14.5704, 5.02643 14.629, 5.07031 14.6738 L 6.54883 16.082 C 6.59629 16.1336, 6.66472 16.166, 6.74219 16.166 C 6.88593 16.166, 7.00195 16.0546, 7.00195 15.916 L 7.00195 15 L 13 15 L 13 18 L 7.00195 18 L 7.00195 17.084 C 7.00195 16.9454, 6.88593 16.834, 6.74219 16.834 C 6.66472 16.834, 6.59629 16.8664, 6.54883 16.918 L 5.07031 18.332 C 5.02643 18.3768, 5 18.4374, 5 18.5039 C 5 18.5704, 5.02643 18.629, 5.07031 18.6738 L 6.54883 20.082 C 6.59629 20.1336, 6.66472 20.166, 6.74219 20.166 C 6.88593 20.166, 7.00195 20.0546, 7.00195 19.916 L 7.00195 19 L 13 19 L 13 23.998 L 12.084 23.998 C 11.9454 23.998, 11.834 24.1141, 11.834 24.2578 C 11.834 24.3353, 11.8664 24.4037, 11.918 24.4512 L 13.3262 25.9297 C 13.371 25.9736, 13.4296 26, 13.4961 26 C 13.5626 26, 13.6232 25.9736, 13.668 25.9297 L 15.082 24.4512 C 15.1336 24.4037, 15.166 24.3353, 15.166 24.2578 C 15.166 24.1141, 15.0546 23.998, 14.916 23.998 L 14 23.998 L 14 19 L 17 19 L 17 21.499 L 17 23.998 L 16.084 23.998 C 15.9454 23.998, 15.834 24.1141, 15.834 24.2578 C 15.834 24.3353, 15.8664 24.4037, 15.918 24.4512 L 17.3262 25.9297 C 17.371 25.9736, 17.4296 26, 17.4961 26 C 17.5626 26, 17.6232 25.9736, 17.668 25.9297 L 19.082 24.4512 C 19.1336 24.4037, 19.166 24.3353, 19.166 24.2578 C 19.166 24.1141, 19.0546 23.998, 18.916 23.998 L 18 23.998 L 18 19 L 24.998 19 L 24.998 19.916 C 24.998 20.0546, 25.1141 20.166, 25.2578 20.166 C 25.3353 20.166, 25.4037 20.1336, 25.4512 20.082 L 26.9297 18.6738 C 26.9736 18.629, 27 18.5704, 27 18.5039 C 27 18.4374, 26.9736 18.3768, 26.9297 18.332 L 25.4512 16.918 C 25.4037 16.8664, 25.3353 16.834, 25.2578 16.834 C 25.1141 16.834, 24.998 16.9454, 24.998 17.084 L 24.998 18 L 18 18 L 18 15 L 24.998 15 L 24.998 15.916 C 24.998 16.0546, 25.1141 16.166, 25.2578 16.166 C 25.3353 16.166, 25.4037 16.1336, 25.4512 16.082 L 26.9297 14.6738 C 26.9736 14.629, 27 14.5704, 27 14.5039 C 27 14.4374, 26.9736 14.3768, 26.9297 14.332 L 25.4512 12.918 C 25.4037 12.8664, 25.3353 12.834, 25.2578 12.834 C 25.1141 12.834, 24.998 12.9454, 24.998 13.084 L 24.998 14 L 18 14 L 18 9 L 18.916 9 C 19.0546 9, 19.166 8.88397, 19.166 8.74023 C 19.166 8.66277, 19.1336 8.59433, 19.082 8.54688 L 17.668 7.07031 C 17.6232 7.02643, 17.5626 6.99805, 17.4961 6.99805 C 17.4296 6.99805, 17.371 7.02643, 17.3262 7.07031 L 15.918 8.54688 C 15.8664 8.59434, 15.834 8.66276, 15.834 8.74023 C 15.834 8.88397, 15.9454 9, 16.084 9 L 17 9 L 17 14 L 14 14 L 14 9 L 14.916 9 C 15.0546 9, 15.166 8.88397, 15.166 8.74023 C 15.166 8.66277, 15.1336 8.59433, 15.082 8.54688 L 13.668 7.07031 C 13.6232 7.02643, 13.5626 6.99805, 13.4961 6.99805 Z M 14 15 L 17 15 L 17 18 L 14 18 Z'> + diff --git a/src/Views/Pointing.vala b/src/Views/Pointing.vala index 28aa3c5f..fe00f9af 100644 --- a/src/Views/Pointing.vala +++ b/src/Views/Pointing.vala @@ -36,7 +36,9 @@ public class MouseTouchpad.PointingView : Switchboard.SettingsPage { var cursor_size_24 = new Gtk.CheckButton () { action_name = "pointing.cursor-size", action_target = new Variant.int32 (24), - child = new Gtk.Image.from_icon_name ("mouse-touchpad-pointing-symbolic") { + child = new Gtk.Image.from_paintable ( + new Gtk.Svg.from_resource ("/io/elementary/settings/mouse-touchpad/pointing/symbolic.svg") + ) { pixel_size = 24 }, tooltip_text = _("Small") @@ -46,7 +48,11 @@ public class MouseTouchpad.PointingView : Switchboard.SettingsPage { var cursor_size_32 = new Gtk.CheckButton () { action_name = "pointing.cursor-size", action_target = new Variant.int32 (32), - child = new Gtk.Image.from_icon_name ("mouse-touchpad-pointing-symbolic") { + child = new Gtk.Image.from_paintable ( + new Gtk.Svg.from_resource ("/io/elementary/settings/mouse-touchpad/pointing/symbolic.svg") { + weight = 275 + } + ) { pixel_size = 32 }, tooltip_text = _("Medium") @@ -56,7 +62,11 @@ public class MouseTouchpad.PointingView : Switchboard.SettingsPage { var cursor_size_48 = new Gtk.CheckButton () { action_name = "pointing.cursor-size", action_target = new Variant.int32 (48), - child = new Gtk.Image.from_icon_name ("mouse-touchpad-pointing-symbolic") { + child = new Gtk.Image.from_paintable ( + new Gtk.Svg.from_resource ("/io/elementary/settings/mouse-touchpad/pointing/symbolic.svg") { + weight = 150 + } + ) { pixel_size = 48 }, tooltip_text = _("Large") diff --git a/src/meson.build b/src/meson.build index 93884d67..9768b7d0 100644 --- a/src/meson.build +++ b/src/meson.build @@ -22,7 +22,7 @@ shared_module( dependency('gio-2.0'), dependency('gobject-2.0'), dependency('granite-7', version: '>=7.7.0'), - dependency('gtk4'), + dependency('gtk4', version: '>=4.22.0'), dependency('libxml-2.0'), switchboard_dep ],