mouse: Update assets for test window; improve scroll arrow display
- add new assets for clicking and scrolling view switcher - adjust the scroll test arrow display - remove old inappropriate asset - use gresource for new assets
This commit is contained in:
parent
755ace7b7d
commit
7fcc142aac
6 changed files with 26 additions and 9 deletions
|
@ -30,7 +30,7 @@
|
|||
<child>
|
||||
<object class="AdwViewStackPage" id="click_page">
|
||||
<property name="title" translatable="yes">Clicking</property>
|
||||
<property name="icon-name">select-mode-symbolic</property>
|
||||
<property name="icon-name">mouse-test-click-symbolic</property>
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -151,7 +151,7 @@
|
|||
<child>
|
||||
<object class="AdwViewStackPage" id="scroll_page">
|
||||
<property name="title" translatable="yes">Scrolling</property>
|
||||
<property name="icon-name">mail-send-receive-symbolic</property>
|
||||
<property name="icon-name">mouse-test-scroll-symbolic</property>
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
|
@ -160,22 +160,24 @@
|
|||
<child type="overlay">
|
||||
<object class="GtkImage" id="arrow_up">
|
||||
<property name="icon-name">go-up-symbolic</property>
|
||||
<property name="pixel-size">72</property>
|
||||
<property name="pixel-size">64</property>
|
||||
<property name="valign">start</property>
|
||||
<property name="can-target">False</property>
|
||||
<style>
|
||||
<class name="mouse-test-arrow"/>
|
||||
<class name="top-arrow"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child type="overlay">
|
||||
<object class="GtkImage" id="arrow_down">
|
||||
<property name="icon-name">go-down-symbolic</property>
|
||||
<property name="pixel-size">72</property>
|
||||
<property name="pixel-size">64</property>
|
||||
<property name="valign">end</property>
|
||||
<property name="can-target">False</property>
|
||||
<style>
|
||||
<class name="mouse-test-arrow"/>
|
||||
<class name="bottom-arrow"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg height="16px" viewBox="0 0 16 16" width="16px" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m 4.199219 0.105469 c -0.160157 0.007812 -0.3125 0.050781 -0.449219 0.132812 c -0.230469 0.128907 -0.398438 0.347657 -0.464844 0.605469 c -0.070312 0.257812 -0.035156 0.53125 0.101563 0.761719 l 0.5 0.863281 c 0.273437 0.476562 0.886719 0.640625 1.363281 0.363281 c 0.476562 -0.273437 0.640625 -0.886719 0.363281 -1.363281 l -0.5 -0.863281 c -0.1875 -0.328125 -0.539062 -0.5195315 -0.914062 -0.5 z m 4.601562 0 c -0.375 -0.0195315 -0.726562 0.171875 -0.914062 0.5 l -0.5 0.863281 c -0.277344 0.476562 -0.113281 1.089844 0.363281 1.363281 c 0.476562 0.277344 1.089844 0.113281 1.363281 -0.363281 l 0.5 -0.863281 c 0.136719 -0.230469 0.171875 -0.503907 0.101563 -0.761719 c -0.066406 -0.257812 -0.234375 -0.476562 -0.464844 -0.605469 c -0.136719 -0.082031 -0.289062 -0.125 -0.449219 -0.132812 z m -6.800781 3.894531 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 1 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 8 0 c -0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 1 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m -2.136719 2.011719 c -0.09375 0.011719 -0.1875 0.035156 -0.273437 0.074219 c -0.359375 0.164062 -0.589844 0.519531 -0.589844 0.914062 v 6 c 0 0.40625 0.242188 0.769531 0.617188 0.921875 c 0.375 0.15625 0.804687 0.070313 1.089843 -0.214844 l 0.875 -0.875 l 1.074219 1.699219 c 0.292969 0.46875 0.910156 0.609375 1.375 0.3125 c 0.46875 -0.292969 0.609375 -0.910156 0.3125 -1.375 l -0.917969 -1.46875 h 1.074219 c 0.414062 0 0.789062 -0.257812 0.933594 -0.644531 c 0.148437 -0.390625 0.042968 -0.828125 -0.269532 -1.105469 l -4.5 -4 c -0.21875 -0.191406 -0.511718 -0.28125 -0.800781 -0.238281 z m -3.113281 1.019531 c -0.355469 0 -0.6875 0.191406 -0.863281 0.5 l -0.5 0.863281 c -0.136719 0.230469 -0.171875 0.503907 -0.101563 0.761719 c 0.066406 0.257812 0.234375 0.476562 0.464844 0.605469 c 0.476562 0.277343 1.089844 0.113281 1.363281 -0.367188 l 0.5 -0.863281 c 0.277344 -0.476562 0.113281 -1.089844 -0.363281 -1.363281 c -0.152344 -0.089844 -0.324219 -0.136719 -0.5 -0.136719 z m 0 0" fill="#222222"/>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg height="16px" viewBox="0 0 16 16" width="16px" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m 5 0 c -2.753906 0 -5 2.246094 -5 5 v 6 c 0 2.753906 2.246094 5 5 5 h 2 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 h -2 c -1.679688 0 -3 -1.320312 -3 -3 v -6 c 0 -1.679688 1.320312 -3 3 -3 h 2 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 z m 7 0 c -0.25 0 -0.503906 0.09375 -0.699219 0.28125 l -3 2.917969 c -0.394531 0.386719 -0.402343 1.019531 -0.019531 1.414062 c 0.386719 0.398438 1.019531 0.40625 1.417969 0.023438 l 1.300781 -1.269531 v 7.183593 l -1.300781 -1.269531 c -0.398438 -0.382812 -1.03125 -0.375 -1.417969 0.019531 c -0.382812 0.398438 -0.375 1.03125 0.019531 1.417969 l 3 2.917969 c 0.390625 0.375 1.007813 0.375 1.398438 0 l 3 -2.917969 c 0.1875 -0.1875 0.296875 -0.441406 0.300781 -0.707031 c 0.003906 -0.261719 -0.097656 -0.519531 -0.28125 -0.710938 c -0.386719 -0.394531 -1.019531 -0.402343 -1.417969 -0.019531 l -1.300781 1.269531 v -7.183593 l 1.300781 1.269531 c 0.398438 0.382812 1.03125 0.375 1.417969 -0.023438 c 0.183594 -0.1875 0.285156 -0.445312 0.28125 -0.707031 c -0.003906 -0.265625 -0.113281 -0.519531 -0.300781 -0.707031 l -3 -2.917969 c -0.195313 -0.1875 -0.449219 -0.28125 -0.699219 -0.28125 z m -6 3 c -0.554688 0 -1 0.445312 -1 1 v 3 c 0 0.554688 0.445312 1 1 1 s 1 -0.445312 1 -1 v -3 c 0 -0.554688 -0.445312 -1 -1 -1 z m 0 0" fill="#222222"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
|
@ -4,7 +4,15 @@
|
|||
|
||||
.mouse-test-arrow {
|
||||
color: white;
|
||||
-gtk-icon-shadow: 0 1px black;
|
||||
}
|
||||
|
||||
.top-arrow {
|
||||
padding-bottom:2em;
|
||||
background: linear-gradient(to top, transparent, rgba(0,0,0,0.5));
|
||||
}
|
||||
.bottom-arrow {
|
||||
padding-top:2em;
|
||||
background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5));
|
||||
}
|
||||
|
||||
.click-status-emblem {
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
<file>assets/tap-to-click-l.webm</file>
|
||||
<file>assets/tap-to-click-d.webm</file>
|
||||
</gresource>
|
||||
<gresource prefix="/org/gnome/Settings/icons/scalable/actions">
|
||||
<file preprocess="xml-stripblanks">select-mode-symbolic.svg</file>
|
||||
<gresource prefix="/org/gnome/Settings">
|
||||
<file preprocess="xml-stripblanks">icons/scalable/actions/mouse-test-click-symbolic.svg</file>
|
||||
<file preprocess="xml-stripblanks">icons/scalable/actions/mouse-test-scroll-symbolic.svg</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="16px" viewBox="0 0 16 16" width="16px"><filter id="a" height="100%" width="100%" x="0%" y="0%"><feColorMatrix color-interpolation-filters="sRGB" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/></filter><mask id="b"><g filter="url(#a)"><path d="m -1.6 -1.6 h 19.2 v 19.2 h -19.2 z" fill-opacity="0.5"/></g></mask><clipPath id="c"><path d="m 0 0 h 1600 v 1200 h -1600 z"/></clipPath><mask id="d"><g filter="url(#a)"><path d="m -1.6 -1.6 h 19.2 v 19.2 h -19.2 z" fill-opacity="0.7"/></g></mask><clipPath id="e"><path d="m 0 0 h 1600 v 1200 h -1600 z"/></clipPath><mask id="f"><g filter="url(#a)"><path d="m -1.6 -1.6 h 19.2 v 19.2 h -19.2 z" fill-opacity="0.35"/></g></mask><clipPath id="g"><path d="m 0 0 h 1600 v 1200 h -1600 z"/></clipPath><path d="m 2.953125 1.074219 l 2.417969 13.210937 l 3.238281 -2.398437 l 2.054687 2.648437 c 1.03125 1.433594 3.148438 -0.210937 2.011719 -1.5625 l -2.015625 -2.59375 l 2.984375 -2.175781 z m 0 0" fill="#222222"/><g mask="url(#b)"><g clip-path="url(#c)" transform="matrix(1 0 0 1 -540 -724)"><path d="m 550 182 c -0.351562 0.003906 -0.695312 0.101562 -1 0.28125 v 3.4375 c 0.304688 0.179688 0.648438 0.277344 1 0.28125 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 5 c -0.339844 0 -0.679688 0.058594 -1 0.175781 v 6.824219 h 4 v -4 c 0 -1.65625 -1.34375 -3 -3 -3 z m 0 0"/></g></g><g mask="url(#d)"><g clip-path="url(#e)" transform="matrix(1 0 0 1 -540 -724)"><path d="m 569 182 v 4 c 1.105469 0 2 -0.894531 2 -2 s -0.894531 -2 -2 -2 z m 0 5 v 7 h 3 v -4 c 0 -1.65625 -1.34375 -3 -3 -3 z m 0 0"/></g></g><g mask="url(#f)"><g clip-path="url(#g)" transform="matrix(1 0 0 1 -540 -724)"><path d="m 573 182.269531 v 3.449219 c 0.613281 -0.355469 0.996094 -1.007812 1 -1.71875 c 0 -0.714844 -0.382812 -1.375 -1 -1.730469 z m 0 4.90625 v 6.824219 h 2 v -4 c 0 -1.269531 -0.800781 -2.402344 -2 -2.824219 z m 0 0"/></g></g></svg>
|
Before Width: | Height: | Size: 2 KiB |
Loading…
Add table
Reference in a new issue