Add autoplay GIF setting
This commit is contained in:
parent
1f58cfeae8
commit
0b60b2b5bc
|
@ -1,61 +1,4 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||||
<svg
|
<path d="m12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-3 17v-10l9 5.146z" fill-opacity=".605505"/>
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
<path d="m8.9991935 6.998851 9.0020095 5.147149-9.0020095 4.855085z" fill="#fff" fill-opacity=".66055"/>
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="24"
|
|
||||||
height="24"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
version="1.1"
|
|
||||||
id="svg4"
|
|
||||||
sodipodi:docname="play.svg"
|
|
||||||
inkscape:version="">
|
|
||||||
<metadata
|
|
||||||
id="metadata10">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title></dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<defs
|
|
||||||
id="defs8" />
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="640"
|
|
||||||
inkscape:window-height="480"
|
|
||||||
id="namedview6"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="13.906433"
|
|
||||||
inkscape:cx="21.364289"
|
|
||||||
inkscape:cy="8.6358876"
|
|
||||||
inkscape:current-layer="svg4"
|
|
||||||
inkscape:pagecheckerboard="true" />
|
|
||||||
<path
|
|
||||||
d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-3 17v-10l9 5.146-9 4.854z"
|
|
||||||
id="path2"
|
|
||||||
style="fill-opacity:0.60550457;fill:#000000" />
|
|
||||||
<path
|
|
||||||
style="opacity:1;fill:#ffffff;fill-opacity:0.66055048;stroke:none;stroke-width:2.29196095;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0;paint-order:normal"
|
|
||||||
inkscape:transform-center-x="-0.88876775"
|
|
||||||
inkscape:transform-center-y="-0.14457271"
|
|
||||||
d="M 8.9991935,6.998851 18.001203,12.146 8.9991935,17.001085 Z"
|
|
||||||
id="path817"
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
sodipodi:nodetypes="cccc" />
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 334 B |
|
@ -106,6 +106,7 @@ class UISettings(JSONConfigFile):
|
||||||
async def default_data(self) -> JsonData:
|
async def default_data(self) -> JsonData:
|
||||||
return {
|
return {
|
||||||
"alertOnMessageForMsec": 4000,
|
"alertOnMessageForMsec": 4000,
|
||||||
|
"autoPlayGIF": True,
|
||||||
"clearRoomFilterOnEnter": True,
|
"clearRoomFilterOnEnter": True,
|
||||||
"clearRoomFilterOnEscape": True,
|
"clearRoomFilterOnEscape": True,
|
||||||
"theme": "Default.qpl",
|
"theme": "Default.qpl",
|
||||||
|
|
|
@ -38,22 +38,22 @@ Image {
|
||||||
property var pr: frameCount
|
property var pr: frameCount
|
||||||
onPrChanged: print(source, pr)
|
onPrChanged: print(source, pr)
|
||||||
|
|
||||||
property bool userPaused: false
|
property bool userPaused: ! window.settings.autoPlayGIF
|
||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
onTapped: parent.userPaused = ! parent.userPaused
|
onTapped: parent.userPaused = ! parent.userPaused
|
||||||
}
|
}
|
||||||
|
|
||||||
HIcon {
|
HIcon {
|
||||||
|
anchors.centerIn: parent
|
||||||
svgName: "play"
|
svgName: "play"
|
||||||
colorize: "transparent"
|
colorize: "transparent"
|
||||||
anchors.centerIn: parent
|
|
||||||
dimension: Math.min(
|
dimension: Math.min(
|
||||||
parent.width - theme.spacing * 2,
|
parent.width - theme.spacing * 2,
|
||||||
parent.height - theme.spacing * 2,
|
parent.height - theme.spacing * 2,
|
||||||
theme.controls.image.maxPauseIndicatorSize,
|
theme.controls.image.maxPauseIndicatorSize,
|
||||||
)
|
)
|
||||||
scale: parent.paused ? 1 : 0
|
scale: parent.status == Image.Ready && parent.paused ? 1 : 0
|
||||||
visible: scale > 0
|
visible: scale > 0
|
||||||
|
|
||||||
Behavior on scale { HNumberAnimation { overshoot: 4 } }
|
Behavior on scale { HNumberAnimation { overshoot: 4 } }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user