chore: more rpine for server activity widget

This commit is contained in:
ThatOneCalculator 2023-04-26 15:10:33 -07:00
parent 1bab53fed2
commit 2c98d43996
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 10 additions and 10 deletions

View file

@ -3,8 +3,8 @@
<svg :viewBox="`0 0 ${viewBoxX} ${viewBoxY}`"> <svg :viewBox="`0 0 ${viewBoxX} ${viewBoxY}`">
<defs> <defs>
<linearGradient :id="cpuGradientId" x1="0" x2="0" y1="1" y2="0"> <linearGradient :id="cpuGradientId" x1="0" x2="0" y1="1" y2="0">
<stop offset="0%" stop-color="hsl(180, 80%, 70%)"></stop> <stop offset="0%" stop-color="hsl(189, 43%, 73%)"></stop>
<stop offset="100%" stop-color="hsl(0, 80%, 70%)"></stop> <stop offset="100%" stop-color="hsl(343, 76%, 68%)"></stop>
</linearGradient> </linearGradient>
<mask <mask
:id="cpuMaskId" :id="cpuMaskId"
@ -42,8 +42,8 @@
<svg :viewBox="`0 0 ${viewBoxX} ${viewBoxY}`"> <svg :viewBox="`0 0 ${viewBoxX} ${viewBoxY}`">
<defs> <defs>
<linearGradient :id="memGradientId" x1="0" x2="0" y1="1" y2="0"> <linearGradient :id="memGradientId" x1="0" x2="0" y1="1" y2="0">
<stop offset="0%" stop-color="hsl(180, 80%, 70%)"></stop> <stop offset="0%" stop-color="hsl(189, 43%, 73%)"></stop>
<stop offset="100%" stop-color="hsl(0, 80%, 70%)"></stop> <stop offset="100%" stop-color="hsl(343, 76%, 68%)"></stop>
</linearGradient> </linearGradient>
<mask <mask
:id="memMaskId" :id="memMaskId"

View file

@ -3,16 +3,16 @@
<svg :viewBox="`0 0 ${viewBoxX} ${viewBoxY}`"> <svg :viewBox="`0 0 ${viewBoxX} ${viewBoxY}`">
<polygon <polygon
:points="inPolygonPoints" :points="inPolygonPoints"
fill="#94a029" fill="#f6c177"
fill-opacity="0.5" fill-opacity="0.5"
/> />
<polyline <polyline
:points="inPolylinePoints" :points="inPolylinePoints"
fill="none" fill="none"
stroke="#94a029" stroke="#f6c177"
stroke-width="1" stroke-width="1"
/> />
<circle :cx="inHeadX" :cy="inHeadY" r="1.5" fill="#94a029" /> <circle :cx="inHeadX" :cy="inHeadY" r="1.5" fill="#f6c177" />
<text x="1" y="5"> <text x="1" y="5">
NET rx NET rx
<tspan>{{ bytes(inRecent) }}</tspan> <tspan>{{ bytes(inRecent) }}</tspan>
@ -21,16 +21,16 @@
<svg :viewBox="`0 0 ${viewBoxX} ${viewBoxY}`"> <svg :viewBox="`0 0 ${viewBoxX} ${viewBoxY}`">
<polygon <polygon
:points="outPolygonPoints" :points="outPolygonPoints"
fill="#ff9156" fill="#31748f"
fill-opacity="0.5" fill-opacity="0.5"
/> />
<polyline <polyline
:points="outPolylinePoints" :points="outPolylinePoints"
fill="none" fill="none"
stroke="#ff9156" stroke="#31748f"
stroke-width="1" stroke-width="1"
/> />
<circle :cx="outHeadX" :cy="outHeadY" r="1.5" fill="#ff9156" /> <circle :cx="outHeadX" :cy="outHeadY" r="1.5" fill="#31748f" />
<text x="1" y="5"> <text x="1" y="5">
NET tx NET tx
<tspan>{{ bytes(outRecent) }}</tspan> <tspan>{{ bytes(outRecent) }}</tspan>