Procházet zdrojové kódy

feat(brands): add additional icon and logo images

Due to the fact that the full set of original Tuya icons was copied
into the home-assistant/brands repo, if we do not override them here
they fall back to those ones, not the icon.png.
Jason Rumney před 1 měsícem
rodič
revize
85dc4353a4

+ 118 - 17
custom_components/tuya_local/brand/icon.svg

@@ -1,20 +1,121 @@
-<svg width="512" height="512" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
-  <!-- Main House Frame in Tuya Orange -->
-  <path d="M256 40L60 200V440H452V200L256 40Z" fill="#03A9F4" stroke="#03A9F4" stroke-width="24" stroke-linejoin="round"/>>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   width="512"
+   height="512"
+   viewBox="0 0 512 512"
+   version="1.1"
+   id="svg6"
+   sodipodi:docname="icon.svg"
+   inkscape:export-filename="icon2x.png"
+   inkscape:export-xdpi="96"
+   inkscape:export-ydpi="96"
+   inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
+   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"><defs
+   id="defs6" />
+<sodipodi:namedview
+   id="namedview6"
+   pagecolor="#ffffff"
+   bordercolor="#000000"
+   borderopacity="0.25"
+   inkscape:showpageshadow="2"
+   inkscape:pageopacity="0.0"
+   inkscape:pagecheckerboard="0"
+   inkscape:deskcolor="#d1d1d1"
+   inkscape:zoom="1.1445312"
+   inkscape:cx="256"
+   inkscape:cy="256"
+   inkscape:window-width="1440"
+   inkscape:window-height="830"
+   inkscape:window-x="-6"
+   inkscape:window-y="-6"
+   inkscape:window-maximized="1"
+   inkscape:current-layer="svg6" />
+<!-- Main House Frame in Tuya Orange -->
+<path
+   d="M256 40L60 200V440H452V200L256 40Z"
+   fill="#03A9F4"
+   stroke="#03A9F4"
+   stroke-width="24"
+   stroke-linejoin="round"
+   id="path1" />
+&gt;
   
   
   <!-- Central Connectivity Hub -->
   <!-- Central Connectivity Hub -->
-  <circle cx="256" cy="260" r="45" fill="#FFFFFF" />
-  
-  <!-- Device Connection Lines -->
-  <line x1="256" y1="215" x2="256" y2="120" stroke="#FF6600" stroke-width="12" /> <!-- Top -->
-  <line x1="301" y1="260" x2="390" y2="260" stroke="#FF6600" stroke-width="12" /> <!-- Right -->
-  <line x1="211" y1="260" x2="122" y2="260" stroke="#FF6600" stroke-width="12" /> <!-- Left -->
-  <line x1="256" y1="305" x2="256" y2="330" stroke="#FFFFFF" stroke-width="12" />
-  <!-- Device Nodes -->
-  <circle cx="256" cy="120" r="30" fill="#FF6600" /> <!-- Light/Power icon spot -->
-  <circle cx="390" cy="260" r="30" fill="#FF6600" /> <!-- Sensor icon spot -->
-  <circle cx="122" cy="260" r="30" fill="#FF6600" /> <!-- Remote icon spot -->
-
-  <!-- Typography -->
-  <text x="256" y="400" text-anchor="middle" font-family="sans-serif" font-weight="bold" font-size="60" fill="#FFFFFF">tuya-local</text>
+<circle
+   cx="256"
+   cy="260"
+   r="45"
+   fill="#FFFFFF"
+   id="circle1" />
+<!-- Device Connection Lines -->
+<line
+   x1="256"
+   y1="215"
+   x2="256"
+   y2="120"
+   stroke="#FF6600"
+   stroke-width="12"
+   id="line1" />
+<!-- Top -->
+<line
+   x1="301"
+   y1="260"
+   x2="390"
+   y2="260"
+   stroke="#FF6600"
+   stroke-width="12"
+   id="line2" />
+<!-- Right -->
+<line
+   x1="211"
+   y1="260"
+   x2="122"
+   y2="260"
+   stroke="#FF6600"
+   stroke-width="12"
+   id="line3" />
+<!-- Left -->
+<line
+   x1="256"
+   y1="305"
+   x2="256"
+   y2="330"
+   stroke="#FFFFFF"
+   stroke-width="12"
+   id="line4" />
+<!-- Device Nodes -->
+<circle
+   cx="256"
+   cy="120"
+   r="30"
+   fill="#FF6600"
+   id="circle4" />
+<!-- Light/Power icon spot -->
+<circle
+   cx="390"
+   cy="260"
+   r="30"
+   fill="#FF6600"
+   id="circle5" />
+<!-- Sensor icon spot -->
+<circle
+   cx="122"
+   cy="260"
+   r="30"
+   fill="#FF6600"
+   id="circle6" />
+<!-- Remote icon spot -->
+<!-- Typography -->
+<text
+   x="256"
+   y="400"
+   text-anchor="middle"
+   font-family="sans-serif"
+   font-weight="bold"
+   font-size="60"
+   fill="#FFFFFF"
+   id="text6">tuya-local</text>
 </svg>
 </svg>

binární
custom_components/tuya_local/brand/icon2x.png


binární
custom_components/tuya_local/brand/logo.png


binární
custom_components/tuya_local/brand/logo2x.png