支持图标跟随主题,改进详情页,加入更好的多线程下载

新的下载会重试一个线程上的错误,一个线程崩溃次数过多会转移到队列里等待重新安排,其他的暂时没写
This commit is contained in:
RigoLigoRLC
2021-11-28 02:11:54 +08:00
parent acf013d8ab
commit 6491b19f6e
17 changed files with 722 additions and 14 deletions

View File

@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="48mm"
height="48mm"
viewBox="0 0 48 48"
version="1.1"
id="svg5"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
sodipodi:docname="night.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:document-units="mm"
showgrid="false"
width="48mm"
inkscape:zoom="3.0296134"
inkscape:cx="89.94547"
inkscape:cy="101.16802"
inkscape:window-width="1852"
inkscape:window-height="1021"
inkscape:window-x="68"
inkscape:window-y="30"
inkscape:window-maximized="1"
inkscape:current-layer="layer2"
showguides="true"
inkscape:guide-bbox="true">
<sodipodi:guide
position="24.364586,23.954072"
orientation="0,-1"
id="guide1317" />
</sodipodi:namedview>
<defs
id="defs2" />
<g
inkscape:label="图层 1"
inkscape:groupmode="layer"
id="layer1">
<path
id="path846"
style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:12;stroke-opacity:0.48333;paint-order:markers stroke fill"
d="M 20.08627,5.4455699 A 19.456798,19.456798 0 0 0 5.1481639,24.360177 19.456798,19.456798 0 0 0 24.604857,43.81687 19.456798,19.456798 0 0 0 42.756719,31.347865 17.271181,17.271181 0 0 1 32.437969,34.778662 17.271181,17.271181 0 0 1 15.166674,17.507366 17.271181,17.271181 0 0 1 20.08627,5.4455699 Z" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="图层 2" />
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

134
resource/icons/daynight.svg Normal file
View File

