use custom stopwatch icon

This commit is contained in:
2022-09-11 09:13:40 +02:00
parent 7f6f1578ba
commit 86f3798c46
3 changed files with 20 additions and 13 deletions

View File

@@ -1,12 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
<title>ionicons-v5-g</title>
<line x1="256" y1="232" x2="256" y2="152"
style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/>
<line x1="256" y1="88" x2="256" y2="72"
style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/>
<line x1="132" y1="132" x2="120" y2="120"
style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/>
<circle cx="256" cy="272" r="32" style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px"/>
<path d="M256,96A176,176,0,1,0,432,272,176,176,0,0,0,256,96Z"
style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px"/>
</svg>

Before

Width:  |  Height:  |  Size: 827 B

View File

@@ -0,0 +1,19 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 16 16">
<g transform="translate(0,0)">
<circle cx="8" cy="9" r="6" style="fill:none;stroke:black;"/>
<line x1="8" y1="2.5" x2="8" y2="1" style="fill:none;stroke:black;stroke-linecap:round;"/>
<line x1="7" y1="1" x2="9" y2="1" style="fill:none;stroke:black;stroke-linecap:round;"/>
<line x1="11.65" y1="3.5" x2="12" y2="3" style="fill:none;stroke:black;stroke-linecap:round;"/>
<line x1="11.5" y1="2.2" x2="13" y2="3.2" style="fill:none;stroke:black;stroke-linecap:round;"/>
<line x1="3.75" y1="3" x2="4.2" y2="3.5" style="fill:none;stroke:black;stroke-linecap:round;"/>
<line x1="2.8" y1="3.2" x2="4" y2="2.2" style="fill:none;stroke:black;stroke-linecap:round;"/>
<line x1="8" y1="7.5" x2="8" y2="5" style="fill:none;stroke:black;stroke-linecap:round;"/>
<circle cx="8" cy="9" r="1" style="fill:none;stroke:black;"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 994 B

View File

@@ -9,7 +9,7 @@ class TimeDiffPlugin(PluginBase):
super(TimeDiffPlugin, self).__init__()
self.time_diff_state = False
self.time_diff_action = RAction("", lambda: self._toggle_time_diff(),
icon_file="icons/ionicons/stopwatch-outline.svg", checkable=True)
icon_file="icons/myicons/stopwatch.svg", checkable=True)
self.time_diff_hook = TimeDiffPreProcessLinesHook()
def copy(self):