上传1.0.4版本
This commit is contained in:
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# one-tomato
|
||||||
|
### 感谢deepin社区 @gbwater 提供的帮助
|
||||||
|
一个使用dtk实现的番茄钟
|
||||||
8
assets/assets.qrc
Normal file
8
assets/assets.qrc
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<RCC>
|
||||||
|
<qresource prefix="/icon">
|
||||||
|
<file>icon/top.yzzi.tomato.svg</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="/">
|
||||||
|
<file>audio/ding.wav</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
||||||
BIN
assets/audio/ding.wav
Normal file
BIN
assets/audio/ding.wav
Normal file
Binary file not shown.
445
assets/icon/top.yzzi.tomato.svg
Normal file
445
assets/icon/top.yzzi.tomato.svg
Normal file
@@ -0,0 +1,445 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
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:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="512"
|
||||||
|
height="512"
|
||||||
|
viewBox="0 0 512 512"
|
||||||
|
version="1.1"
|
||||||
|
id="svg88"
|
||||||
|
sodipodi:docname="deepin-defender.svg"
|
||||||
|
inkscape:version="1.0 (4035a4fb49, 2020-05-01)">
|
||||||
|
<metadata
|
||||||
|
id="metadata92">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<sodipodi:namedview
|
||||||
|
inkscape:document-rotation="0"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1842"
|
||||||
|
inkscape:window-height="908"
|
||||||
|
id="namedview90"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="1.1946238"
|
||||||
|
inkscape:cx="476.31923"
|
||||||
|
inkscape:cy="230.43596"
|
||||||
|
inkscape:window-x="16"
|
||||||
|
inkscape:window-y="15"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="svg88" />
|
||||||
|
<defs
|
||||||
|
id="defs60">
|
||||||
|
<linearGradient
|
||||||
|
gradientTransform="translate(20,20)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="457.17184"
|
||||||
|
y1="15.202216"
|
||||||
|
x2="230.47714"
|
||||||
|
x1="231.18619"
|
||||||
|
id="linearGradient930"
|
||||||
|
spreadMethod="pad">
|
||||||
|
<stop
|
||||||
|
id="stop926"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
offset="0%"
|
||||||
|
style="stop-color:#fafffb;stop-opacity:1" />
|
||||||
|
<stop
|
||||||
|
id="stop928"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
offset="100%"
|
||||||
|
style="stop-color:#fcd3d3;stop-opacity:1" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="linearGradient1764"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#fee7e8;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop1760" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#f7cbca;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop1762" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="linearGradient1758"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#fee7e8;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop1754" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#f7ff9e;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop1756" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="linearGradient1209"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#fffff8;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop1205" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop1207" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="linearGradient1203"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop1199" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#f78e90;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop1201" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
gradientTransform="translate(20,20)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="457.17184"
|
||||||
|
y1="15.202216"
|
||||||
|
x2="230.47714"
|
||||||
|
x1="231.18619"
|
||||||
|
id="linearGradient908"
|
||||||
|
spreadMethod="pad">
|
||||||
|
<stop
|
||||||
|
id="stop904"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
offset="0%"
|
||||||
|
style="stop-color:#fee7e8;stop-opacity:1" />
|
||||||
|
<stop
|
||||||
|
id="stop906"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
offset="100%"
|
||||||
|
style="stop-color:#f78e90;stop-opacity:1" />
|
||||||
|
</linearGradient>
|
||||||
|
<filter
|
||||||
|
id="deepin-defender512-a"
|
||||||
|
width="123.3%"
|
||||||
|
height="123.3%"
|
||||||
|
x="-11.7%"
|
||||||
|
y="-11.7%"
|
||||||
|
filterUnits="objectBoundingBox">
|
||||||
|
<feOffset
|
||||||
|
dy="8"
|
||||||
|
in="SourceAlpha"
|
||||||
|
result="shadowOffsetOuter1"
|
||||||
|
id="feOffset2" />
|
||||||
|
<feGaussianBlur
|
||||||
|
in="shadowOffsetOuter1"
|
||||||
|
result="shadowBlurOuter1"
|
||||||
|
stdDeviation="10"
|
||||||
|
id="feGaussianBlur4" />
|
||||||
|
<feComposite
|
||||||
|
in="shadowBlurOuter1"
|
||||||
|
in2="SourceAlpha"
|
||||||
|
operator="out"
|
||||||
|
result="shadowBlurOuter1"
|
||||||
|
id="feComposite6" />
|
||||||
|
<feColorMatrix
|
||||||
|
in="shadowBlurOuter1"
|
||||||
|
result="shadowMatrixOuter1"
|
||||||
|
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"
|
||||||
|
id="feColorMatrix8" />
|
||||||
|
<feMerge
|
||||||
|
id="feMerge14">
|
||||||
|
<feMergeNode
|
||||||
|
in="shadowMatrixOuter1"
|
||||||
|
id="feMergeNode10" />
|
||||||
|
<feMergeNode
|
||||||
|
in="SourceGraphic"
|
||||||
|
id="feMergeNode12" />
|
||||||
|
</feMerge>
|
||||||
|
</filter>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="deepin-defender512-b"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)"
|
||||||
|
xlink:href="#deepin-defender512-h">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#fad0c4;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop17" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#f78e90;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop19" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="deepin-defender512-c"
|
||||||
|
x1="236"
|
||||||
|
x2="236"
|
||||||
|
y1="0"
|
||||||
|
y2="472"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ffffff;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#FFF"
|
||||||
|
id="stop22" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ff9a9e;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#60B8E5"
|
||||||
|
id="stop24" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
id="deepin-defender512-d"
|
||||||
|
cx="240.76081"
|
||||||
|
cy="236"
|
||||||
|
r="227.86718"
|
||||||
|
fx="240.76081"
|
||||||
|
fy="236"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(117.73447,18.521513)">
|
||||||
|
<stop
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#FFF"
|
||||||
|
id="stop27" />
|
||||||
|
<stop
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#3AC3FF"
|
||||||
|
stop-opacity=".346"
|
||||||
|
id="stop29" />
|
||||||
|
</radialGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="deepin-defender512-e"
|
||||||
|
x1="287.36972"
|
||||||
|
x2="390.20634"
|
||||||
|
y1="72.33697"
|
||||||
|
y2="83.625788"
|
||||||
|
gradientTransform="matrix(0.90888747,0,0,1.1002462,20,20)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#5BE9FF"
|
||||||
|
id="stop32" />
|
||||||
|
<stop
|
||||||
|
offset="4.362%"
|
||||||
|
stop-color="#5FE2FF"
|
||||||
|
stop-opacity=".936"
|
||||||
|
id="stop34" />
|
||||||
|
<stop
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0065FA"
|
||||||
|
stop-opacity="0"
|
||||||
|
id="stop36" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="deepin-defender512-h"
|
||||||
|
x1="245.16035"
|
||||||
|
x2="250.39036"
|
||||||
|
y1="91.806526"
|
||||||
|
y2="375.42776"
|
||||||
|
gradientTransform="scale(0.96263527,1.038815)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#FFF"
|
||||||
|
id="stop39" />
|
||||||
|
<stop
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#9CD8F8"
|
||||||
|
id="stop41" />
|
||||||
|
</linearGradient>
|
||||||
|
<path
|
||||||
|
id="deepin-defender512-g"
|
||||||
|
d="M366.002098,126.782834 L243.232391,91.3122892 C237.937267,89.4433966 232.894141,89.6859416 228.768398,91.3122892 L105.998241,126.782834 C102.108267,128.17155 99.3259151,131.593535 98.7799933,135.65516 C98.5054546,137.698256 92.2063935,186.345744 105.084464,241.943065 C112.737285,274.979672 125.613552,303.58436 143.358485,326.963384 C165.322927,355.901291 194.684585,376.722202 230.650498,388.887424 C233.631654,390.084516 236.890955,390.632141 241.347586,388.887424 C277.313499,376.722649 306.677411,355.901291 328.641854,326.963384 C346.384983,303.58436 359.263053,274.979672 366.915874,241.943065 C379.794396,186.345745 373.493531,137.698257 373.220345,135.65516 C372.674423,131.593088 369.890268,128.17155 366.002098,126.782834 Z" />
|
||||||
|
<filter
|
||||||
|
id="deepin-defender512-f"
|
||||||
|
width="126.6%"
|
||||||
|
height="124.7%"
|
||||||
|
x="-13.3%"
|
||||||
|
y="-7.7%"
|
||||||
|
filterUnits="objectBoundingBox">
|
||||||
|
<feOffset
|
||||||
|
dy="14"
|
||||||
|
in="SourceAlpha"
|
||||||
|
result="shadowOffsetOuter1"
|
||||||
|
id="feOffset45" />
|
||||||
|
<feGaussianBlur
|
||||||
|
in="shadowOffsetOuter1"
|
||||||
|
result="shadowBlurOuter1"
|
||||||
|
stdDeviation="10"
|
||||||
|
id="feGaussianBlur47" />
|
||||||
|
<feColorMatrix
|
||||||
|
in="shadowBlurOuter1"
|
||||||
|
values="0 0 0 0 0 0 0 0 0 0.290980179 0 0 0 0 0.5330899 0 0 0 0.611778846 0"
|
||||||
|
id="feColorMatrix49" />
|
||||||
|
</filter>
|
||||||
|
<path
|
||||||
|
id="deepin-defender512-j"
|
||||||
|
d="M207.954597,166.357609 C210.216243,158.047897 219.262828,152 227.55553,152 L250.171992,152 C258.464694,152 262.234104,158.047897 259.218576,165.603671 L241.020431,210 L273.437359,210 C290.022765,210 293,221.5 283.342802,232.884477 L212.494278,316.030769 C207.217103,322.078666 204.201575,321.324728 206.463222,313.015016 L221.520431,250 L195.134559,250 C186.841857,250 182.318565,243.952103 184.580211,235.642391 L207.954597,166.357609 Z" />
|
||||||
|
<filter
|
||||||
|
id="deepin-defender512-i"
|
||||||
|
width="130.5%"
|
||||||
|
height="119%"
|
||||||
|
x="-15.3%"
|
||||||
|
y="-4.8%"
|
||||||
|
filterUnits="objectBoundingBox">
|
||||||
|
<feOffset
|
||||||
|
dy="8"
|
||||||
|
in="SourceAlpha"
|
||||||
|
result="shadowOffsetOuter1"
|
||||||
|
id="feOffset53" />
|
||||||
|
<feGaussianBlur
|
||||||
|
in="shadowOffsetOuter1"
|
||||||
|
result="shadowBlurOuter1"
|
||||||
|
stdDeviation="4"
|
||||||
|
id="feGaussianBlur55" />
|
||||||
|
<feColorMatrix
|
||||||
|
in="shadowBlurOuter1"
|
||||||
|
values="0 0 0 0 0 0 0 0 0 0.505882353 0 0 0 0 1 0 0 0 0.3 0"
|
||||||
|
id="feColorMatrix57" />
|
||||||
|
</filter>
|
||||||
|
<style
|
||||||
|
type="text/css"
|
||||||
|
id="style877" />
|
||||||
|
<filter
|
||||||
|
height="1.0683196"
|
||||||
|
y="-0.034159799"
|
||||||
|
width="1.0704326"
|
||||||
|
x="-0.035216289"
|
||||||
|
id="filter1746"
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<feGaussianBlur
|
||||||
|
id="feGaussianBlur1748"
|
||||||
|
stdDeviation="14.574848"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
</filter>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient930"
|
||||||
|
id="linearGradient924"
|
||||||
|
x1="245.94148"
|
||||||
|
y1="237.83229"
|
||||||
|
x2="247.15376"
|
||||||
|
y2="1004.5101"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
</defs>
|
||||||
|
<rect
|
||||||
|
style="fill:url(#deepin-defender512-b);fill-rule:evenodd;stroke:url(#deepin-defender512-c);filter:url(#deepin-defender512-a);fill-opacity:1"
|
||||||
|
id="rect62"
|
||||||
|
rx="228"
|
||||||
|
stroke-width="16"
|
||||||
|
stroke-linejoin="square"
|
||||||
|
stroke="url(#deepin-defender512-c)"
|
||||||
|
fill="url(#deepin-defender512-b)"
|
||||||
|
y="28"
|
||||||
|
x="28"
|
||||||
|
height="456"
|
||||||
|
width="456" />
|
||||||
|
<g
|
||||||
|
id="g894-8"
|
||||||
|
transform="matrix(0.32883731,0,0,0.32883731,85.946576,83.181146)"
|
||||||
|
style="opacity:0.560839;fill:#000000;fill-opacity:0.5;filter:url(#filter1746)">
|
||||||
|
<path
|
||||||
|
id="path881-4"
|
||||||
|
p-id="1838"
|
||||||
|
fill="#ffffff"
|
||||||
|
d="m 327.68,344.74667 c 13.65333,0 30.72,-10.24 54.61333,-20.48 23.89334,-10.24 51.2,-27.30667 75.09334,-30.72 C 460.8,337.92 481.28,413.01333 525.65333,413.01333 c 44.37334,0 61.44,-75.09333 68.26667,-116.05333 23.89333,3.41333 47.78667,20.48 68.26667,30.72 20.48,10.24 34.13333,20.48 47.78666,20.48 10.24,0 13.65334,-3.41333 17.06667,-6.82667 13.65333,-13.65333 10.24,-40.96 0,-64.85333 -13.65333,-30.72 -58.02667,-98.98667 -194.56,-102.4 6.82667,-85.333333 81.92,-139.946667 150.18667,-139.946667 10.24,0 17.06666,-6.826667 17.06666,-17.066666 C 699.73333,6.826668 692.90667,0 682.66667,0 597.33333,0 505.17333,68.266667 494.93333,170.66667 c -133.12,6.82666 -177.49333,61.44 -191.14666,95.57333 -10.24,27.30667 -6.82667,58.02667 3.41333,71.68 3.41333,0 10.24,6.82667 20.48,6.82667 z"
|
||||||
|
style="fill:#000000;fill-opacity:0.5" />
|
||||||
|
<path
|
||||||
|
id="path883-8"
|
||||||
|
p-id="1839"
|
||||||
|
fill="#ffffff"
|
||||||
|
d="m 785.06667,249.17333 c -6.82667,-3.41333 -13.65334,-3.41333 -20.48,0 -6.82667,3.41334 -6.82667,10.24 -6.82667,17.06667 13.65333,37.54667 6.82667,71.68 -10.24,92.16 -10.24,10.24 -27.30667,17.06667 -40.96,17.06667 -23.89333,0 -40.96,-10.24 -64.85333,-23.89334 L 638.29333,348.16 c -3.41333,-3.41333 -10.24,-3.41333 -13.65333,0 -3.41333,3.41333 -10.24,6.82667 -10.24,10.24 -13.65333,37.54667 -37.54667,85.33333 -88.74667,85.33333 -54.61333,0 -78.50666,-54.61333 -88.74666,-88.74666 0,-3.41334 -3.41334,-10.24 -10.24,-10.24 -3.41334,-3.41334 -10.24,-3.41334 -13.65334,0 L 399.36,351.57333 c -27.30667,13.65334 -47.78667,23.89334 -71.68,23.89334 -17.06667,0 -30.72,-6.82667 -44.37333,-17.06667 C 266.24,341.33333 259.41333,310.61333 266.24,276.48 c 0,-6.82667 0,-13.65333 -6.82667,-17.06667 C 252.58667,256 245.76,256 238.93333,259.41333 170.66667,303.78667 13.653333,426.66667 13.653333,600.74667 17.066667,819.2 259.41333,1024 529.06667,1024 788.48,1024 1006.9333,829.44 1006.9333,597.33333 c 0,-163.84 -116.0533,-286.72 -221.86663,-348.16 z m -256,706.56 c -228.69334,0 -443.733336,-174.08 -443.733337,-358.4 0,-10.24 6.826667,-17.06666 17.066667,-17.06666 10.24,0 17.06667,6.82666 17.06667,17.06666 0,167.25334 197.97333,324.26667 409.6,324.26667 10.24,0 17.06666,6.82667 17.06666,17.06667 0,10.24 -6.82666,17.06666 -17.06666,17.06666 z"
|
||||||
|
style="fill:#000000;fill-opacity:0.5" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g908"
|
||||||
|
style="fill-opacity:1;fill:url(#linearGradient924)">
|
||||||
|
<g
|
||||||
|
id="g894"
|
||||||
|
transform="matrix(0.32883731,0,0,0.32883731,85.946576,77.181146)"
|
||||||
|
style="fill:url(#linearGradient924);fill-opacity:1.0">
|
||||||
|
<path
|
||||||
|
id="path881"
|
||||||
|
p-id="1838"
|
||||||
|
fill="#ffffff"
|
||||||
|
d="m 327.68,344.74667 c 13.65333,0 30.72,-10.24 54.61333,-20.48 23.89334,-10.24 51.2,-27.30667 75.09334,-30.72 C 460.8,337.92 481.28,413.01333 525.65333,413.01333 c 44.37334,0 61.44,-75.09333 68.26667,-116.05333 23.89333,3.41333 47.78667,20.48 68.26667,30.72 20.48,10.24 34.13333,20.48 47.78666,20.48 10.24,0 13.65334,-3.41333 17.06667,-6.82667 13.65333,-13.65333 10.24,-40.96 0,-64.85333 -13.65333,-30.72 -58.02667,-98.98667 -194.56,-102.4 6.82667,-85.333333 81.92,-139.946667 150.18667,-139.946667 10.24,0 17.06666,-6.826667 17.06666,-17.066666 C 699.73333,6.826668 692.90667,0 682.66667,0 597.33333,0 505.17333,68.266667 494.93333,170.66667 c -133.12,6.82666 -177.49333,61.44 -191.14666,95.57333 -10.24,27.30667 -6.82667,58.02667 3.41333,71.68 3.41333,0 10.24,6.82667 20.48,6.82667 z"
|
||||||
|
style="fill:url(#linearGradient924);fill-opacity:1.0" />
|
||||||
|
<path
|
||||||
|
id="path883"
|
||||||
|
p-id="1839"
|
||||||
|
fill="#ffffff"
|
||||||
|
d="m 785.06667,249.17333 c -6.82667,-3.41333 -13.65334,-3.41333 -20.48,0 -6.82667,3.41334 -6.82667,10.24 -6.82667,17.06667 13.65333,37.54667 6.82667,71.68 -10.24,92.16 -10.24,10.24 -27.30667,17.06667 -40.96,17.06667 -23.89333,0 -40.96,-10.24 -64.85333,-23.89334 L 638.29333,348.16 c -3.41333,-3.41333 -10.24,-3.41333 -13.65333,0 -3.41333,3.41333 -10.24,6.82667 -10.24,10.24 -13.65333,37.54667 -37.54667,85.33333 -88.74667,85.33333 -54.61333,0 -78.50666,-54.61333 -88.74666,-88.74666 0,-3.41334 -3.41334,-10.24 -10.24,-10.24 -3.41334,-3.41334 -10.24,-3.41334 -13.65334,0 L 399.36,351.57333 c -27.30667,13.65334 -47.78667,23.89334 -71.68,23.89334 -17.06667,0 -30.72,-6.82667 -44.37333,-17.06667 C 266.24,341.33333 259.41333,310.61333 266.24,276.48 c 0,-6.82667 0,-13.65333 -6.82667,-17.06667 C 252.58667,256 245.76,256 238.93333,259.41333 170.66667,303.78667 13.653333,426.66667 13.653333,600.74667 17.066667,819.2 259.41333,1024 529.06667,1024 788.48,1024 1006.9333,829.44 1006.9333,597.33333 c 0,-163.84 -116.0533,-286.72 -221.86663,-348.16 z m -256,706.56 c -228.69334,0 -443.733336,-174.08 -443.733337,-358.4 0,-10.24 6.826667,-17.06666 17.066667,-17.06666 10.24,0 17.06667,6.82666 17.06667,17.06666 0,167.25334 197.97333,324.26667 409.6,324.26667 10.24,0 17.06666,6.82667 17.06666,17.06667 0,10.24 -6.82666,17.06666 -17.06666,17.06666 z"
|
||||||
|
style="fill:url(#linearGradient924);fill-opacity:1.0" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<rect
|
||||||
|
style="fill:none;fill-rule:evenodd;filter:url(#deepin-defender512-a)"
|
||||||
|
id="rect64"
|
||||||
|
rx="236"
|
||||||
|
stroke-opacity="0.08"
|
||||||
|
stroke="#000000"
|
||||||
|
y="19.5"
|
||||||
|
x="19.5"
|
||||||
|
height="473"
|
||||||
|
width="473" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 17 KiB |
12
build.sh
Executable file
12
build.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
mkdir -p build
|
||||||
|
qmake ./one-tomato.pro -spec linux-g++ CONFIG+=qtquickcompiler -o build/
|
||||||
|
cd build/
|
||||||
|
make
|
||||||
|
cd ..
|
||||||
|
mv build/one-tomato dabao/extract/opt/apps/top.yzzi.tomato/files/
|
||||||
|
rm -rf build
|
||||||
|
sh dabao/dabao.sh
|
||||||
|
mv dabao/build/* outdeb/
|
||||||
|
rm -rf dabao/build
|
||||||
6
dabao/dabao.sh
Executable file
6
dabao/dabao.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
mkdir -p build
|
||||||
|
find extract/opt -type f -print0 |xargs -0 md5sum >md5sums
|
||||||
|
mv md5sums extract/DEBIAN/md5sums
|
||||||
|
dpkg-deb -b extract/ build/
|
||||||
12
dabao/extract/DEBIAN/control
Normal file
12
dabao/extract/DEBIAN/control
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Package: top.yzzi.tomato
|
||||||
|
Version: 1.0.4
|
||||||
|
Architecture: amd64
|
||||||
|
Maintainer: 一只科技菌
|
||||||
|
Installed-Size: 56
|
||||||
|
Depends:
|
||||||
|
Section: unknown
|
||||||
|
Priority: extra
|
||||||
|
Homepage: https://blog.yzzi.top
|
||||||
|
Description:
|
||||||
|
可爱的番茄钟
|
||||||
|
主页: https://blog.yzzi.top
|
||||||
4
dabao/extract/DEBIAN/md5sums
Normal file
4
dabao/extract/DEBIAN/md5sums
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
8613dffe6811441b459c27bfa2c2f419 extract/opt/apps/top.yzzi.tomato/entries/applications/top.yzzi.tomato.desktop
|
||||||
|
8b73954c58e1df8437e2560007e364c6 extract/opt/apps/top.yzzi.tomato/entries/icons/top.yzzi.tomato.svg
|
||||||
|
52bca8cd94c6a9d8a8efc994d8de9e1a extract/opt/apps/top.yzzi.tomato/files/one-tomato
|
||||||
|
94c821682f8d133840dddc9b99776149 extract/opt/apps/top.yzzi.tomato/info
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Categories=Office;
|
||||||
|
Comment=OneTomato
|
||||||
|
Comment[zh_CN]=一只番茄
|
||||||
|
Comment[zh_TW]=壹只柑仔蜜
|
||||||
|
Exec=/opt/apps/top.yzzi.tomato/files/one-tomato
|
||||||
|
Icon=top.yzzi.tomato
|
||||||
|
Name=OneTomato
|
||||||
|
Name[zh_CN]=一只番茄
|
||||||
|
Name[zh_TW]=壹只柑仔蜜
|
||||||
|
StartupNotify=true
|
||||||
|
StartupWMClass=OneCuteR
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Version=1.0.4
|
||||||
|
X-Deepin-Vendor=user-custom
|
||||||
@@ -0,0 +1,445 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
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:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="512"
|
||||||
|
height="512"
|
||||||
|
viewBox="0 0 512 512"
|
||||||
|
version="1.1"
|
||||||
|
id="svg88"
|
||||||
|
sodipodi:docname="deepin-defender.svg"
|
||||||
|
inkscape:version="1.0 (4035a4fb49, 2020-05-01)">
|
||||||
|
<metadata
|
||||||
|
id="metadata92">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<sodipodi:namedview
|
||||||
|
inkscape:document-rotation="0"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1842"
|
||||||
|
inkscape:window-height="908"
|
||||||
|
id="namedview90"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="1.1946238"
|
||||||
|
inkscape:cx="476.31923"
|
||||||
|
inkscape:cy="230.43596"
|
||||||
|
inkscape:window-x="16"
|
||||||
|
inkscape:window-y="15"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="svg88" />
|
||||||
|
<defs
|
||||||
|
id="defs60">
|
||||||
|
<linearGradient
|
||||||
|
gradientTransform="translate(20,20)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="457.17184"
|
||||||
|
y1="15.202216"
|
||||||
|
x2="230.47714"
|
||||||
|
x1="231.18619"
|
||||||
|
id="linearGradient930"
|
||||||
|
spreadMethod="pad">
|
||||||
|
<stop
|
||||||
|
id="stop926"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
offset="0%"
|
||||||
|
style="stop-color:#fafffb;stop-opacity:1" />
|
||||||
|
<stop
|
||||||
|
id="stop928"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
offset="100%"
|
||||||
|
style="stop-color:#fcd3d3;stop-opacity:1" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="linearGradient1764"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#fee7e8;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop1760" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#f7cbca;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop1762" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="linearGradient1758"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#fee7e8;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop1754" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#f7ff9e;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop1756" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="linearGradient1209"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#fffff8;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop1205" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop1207" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="linearGradient1203"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop1199" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#f78e90;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop1201" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
gradientTransform="translate(20,20)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="457.17184"
|
||||||
|
y1="15.202216"
|
||||||
|
x2="230.47714"
|
||||||
|
x1="231.18619"
|
||||||
|
id="linearGradient908"
|
||||||
|
spreadMethod="pad">
|
||||||
|
<stop
|
||||||
|
id="stop904"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
offset="0%"
|
||||||
|
style="stop-color:#fee7e8;stop-opacity:1" />
|
||||||
|
<stop
|
||||||
|
id="stop906"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
offset="100%"
|
||||||
|
style="stop-color:#f78e90;stop-opacity:1" />
|
||||||
|
</linearGradient>
|
||||||
|
<filter
|
||||||
|
id="deepin-defender512-a"
|
||||||
|
width="123.3%"
|
||||||
|
height="123.3%"
|
||||||
|
x="-11.7%"
|
||||||
|
y="-11.7%"
|
||||||
|
filterUnits="objectBoundingBox">
|
||||||
|
<feOffset
|
||||||
|
dy="8"
|
||||||
|
in="SourceAlpha"
|
||||||
|
result="shadowOffsetOuter1"
|
||||||
|
id="feOffset2" />
|
||||||
|
<feGaussianBlur
|
||||||
|
in="shadowOffsetOuter1"
|
||||||
|
result="shadowBlurOuter1"
|
||||||
|
stdDeviation="10"
|
||||||
|
id="feGaussianBlur4" />
|
||||||
|
<feComposite
|
||||||
|
in="shadowBlurOuter1"
|
||||||
|
in2="SourceAlpha"
|
||||||
|
operator="out"
|
||||||
|
result="shadowBlurOuter1"
|
||||||
|
id="feComposite6" />
|
||||||
|
<feColorMatrix
|
||||||
|
in="shadowBlurOuter1"
|
||||||
|
result="shadowMatrixOuter1"
|
||||||
|
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"
|
||||||
|
id="feColorMatrix8" />
|
||||||
|
<feMerge
|
||||||
|
id="feMerge14">
|
||||||
|
<feMergeNode
|
||||||
|
in="shadowMatrixOuter1"
|
||||||
|
id="feMergeNode10" />
|
||||||
|
<feMergeNode
|
||||||
|
in="SourceGraphic"
|
||||||
|
id="feMergeNode12" />
|
||||||
|
</feMerge>
|
||||||
|
</filter>
|
||||||
|
<linearGradient
|
||||||
|
spreadMethod="pad"
|
||||||
|
id="deepin-defender512-b"
|
||||||
|
x1="231.18619"
|
||||||
|
x2="230.47714"
|
||||||
|
y1="15.202216"
|
||||||
|
y2="457.17184"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)"
|
||||||
|
xlink:href="#deepin-defender512-h">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#fad0c4;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#44B0FB"
|
||||||
|
id="stop17" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#f78e90;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0074FF"
|
||||||
|
id="stop19" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="deepin-defender512-c"
|
||||||
|
x1="236"
|
||||||
|
x2="236"
|
||||||
|
y1="0"
|
||||||
|
y2="472"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(20,20)">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ffffff;stop-opacity:1"
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#FFF"
|
||||||
|
id="stop22" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ff9a9e;stop-opacity:1"
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#60B8E5"
|
||||||
|
id="stop24" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
id="deepin-defender512-d"
|
||||||
|
cx="240.76081"
|
||||||
|
cy="236"
|
||||||
|
r="227.86718"
|
||||||
|
fx="240.76081"
|
||||||
|
fy="236"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(117.73447,18.521513)">
|
||||||
|
<stop
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#FFF"
|
||||||
|
id="stop27" />
|
||||||
|
<stop
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#3AC3FF"
|
||||||
|
stop-opacity=".346"
|
||||||
|
id="stop29" />
|
||||||
|
</radialGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="deepin-defender512-e"
|
||||||
|
x1="287.36972"
|
||||||
|
x2="390.20634"
|
||||||
|
y1="72.33697"
|
||||||
|
y2="83.625788"
|
||||||
|
gradientTransform="matrix(0.90888747,0,0,1.1002462,20,20)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#5BE9FF"
|
||||||
|
id="stop32" />
|
||||||
|
<stop
|
||||||
|
offset="4.362%"
|
||||||
|
stop-color="#5FE2FF"
|
||||||
|
stop-opacity=".936"
|
||||||
|
id="stop34" />
|
||||||
|
<stop
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#0065FA"
|
||||||
|
stop-opacity="0"
|
||||||
|
id="stop36" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="deepin-defender512-h"
|
||||||
|
x1="245.16035"
|
||||||
|
x2="250.39036"
|
||||||
|
y1="91.806526"
|
||||||
|
y2="375.42776"
|
||||||
|
gradientTransform="scale(0.96263527,1.038815)"
|
||||||
|
gradientUnits="userSpaceOnUse">
|
||||||
|
<stop
|
||||||
|
offset="0%"
|
||||||
|
stop-color="#FFF"
|
||||||
|
id="stop39" />
|
||||||
|
<stop
|
||||||
|
offset="100%"
|
||||||
|
stop-color="#9CD8F8"
|
||||||
|
id="stop41" />
|
||||||
|
</linearGradient>
|
||||||
|
<path
|
||||||
|
id="deepin-defender512-g"
|
||||||
|
d="M366.002098,126.782834 L243.232391,91.3122892 C237.937267,89.4433966 232.894141,89.6859416 228.768398,91.3122892 L105.998241,126.782834 C102.108267,128.17155 99.3259151,131.593535 98.7799933,135.65516 C98.5054546,137.698256 92.2063935,186.345744 105.084464,241.943065 C112.737285,274.979672 125.613552,303.58436 143.358485,326.963384 C165.322927,355.901291 194.684585,376.722202 230.650498,388.887424 C233.631654,390.084516 236.890955,390.632141 241.347586,388.887424 C277.313499,376.722649 306.677411,355.901291 328.641854,326.963384 C346.384983,303.58436 359.263053,274.979672 366.915874,241.943065 C379.794396,186.345745 373.493531,137.698257 373.220345,135.65516 C372.674423,131.593088 369.890268,128.17155 366.002098,126.782834 Z" />
|
||||||
|
<filter
|
||||||
|
id="deepin-defender512-f"
|
||||||
|
width="126.6%"
|
||||||
|
height="124.7%"
|
||||||
|
x="-13.3%"
|
||||||
|
y="-7.7%"
|
||||||
|
filterUnits="objectBoundingBox">
|
||||||
|
<feOffset
|
||||||
|
dy="14"
|
||||||
|
in="SourceAlpha"
|
||||||
|
result="shadowOffsetOuter1"
|
||||||
|
id="feOffset45" />
|
||||||
|
<feGaussianBlur
|
||||||
|
in="shadowOffsetOuter1"
|
||||||
|
result="shadowBlurOuter1"
|
||||||
|
stdDeviation="10"
|
||||||
|
id="feGaussianBlur47" />
|
||||||
|
<feColorMatrix
|
||||||
|
in="shadowBlurOuter1"
|
||||||
|
values="0 0 0 0 0 0 0 0 0 0.290980179 0 0 0 0 0.5330899 0 0 0 0.611778846 0"
|
||||||
|
id="feColorMatrix49" />
|
||||||
|
</filter>
|
||||||
|
<path
|
||||||
|
id="deepin-defender512-j"
|
||||||
|
d="M207.954597,166.357609 C210.216243,158.047897 219.262828,152 227.55553,152 L250.171992,152 C258.464694,152 262.234104,158.047897 259.218576,165.603671 L241.020431,210 L273.437359,210 C290.022765,210 293,221.5 283.342802,232.884477 L212.494278,316.030769 C207.217103,322.078666 204.201575,321.324728 206.463222,313.015016 L221.520431,250 L195.134559,250 C186.841857,250 182.318565,243.952103 184.580211,235.642391 L207.954597,166.357609 Z" />
|
||||||
|
<filter
|
||||||
|
id="deepin-defender512-i"
|
||||||
|
width="130.5%"
|
||||||
|
height="119%"
|
||||||
|
x="-15.3%"
|
||||||
|
y="-4.8%"
|
||||||
|
filterUnits="objectBoundingBox">
|
||||||
|
<feOffset
|
||||||
|
dy="8"
|
||||||
|
in="SourceAlpha"
|
||||||
|
result="shadowOffsetOuter1"
|
||||||
|
id="feOffset53" />
|
||||||
|
<feGaussianBlur
|
||||||
|
in="shadowOffsetOuter1"
|
||||||
|
result="shadowBlurOuter1"
|
||||||
|
stdDeviation="4"
|
||||||
|
id="feGaussianBlur55" />
|
||||||
|
<feColorMatrix
|
||||||
|
in="shadowBlurOuter1"
|
||||||
|
values="0 0 0 0 0 0 0 0 0 0.505882353 0 0 0 0 1 0 0 0 0.3 0"
|
||||||
|
id="feColorMatrix57" />
|
||||||
|
</filter>
|
||||||
|
<style
|
||||||
|
type="text/css"
|
||||||
|
id="style877" />
|
||||||
|
<filter
|
||||||
|
height="1.0683196"
|
||||||
|
y="-0.034159799"
|
||||||
|
width="1.0704326"
|
||||||
|
x="-0.035216289"
|
||||||
|
id="filter1746"
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<feGaussianBlur
|
||||||
|
id="feGaussianBlur1748"
|
||||||
|
stdDeviation="14.574848"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
</filter>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient930"
|
||||||
|
id="linearGradient924"
|
||||||
|
x1="245.94148"
|
||||||
|
y1="237.83229"
|
||||||
|
x2="247.15376"
|
||||||
|
y2="1004.5101"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
</defs>
|
||||||
|
<rect
|
||||||
|
style="fill:url(#deepin-defender512-b);fill-rule:evenodd;stroke:url(#deepin-defender512-c);filter:url(#deepin-defender512-a);fill-opacity:1"
|
||||||
|
id="rect62"
|
||||||
|
rx="228"
|
||||||
|
stroke-width="16"
|
||||||
|
stroke-linejoin="square"
|
||||||
|
stroke="url(#deepin-defender512-c)"
|
||||||
|
fill="url(#deepin-defender512-b)"
|
||||||
|
y="28"
|
||||||
|
x="28"
|
||||||
|
height="456"
|
||||||
|
width="456" />
|
||||||
|
<g
|
||||||
|
id="g894-8"
|
||||||
|
transform="matrix(0.32883731,0,0,0.32883731,85.946576,83.181146)"
|
||||||
|
style="opacity:0.560839;fill:#000000;fill-opacity:0.5;filter:url(#filter1746)">
|
||||||
|
<path
|
||||||
|
id="path881-4"
|
||||||
|
p-id="1838"
|
||||||
|
fill="#ffffff"
|
||||||
|
d="m 327.68,344.74667 c 13.65333,0 30.72,-10.24 54.61333,-20.48 23.89334,-10.24 51.2,-27.30667 75.09334,-30.72 C 460.8,337.92 481.28,413.01333 525.65333,413.01333 c 44.37334,0 61.44,-75.09333 68.26667,-116.05333 23.89333,3.41333 47.78667,20.48 68.26667,30.72 20.48,10.24 34.13333,20.48 47.78666,20.48 10.24,0 13.65334,-3.41333 17.06667,-6.82667 13.65333,-13.65333 10.24,-40.96 0,-64.85333 -13.65333,-30.72 -58.02667,-98.98667 -194.56,-102.4 6.82667,-85.333333 81.92,-139.946667 150.18667,-139.946667 10.24,0 17.06666,-6.826667 17.06666,-17.066666 C 699.73333,6.826668 692.90667,0 682.66667,0 597.33333,0 505.17333,68.266667 494.93333,170.66667 c -133.12,6.82666 -177.49333,61.44 -191.14666,95.57333 -10.24,27.30667 -6.82667,58.02667 3.41333,71.68 3.41333,0 10.24,6.82667 20.48,6.82667 z"
|
||||||
|
style="fill:#000000;fill-opacity:0.5" />
|
||||||
|
<path
|
||||||
|
id="path883-8"
|
||||||
|
p-id="1839"
|
||||||
|
fill="#ffffff"
|
||||||
|
d="m 785.06667,249.17333 c -6.82667,-3.41333 -13.65334,-3.41333 -20.48,0 -6.82667,3.41334 -6.82667,10.24 -6.82667,17.06667 13.65333,37.54667 6.82667,71.68 -10.24,92.16 -10.24,10.24 -27.30667,17.06667 -40.96,17.06667 -23.89333,0 -40.96,-10.24 -64.85333,-23.89334 L 638.29333,348.16 c -3.41333,-3.41333 -10.24,-3.41333 -13.65333,0 -3.41333,3.41333 -10.24,6.82667 -10.24,10.24 -13.65333,37.54667 -37.54667,85.33333 -88.74667,85.33333 -54.61333,0 -78.50666,-54.61333 -88.74666,-88.74666 0,-3.41334 -3.41334,-10.24 -10.24,-10.24 -3.41334,-3.41334 -10.24,-3.41334 -13.65334,0 L 399.36,351.57333 c -27.30667,13.65334 -47.78667,23.89334 -71.68,23.89334 -17.06667,0 -30.72,-6.82667 -44.37333,-17.06667 C 266.24,341.33333 259.41333,310.61333 266.24,276.48 c 0,-6.82667 0,-13.65333 -6.82667,-17.06667 C 252.58667,256 245.76,256 238.93333,259.41333 170.66667,303.78667 13.653333,426.66667 13.653333,600.74667 17.066667,819.2 259.41333,1024 529.06667,1024 788.48,1024 1006.9333,829.44 1006.9333,597.33333 c 0,-163.84 -116.0533,-286.72 -221.86663,-348.16 z m -256,706.56 c -228.69334,0 -443.733336,-174.08 -443.733337,-358.4 0,-10.24 6.826667,-17.06666 17.066667,-17.06666 10.24,0 17.06667,6.82666 17.06667,17.06666 0,167.25334 197.97333,324.26667 409.6,324.26667 10.24,0 17.06666,6.82667 17.06666,17.06667 0,10.24 -6.82666,17.06666 -17.06666,17.06666 z"
|
||||||
|
style="fill:#000000;fill-opacity:0.5" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g908"
|
||||||
|
style="fill-opacity:1;fill:url(#linearGradient924)">
|
||||||
|
<g
|
||||||
|
id="g894"
|
||||||
|
transform="matrix(0.32883731,0,0,0.32883731,85.946576,77.181146)"
|
||||||
|
style="fill:url(#linearGradient924);fill-opacity:1.0">
|
||||||
|
<path
|
||||||
|
id="path881"
|
||||||
|
p-id="1838"
|
||||||
|
fill="#ffffff"
|
||||||
|
d="m 327.68,344.74667 c 13.65333,0 30.72,-10.24 54.61333,-20.48 23.89334,-10.24 51.2,-27.30667 75.09334,-30.72 C 460.8,337.92 481.28,413.01333 525.65333,413.01333 c 44.37334,0 61.44,-75.09333 68.26667,-116.05333 23.89333,3.41333 47.78667,20.48 68.26667,30.72 20.48,10.24 34.13333,20.48 47.78666,20.48 10.24,0 13.65334,-3.41333 17.06667,-6.82667 13.65333,-13.65333 10.24,-40.96 0,-64.85333 -13.65333,-30.72 -58.02667,-98.98667 -194.56,-102.4 6.82667,-85.333333 81.92,-139.946667 150.18667,-139.946667 10.24,0 17.06666,-6.826667 17.06666,-17.066666 C 699.73333,6.826668 692.90667,0 682.66667,0 597.33333,0 505.17333,68.266667 494.93333,170.66667 c -133.12,6.82666 -177.49333,61.44 -191.14666,95.57333 -10.24,27.30667 -6.82667,58.02667 3.41333,71.68 3.41333,0 10.24,6.82667 20.48,6.82667 z"
|
||||||
|
style="fill:url(#linearGradient924);fill-opacity:1.0" />
|
||||||
|
<path
|
||||||
|
id="path883"
|
||||||
|
p-id="1839"
|
||||||
|
fill="#ffffff"
|
||||||
|
d="m 785.06667,249.17333 c -6.82667,-3.41333 -13.65334,-3.41333 -20.48,0 -6.82667,3.41334 -6.82667,10.24 -6.82667,17.06667 13.65333,37.54667 6.82667,71.68 -10.24,92.16 -10.24,10.24 -27.30667,17.06667 -40.96,17.06667 -23.89333,0 -40.96,-10.24 -64.85333,-23.89334 L 638.29333,348.16 c -3.41333,-3.41333 -10.24,-3.41333 -13.65333,0 -3.41333,3.41333 -10.24,6.82667 -10.24,10.24 -13.65333,37.54667 -37.54667,85.33333 -88.74667,85.33333 -54.61333,0 -78.50666,-54.61333 -88.74666,-88.74666 0,-3.41334 -3.41334,-10.24 -10.24,-10.24 -3.41334,-3.41334 -10.24,-3.41334 -13.65334,0 L 399.36,351.57333 c -27.30667,13.65334 -47.78667,23.89334 -71.68,23.89334 -17.06667,0 -30.72,-6.82667 -44.37333,-17.06667 C 266.24,341.33333 259.41333,310.61333 266.24,276.48 c 0,-6.82667 0,-13.65333 -6.82667,-17.06667 C 252.58667,256 245.76,256 238.93333,259.41333 170.66667,303.78667 13.653333,426.66667 13.653333,600.74667 17.066667,819.2 259.41333,1024 529.06667,1024 788.48,1024 1006.9333,829.44 1006.9333,597.33333 c 0,-163.84 -116.0533,-286.72 -221.86663,-348.16 z m -256,706.56 c -228.69334,0 -443.733336,-174.08 -443.733337,-358.4 0,-10.24 6.826667,-17.06666 17.066667,-17.06666 10.24,0 17.06667,6.82666 17.06667,17.06666 0,167.25334 197.97333,324.26667 409.6,324.26667 10.24,0 17.06666,6.82667 17.06666,17.06667 0,10.24 -6.82666,17.06666 -17.06666,17.06666 z"
|
||||||
|
style="fill:url(#linearGradient924);fill-opacity:1.0" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<rect
|
||||||
|
style="fill:none;fill-rule:evenodd;filter:url(#deepin-defender512-a)"
|
||||||
|
id="rect64"
|
||||||
|
rx="236"
|
||||||
|
stroke-opacity="0.08"
|
||||||
|
stroke="#000000"
|
||||||
|
y="19.5"
|
||||||
|
x="19.5"
|
||||||
|
height="473"
|
||||||
|
width="473" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 17 KiB |
BIN
dabao/extract/opt/apps/top.yzzi.tomato/files/one-tomato
Executable file
BIN
dabao/extract/opt/apps/top.yzzi.tomato/files/one-tomato
Executable file
Binary file not shown.
17
dabao/extract/opt/apps/top.yzzi.tomato/info
Normal file
17
dabao/extract/opt/apps/top.yzzi.tomato/info
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"appid": "top.yzzi.tomato",
|
||||||
|
"name": "OneTomato",
|
||||||
|
"version": "1.0.4",
|
||||||
|
"arch": ["amd64"],
|
||||||
|
"permissions": {
|
||||||
|
"autostart": false,
|
||||||
|
"notification": false,
|
||||||
|
"trayicon": false,
|
||||||
|
"clipboard": false,
|
||||||
|
"account": false,
|
||||||
|
"bluetooth": false,
|
||||||
|
"camera": false,
|
||||||
|
"audio_record": false,
|
||||||
|
"installed_apps": false
|
||||||
|
}
|
||||||
|
}
|
||||||
32
main.cpp
Normal file
32
main.cpp
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
#include <DApplication>
|
||||||
|
#include <QDesktopWidget>
|
||||||
|
#include <DWidgetUtil> //Dtk::Widget::moveToCenter(&w); 要调用它,就得引用DWidgetUtil
|
||||||
|
#include <widget.h>
|
||||||
|
|
||||||
|
DWIDGET_USE_NAMESPACE
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
DApplication::loadDXcbPlugin(); //让bar处在标题栏中
|
||||||
|
DApplication a(argc, argv);
|
||||||
|
|
||||||
|
a.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
a.loadTranslator();
|
||||||
|
a.setOrganizationName("deepin");
|
||||||
|
a.setApplicationVersion(DApplication::buildVersion("1.0.3"));
|
||||||
|
a.setApplicationAcknowledgementPage("https://blog.yzzi.top");
|
||||||
|
a.setProductIcon(QIcon(":/icon/icon/top.yzzi.tomato.svg")); //设置Logo
|
||||||
|
a.setProductName("一只番茄");
|
||||||
|
a.setApplicationName("一只番茄"); //只有在这儿修改窗口标题才有效
|
||||||
|
a.setApplicationDescription("感谢deepin社区 @gbwater 提供的帮助");
|
||||||
|
|
||||||
|
|
||||||
|
Widget w;
|
||||||
|
QDesktopWidget *s=DApplication::desktop();
|
||||||
|
w.show();
|
||||||
|
|
||||||
|
//让打开时界面显示在正中
|
||||||
|
Dtk::Widget::moveToCenter(&w);
|
||||||
|
|
||||||
|
|
||||||
|
return a.exec();
|
||||||
|
}
|
||||||
45
one-tomato.pro
Normal file
45
one-tomato.pro
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
#-------------------------------------------------
|
||||||
|
#
|
||||||
|
# Project created by QtCreator 2019-06-30T12:53:03
|
||||||
|
#
|
||||||
|
#-------------------------------------------------
|
||||||
|
|
||||||
|
QT += core gui
|
||||||
|
QT += multimedia
|
||||||
|
QT += multimediawidgets
|
||||||
|
|
||||||
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
|
TARGET = one-tomato
|
||||||
|
TEMPLATE = app
|
||||||
|
|
||||||
|
# The following define makes your compiler emit warnings if you use
|
||||||
|
# any feature of Qt which as been marked as deprecated (the exact warnings
|
||||||
|
# depend on your compiler). Please consult the documentation of the
|
||||||
|
# deprecated API in order to know how to port your code away from it.
|
||||||
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
|
|
||||||
|
# You can also make your code fail to compile if you use deprecated APIs.
|
||||||
|
# In order to do so, uncomment the following line.
|
||||||
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||||
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
|
|
||||||
|
SOURCES += main.cpp\
|
||||||
|
widget.cpp
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
widget.h
|
||||||
|
|
||||||
|
CONFIG += link_pkgconfig
|
||||||
|
PKGCONFIG += dtkwidget
|
||||||
|
|
||||||
|
CONFIG += c++11
|
||||||
|
|
||||||
|
FORMS += \
|
||||||
|
widget.ui
|
||||||
|
|
||||||
|
RESOURCES += \
|
||||||
|
assets/assets.qrc
|
||||||
|
|
||||||
|
|
||||||
BIN
screenshot/1.png
Normal file
BIN
screenshot/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
BIN
screenshot/2.png
Normal file
BIN
screenshot/2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
BIN
screenshot/3.png
Normal file
BIN
screenshot/3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
172
widget.cpp
Normal file
172
widget.cpp
Normal file
@@ -0,0 +1,172 @@
|
|||||||
|
#include "widget.h"
|
||||||
|
#include "ui_widget.h"
|
||||||
|
#include<QDateTime>
|
||||||
|
#include <QTimer>
|
||||||
|
#include <QMediaPlayer>
|
||||||
|
#include <QMediaPlaylist>
|
||||||
|
#include <sstream>
|
||||||
|
#include <QString>
|
||||||
|
#include <DApplication>
|
||||||
|
#include <QDialog>
|
||||||
|
#include <DInputDialog>
|
||||||
|
using namespace std;
|
||||||
|
QTimer *timer = new QTimer();
|
||||||
|
int a;
|
||||||
|
bool timerswitch;
|
||||||
|
Widget::Widget(DBlurEffectWidget *parent) :
|
||||||
|
DBlurEffectWidget(parent),
|
||||||
|
m_menu(new QMenu),
|
||||||
|
m_5(new QAction("5分钟")),
|
||||||
|
m_15(new QAction("15分钟")),
|
||||||
|
m_25(new QAction("25分钟")),
|
||||||
|
m_35(new QAction("35分钟")),
|
||||||
|
m_45(new QAction("45分钟")),
|
||||||
|
m_set(new QAction("自定义时间")),
|
||||||
|
|
||||||
|
|
||||||
|
ui(new Ui::Widget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
ui->titlebar->setFixedHeight(50);//初始化标题栏
|
||||||
|
ui->titlebar->setBackgroundTransparent(true);//设置标题栏透明
|
||||||
|
ui->titlebar->setIcon(QIcon::fromTheme(":/icon/icon/top.yzzi.tomato.svg"));
|
||||||
|
ui->titlebar->setTitle("");
|
||||||
|
setMaskAlpha(190);
|
||||||
|
ui->titlebar->setMenu(m_menu);
|
||||||
|
mem=ms = 1500+1;//设置初始时间
|
||||||
|
|
||||||
|
m_menu->addMenu(menu_times);//设置菜单
|
||||||
|
menu_times->setTitle(tr("时间"));
|
||||||
|
menu_times->addAction(m_5);
|
||||||
|
menu_times->addAction(m_15);
|
||||||
|
menu_times->addAction(m_25);
|
||||||
|
menu_times->addAction(m_35);
|
||||||
|
menu_times->addAction(m_45);
|
||||||
|
menu_times->addAction(m_set);
|
||||||
|
|
||||||
|
|
||||||
|
timesGroup = new QActionGroup(this);//设置按钮互斥
|
||||||
|
timesGroup->addAction(m_5);
|
||||||
|
timesGroup->addAction(m_15);
|
||||||
|
timesGroup->addAction(m_25);
|
||||||
|
timesGroup->addAction(m_35);
|
||||||
|
timesGroup->addAction(m_45);
|
||||||
|
timesGroup->addAction(m_set);
|
||||||
|
|
||||||
|
m_5->setCheckable(true);
|
||||||
|
m_15->setCheckable(true);
|
||||||
|
m_25->setCheckable(true);
|
||||||
|
m_35->setCheckable(true);
|
||||||
|
m_45->setCheckable(true);
|
||||||
|
m_set->setCheckable(true);
|
||||||
|
m_25->setChecked(true);
|
||||||
|
//in->setParent(this);
|
||||||
|
//设置按钮响应
|
||||||
|
connect(m_5,&QAction::triggered,[=](){mem=ms = 300+1;timer->start(1000);refresh();});
|
||||||
|
connect(m_15,&QAction::triggered,[=](){mem=ms = 900+1;timer->start(1000);refresh();});
|
||||||
|
connect(m_25,&QAction::triggered,[=](){mem=ms = 1500+1;timer->start(1000);refresh();});
|
||||||
|
connect(m_35,&QAction::triggered,[=](){mem=ms = 2100+1;timer->start(1000);refresh();});
|
||||||
|
connect(m_45,&QAction::triggered,[=](){mem=ms = 2700+1;timer->start(1000);refresh();});
|
||||||
|
connect(m_set,&QAction::triggered,[=](){input();});
|
||||||
|
|
||||||
|
|
||||||
|
switchbutton = new DSwitchButton (this);
|
||||||
|
ui->horizontalLayout_2->addWidget(switchbutton);
|
||||||
|
switchbutton->setChecked(false);
|
||||||
|
timerswitch=false;
|
||||||
|
setWindowFlags(windowFlags()&~Qt::WindowMaximizeButtonHint);// 禁止最大化按钮
|
||||||
|
setFixedSize(this->width(),this->height());// 禁止拖动窗口大小
|
||||||
|
connect(switchbutton, SIGNAL(checkedChanged(bool)), this, SLOT(onSBtnSwitchButtonCheckedChanged(bool)));
|
||||||
|
//时间更新
|
||||||
|
timer->start(1000); //每隔1000ms发送timeout的信号
|
||||||
|
connect(timer, SIGNAL(timeout()), this,SLOT(refresh()));
|
||||||
|
refresh();
|
||||||
|
|
||||||
|
|
||||||
|
//音频播放
|
||||||
|
player = new QMediaPlayer;
|
||||||
|
player->setVolume(100);
|
||||||
|
player->setMedia(QUrl("qrc:/audio/ding.wav"));
|
||||||
|
}
|
||||||
|
void Widget::refresh()
|
||||||
|
{
|
||||||
|
ostringstream timeshow;
|
||||||
|
if(timerswitch==true)
|
||||||
|
{
|
||||||
|
if(ms==0) ms=mem;
|
||||||
|
ms-=1;
|
||||||
|
QDateTime tomato_time = QDateTime::fromTime_t(ms);
|
||||||
|
QString textout=tomato_time.toString("mm:ss");
|
||||||
|
ui->time->setText(textout);
|
||||||
|
if(ms==0)
|
||||||
|
{
|
||||||
|
player->play();
|
||||||
|
timer->stop();
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
QDateTime current_time = QDateTime::currentDateTime();
|
||||||
|
QString str=current_time.toString("hh:mm");
|
||||||
|
ui->time->setText(str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
DTitlebar* Widget::getTitlebar()
|
||||||
|
{
|
||||||
|
return ui->titlebar;
|
||||||
|
}
|
||||||
|
Widget::~Widget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
qDebug()<<"exit";
|
||||||
|
DApplication::quit();
|
||||||
|
delete player;
|
||||||
|
delete timer;
|
||||||
|
}
|
||||||
|
void Widget::input()
|
||||||
|
{
|
||||||
|
bool isOK;
|
||||||
|
int i = DInputDialog::getInt(this, "输入时间",
|
||||||
|
"请输入时间(分钟)",
|
||||||
|
mem/60,0,100,1,&isOK);
|
||||||
|
if(isOK)
|
||||||
|
{
|
||||||
|
ms=mem=60*i+1;
|
||||||
|
}
|
||||||
|
switch (mem) {
|
||||||
|
case 300+1:
|
||||||
|
m_5->setChecked(true);
|
||||||
|
break;
|
||||||
|
case 900+1:
|
||||||
|
m_15->setChecked(true);
|
||||||
|
break;
|
||||||
|
case 1500+1:
|
||||||
|
m_25->setChecked(true);
|
||||||
|
break;
|
||||||
|
case 2100+1:
|
||||||
|
m_35->setChecked(true);
|
||||||
|
break;
|
||||||
|
case 2700+1:
|
||||||
|
m_45->setChecked(true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
timer->start(1000);
|
||||||
|
refresh();
|
||||||
|
}
|
||||||
|
void Widget::onSBtnSwitchButtonCheckedChanged(bool ck)
|
||||||
|
{
|
||||||
|
|
||||||
|
if(ck==true)
|
||||||
|
{
|
||||||
|
timerswitch=true;
|
||||||
|
timer->start(1000);
|
||||||
|
/*Widget::player->play();*/
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
timerswitch=false;
|
||||||
|
timer->start(1000);
|
||||||
|
/*Widget::player->stop();*/
|
||||||
|
}
|
||||||
|
player->stop();
|
||||||
|
refresh();
|
||||||
|
|
||||||
|
}
|
||||||
58
widget.h
Normal file
58
widget.h
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
#ifndef WIDGET_H
|
||||||
|
#define WIDGET_H
|
||||||
|
|
||||||
|
#include <dswitchbutton.h>
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QTimer>
|
||||||
|
#include <QMediaPlayer>
|
||||||
|
#include <DBlurEffectWidget>
|
||||||
|
#include <DTitlebar>
|
||||||
|
|
||||||
|
DWIDGET_USE_NAMESPACE
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class Widget;
|
||||||
|
}
|
||||||
|
|
||||||
|
class Widget : public DBlurEffectWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit Widget(DBlurEffectWidget *parent = 0);
|
||||||
|
~Widget();
|
||||||
|
QMediaPlayer *player;
|
||||||
|
QMediaPlaylist *playlist;
|
||||||
|
DTitlebar* getTitlebar();
|
||||||
|
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void onSBtnSwitchButtonCheckedChanged(bool);
|
||||||
|
void refresh();
|
||||||
|
void input();
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::Widget *ui;
|
||||||
|
DSwitchButton * switchbutton;
|
||||||
|
QTimer *timer = new QTimer();
|
||||||
|
int a;
|
||||||
|
bool timerswitch;
|
||||||
|
int ms;
|
||||||
|
int mem;
|
||||||
|
DTitlebar *titlebar;
|
||||||
|
QMenu *m_menu;
|
||||||
|
QActionGroup *timesGroup;
|
||||||
|
QAction *m_5;
|
||||||
|
QAction *m_15;
|
||||||
|
QAction *m_25;
|
||||||
|
QAction *m_35;
|
||||||
|
QAction *m_45;
|
||||||
|
QAction *m_set;
|
||||||
|
|
||||||
|
|
||||||
|
QMenu *menu_times=new QMenu;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // WIDGET_H
|
||||||
134
widget.ui
Normal file
134
widget.ui
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>Widget</class>
|
||||||
|
<widget class="QWidget" name="Widget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>470</width>
|
||||||
|
<height>254</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="layoutWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>471</width>
|
||||||
|
<height>182</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="DTitlebar" name="titlebar" native="true">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="time">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>431</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>72</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>24:33</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="layoutWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>180</y>
|
||||||
|
<width>471</width>
|
||||||
|
<height>54</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2"/>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>DTitlebar</class>
|
||||||
|
<extends>QWidget</extends>
|
||||||
|
<header location="global">dtitlebar.h</header>
|
||||||
|
<container>1</container>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
Reference in New Issue
Block a user