@@ -0,0 +1,134 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="48"
height="48"
viewBox="0 0 12.7 12.7"
version="1.1"
id="svg5"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
sodipodi:docname="daylight.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:document-units="px"
showgrid="true"
showguides="true"
inkscape:guide-bbox="true"
inkscape:zoom="4"
inkscape:cx="-56.375"
inkscape:cy="30.875"
inkscape:window-width="1852"
inkscape:window-height="1021"
inkscape:window-x="68"
inkscape:window-y="30"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
inkscape:snap-global="false">
<inkscape:grid
type="xygrid"
id="grid9" />
<sodipodi:guide
position="6.35,6.35"
orientation="1,0"
id="guide11" />
<sodipodi:guide
position="6.35,6.35"
orientation="0,1"
id="guide13" />
</sodipodi:namedview>
<defs
id="defs2" />
<g
inkscape:label="图层 1"
inkscape:groupmode="layer"
id="layer1">
<circle
style="fill:#434343;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:17.3175;stroke-linecap:square;stroke-linejoin:round;stroke-dashoffset:45.3543;paint-order:markers stroke fill"
id="path847"
cx="6.3499999"
cy="6.3499999"
r="3.0736487" />
<rect
style="fill:#434343;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:7.96599;stroke-linecap:square;stroke-linejoin:round;stroke-dashoffset:45.3543;paint-order:markers stroke fill"
id="rect2203"
width="0.63115263"
height="2.252275"
x="6.0344238"
y="-12.238637"
ry="0.31557631"
transform="rotate(90)" />
<rect
style="fill:#434343;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:7.96599;stroke-linecap:square;stroke-linejoin:round;stroke-dashoffset:45.3543;paint-order:markers stroke fill"
id="rect2203-3"
width="0.63115263"
height="2.252275"
x="-0.31557623"
y="-14.868893"
ry="0.31557631"
transform="rotate(135)" />
<rect
style="fill:#434343;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:7.96599;stroke-linecap:square;stroke-linejoin:round;stroke-dashoffset:45.3543;paint-order:markers stroke fill"
id="rect2203-6"
width="0.63115263"
height="2.252275"
x="-6.665576"
y="-12.238638"
ry="0.31557631"
transform="scale(-1)" />
<rect
style="fill:#434343;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:7.96599;stroke-linecap:square;stroke-linejoin:round;stroke-dashoffset:45.3543;paint-order:markers stroke fill"
id="rect2203-7"
width="0.63115263"
height="2.252275"
x="-9.2958326"
y="-5.8886371"
ry="0.31557631"
transform="rotate(-135)" />
<rect
style="fill:#434343;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:7.96599;stroke-linecap:square;stroke-linejoin:round;stroke-dashoffset:45.3543;paint-order:markers stroke fill"
id="rect2203-5"
width="0.63115263"
height="2.252275"
x="-6.665576"
y="0.46136269"
ry="0.31557631"
transform="rotate(-90)" />
<rect
style="fill:#434343;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:7.96599;stroke-linecap:square;stroke-linejoin:round;stroke-dashoffset:45.3543;paint-order:markers stroke fill"
id="rect2203-35"
width="0.63115263"
height="2.252275"
x="-0.31557468"
y="3.0916188"
ry="0.31557631"
transform="rotate(-44.999991)" />
<rect
style="fill:#434343;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:7.96599;stroke-linecap:square;stroke-linejoin:round;stroke-dashoffset:45.3543;paint-order:markers stroke fill"
id="rect2203-62"
width="0.63115263"
height="2.252275"
x="6.0344238"
y="0.46136251"
ry="0.31557631" />
<rect
style="fill:#434343;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:7.96599;stroke-linecap:square;stroke-linejoin:round;stroke-dashoffset:45.3543;paint-order:markers stroke fill"
id="rect2203-9"
width="0.63115263"
height="2.252275"
x="8.6646795"
y="-5.8886418"
ry="0.31557631"
transform="rotate(45.000025)" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="48"
height="48"
viewBox="0 0 12.7 12.7"
version="1.1"
id="svg5"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
sodipodi:docname="settings.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:document-units="px"
showgrid="true"
showguides="true"
inkscape:guide-bbox="true"
inkscape:zoom="14.285166"
inkscape:cx="25.095963"
inkscape:cy="22.505864"
inkscape:window-width="1852"
inkscape:window-height="1021"
inkscape:window-x="68"
inkscape:window-y="30"
inkscape:window-maximized="1"
inkscape:current-layer="layer1">
<inkscape:grid
type="xygrid"
id="grid9" />
<sodipodi:guide
position="6.35,6.35"
orientation="1,0"
id="guide11" />
<sodipodi:guide
position="6.35,6.35"
orientation="0,1"
id="guide13" />
</sodipodi:namedview>
<defs
id="defs2" />
<g
inkscape:label="图层 1"
inkscape:groupmode="layer"
id="layer1">
<path
id="path3842"
style="fill:#434343;fill-rule:evenodd;stroke:none;stroke-width:0.343937;stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill;stroke-opacity:1;fill-opacity:1"
d="m 2.4098143,1.9035478 0.7541001,2.0141066 a 4.0110148,4.0110148 0 0 0 -0.5134382,0.888368 l -2.12081888,0.3532617 9.178e-5,2.3814089 2.120632,0.3533485 a 4.0110148,4.0110148 0 0 0 0.5133361,0.8880906 l -0.7537904,2.0140909 2.0620563,1.190336 1.366532,-1.660758 a 4.0110148,4.0110148 0 0 0 0.5114618,0.03528 4.0110148,4.0110148 0 0 0 0.5114047,-0.0351 L 8.2281517,11.986371 10.290186,10.796452 9.5360854,8.7823455 A 4.0110148,4.0110148 0 0 0 10.049524,7.8939774 L 12.170342,7.5407157 12.170251,5.1593068 10.051736,4.8065257 A 4.0110148,4.0110148 0 0 0 9.5372976,3.9154917 L 10.290073,1.9037771 8.2280168,0.71344079 6.8636532,2.3717535 A 4.0110148,4.0110148 0 0 0 6.350023,2.3389153 4.0110148,4.0110148 0 0 0 5.8386182,2.3740101 l -1.36677,-1.66038137 z m 3.014144,2.8425009 A 1.8520833,1.8520833 0 0 1 7.9539511,5.4239583 1.8520833,1.8520833 0 0 1 7.2760416,7.9539511 1.8520833,1.8520833 0 0 1 4.7460487,7.2760416 1.8520833,1.8520833 0 0 1 5.4239583,4.7460487 Z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -12,5 +12,8 @@
<file>icons/clear-input.svg</file>
<file>icons/search-mini.svg</file>
<file>icons/broken-icon.svg</file>
<file>icons/settings.svg</file>
<file>icons/daynight-dark.svg</file>
<file>icons/daynight.svg</file>
</qresource>
</RCC>