Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(ui): use official Apache Kafka logo for Kafka icon

lxk955b3d4c65142dc
diff --git a/apps/desktop/public/icons/database/kafka.svg b/apps/desktop/public/icons/database/kafka.svg
index a25ab747fd..e649ef0620 100644
--- a/apps/desktop/public/icons/database/kafka.svg
+++ b/apps/desktop/public/icons/database/kafka.svg
@@ -1,26 +1,4 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">
- <!-- Kafka network topology icon (symbol only, no text) -->
- <!-- Central node (larger) -->
- <circle cx="24" cy="24" r="5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Top node -->
- <circle cx="24" cy="6" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Bottom node -->
- <circle cx="24" cy="42" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Upper-left node -->
- <circle cx="8" cy="14" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Lower-left node -->
- <circle cx="8" cy="34" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Right node -->
- <circle cx="40" cy="24" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Connecting lines -->
- <line x1="24" y1="19" x2="24" y2="9.5" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="24" y1="19" x2="24" y2="9.5" stroke="#231F20" stroke-width="1.5"/>
- <line x1="24" y1="29" x2="24" y2="38.5" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="24" y1="29" x2="24" y2="38.5" stroke="#231F20" stroke-width="1.5"/>
- <line x1="20.5" y1="21.5" x2="11" y2="16" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="20.5" y1="21.5" x2="11" y2="16" stroke="#231F20" stroke-width="1.5"/>
- <line x1="20.5" y1="26.5" x2="11" y2="32" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="20.5" y1="26.5" x2="11" y2="32" stroke="#231F20" stroke-width="1.5"/>
- <line x1="29" y1="24" x2="36.5" y2="24" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="29" y1="24" x2="36.5" y2="24" stroke="#231F20" stroke-width="1.5"/>
+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="-112 -32 480 480" fill="none">
+ <!-- Apache Kafka official logo (symbol only, no text) -->
+ <path d="M201.816 230.216c-16.186 0-30.697 7.171-40.634 18.461l-25.463-18.026c2.703-7.442 4.255-15.433 4.255-23.797 0-8.219-1.498-16.076-4.112-23.408l25.406-17.835c9.936 11.233 24.409 18.365 40.548 18.365 29.875 0 54.184-24.305 54.184-54.184 0-29.879-24.309-54.184-54.184-54.184-29.875 0-54.184 24.305-54.184 54.184 0 5.348.808 10.505 2.258 15.389l-25.423 17.844c-10.62-13.175-25.911-22.374-43.333-25.182v-30.64c24.544-5.155 43.037-26.962 43.037-53.019C124.171 24.305 99.862 0 69.987 0 40.112 0 15.803 24.305 15.803 54.184c0 25.708 18.014 47.246 42.067 52.769v31.038C25.044 143.753 0 172.401 0 206.854c0 34.621 25.292 63.374 58.355 68.94v32.774c-24.299 5.341-42.552 27.011-42.552 52.894 0 29.879 24.309 54.184 54.184 54.184 29.875 0 54.184-24.305 54.184-54.184 0-25.883-18.253-47.553-42.552-52.894v-32.775a69.965 69.965 0 0 0 42.6-24.776l25.633 18.143c-1.423 4.84-2.22 9.946-2.22 15.24 0 29.879 24.309 54.184 54.184 54.184 29.875 0 54.184-24.305 54.184-54.184 0-29.879-24.309-54.184-54.184-54.184zm0-126.695c14.487 0 26.27 11.788 26.27 26.271s-11.783 26.27-26.27 26.27-26.27-11.787-26.27-26.27c0-14.483 11.783-26.271 26.27-26.271zm-158.1-49.337c0-14.483 11.784-26.27 26.271-26.27s26.27 11.787 26.27 26.27c0 14.483-11.783 26.27-26.27 26.27s-26.271-11.787-26.271-26.27zm52.541 307.278c0 14.483-11.783 26.27-26.27 26.27s-26.271-11.787-26.271-26.27c0-14.483 11.784-26.27 26.271-26.27s26.27 11.787 26.27 26.27zm-26.272-117.97c-20.205 0-36.642-16.434-36.642-36.638 0-20.205 16.437-36.642 36.642-36.642 20.204 0 36.641 16.437 36.641 36.642 0 20.204-16.437 36.638-36.641 36.638zm131.831 67.179c-14.487 0-26.27-11.788-26.27-26.271s11.783-26.27 26.27-26.27 26.27 11.787 26.27 26.27c0 14.483-11.783 26.271-26.27 26.271z" fill="#231F20" stroke="#F8FAFC" stroke-width="20" stroke-linejoin="round" paint-order="stroke fill"/>
</svg>
diff --git a/docs/public/icons/database/kafka.svg b/docs/public/icons/database/kafka.svg
index a25ab747fd..e649ef0620 100644
--- a/docs/public/icons/database/kafka.svg
+++ b/docs/public/icons/database/kafka.svg
@@ -1,26 +1,4 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">
- <!-- Kafka network topology icon (symbol only, no text) -->
- <!-- Central node (larger) -->
- <circle cx="24" cy="24" r="5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Top node -->
- <circle cx="24" cy="6" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Bottom node -->
- <circle cx="24" cy="42" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Upper-left node -->
- <circle cx="8" cy="14" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Lower-left node -->
- <circle cx="8" cy="34" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Right node -->
- <circle cx="40" cy="24" r="3.5" fill="#231F20" stroke="#F8FAFC" stroke-width="2"/>
- <!-- Connecting lines -->
- <line x1="24" y1="19" x2="24" y2="9.5" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="24" y1="19" x2="24" y2="9.5" stroke="#231F20" stroke-width="1.5"/>
- <line x1="24" y1="29" x2="24" y2="38.5" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="24" y1="29" x2="24" y2="38.5" stroke="#231F20" stroke-width="1.5"/>
- <line x1="20.5" y1="21.5" x2="11" y2="16" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="20.5" y1="21.5" x2="11" y2="16" stroke="#231F20" stroke-width="1.5"/>
- <line x1="20.5" y1="26.5" x2="11" y2="32" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="20.5" y1="26.5" x2="11" y2="32" stroke="#231F20" stroke-width="1.5"/>
- <line x1="29" y1="24" x2="36.5" y2="24" stroke="#F8FAFC" stroke-width="4" stroke-linecap="round"/>
- <line x1="29" y1="24" x2="36.5" y2="24" stroke="#231F20" stroke-width="1.5"/>
+<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="-112 -32 480 480" fill="none">
+ <!-- Apache Kafka official logo (symbol only, no text) -->
+ <path d="M201.816 230.216c-16.186 0-30.697 7.171-40.634 18.461l-25.463-18.026c2.703-7.442 4.255-15.433 4.255-23.797 0-8.219-1.498-16.076-4.112-23.408l25.406-17.835c9.936 11.233 24.409 18.365 40.548 18.365 29.875 0 54.184-24.305 54.184-54.184 0-29.879-24.309-54.184-54.184-54.184-29.875 0-54.184 24.305-54.184 54.184 0 5.348.808 10.505 2.258 15.389l-25.423 17.844c-10.62-13.175-25.911-22.374-43.333-25.182v-30.64c24.544-5.155 43.037-26.962 43.037-53.019C124.171 24.305 99.862 0 69.987 0 40.112 0 15.803 24.305 15.803 54.184c0 25.708 18.014 47.246 42.067 52.769v31.038C25.044 143.753 0 172.401 0 206.854c0 34.621 25.292 63.374 58.355 68.94v32.774c-24.299 5.341-42.552 27.011-42.552 52.894 0 29.879 24.309 54.184 54.184 54.184 29.875 0 54.184-24.305 54.184-54.184 0-25.883-18.253-47.553-42.552-52.894v-32.775a69.965 69.965 0 0 0 42.6-24.776l25.633 18.143c-1.423 4.84-2.22 9.946-2.22 15.24 0 29.879 24.309 54.184 54.184 54.184 29.875 0 54.184-24.305 54.184-54.184 0-29.879-24.309-54.184-54.184-54.184zm0-126.695c14.487 0 26.27 11.788 26.27 26.271s-11.783 26.27-26.27 26.27-26.27-11.787-26.27-26.27c0-14.483 11.783-26.271 26.27-26.271zm-158.1-49.337c0-14.483 11.784-26.27 26.271-26.27s26.27 11.787 26.27 26.27c0 14.483-11.783 26.27-26.27 26.27s-26.271-11.787-26.271-26.27zm52.541 307.278c0 14.483-11.783 26.27-26.27 26.27s-26.271-11.787-26.271-26.27c0-14.483 11.784-26.27 26.271-26.27s26.27 11.787 26.27 26.27zm-26.272-117.97c-20.205 0-36.642-16.434-36.642-36.638 0-20.205 16.437-36.642 36.642-36.642 20.204 0 36.641 16.437 36.641 36.642 0 20.204-16.437 36.638-36.641 36.638zm131.831 67.179c-14.487 0-26.27-11.788-26.27-26.271s11.783-26.27 26.27-26.27 26.27 11.787 26.27 26.27c0 14.483-11.783 26.271-26.27 26.271z" fill="#231F20" stroke="#F8FAFC" stroke-width="20" stroke-linejoin="round" paint-order="stroke fill"/>
</svg>
diff --git a/packages/app-tests/databaseIconAssets.test.ts b/packages/app-tests/databaseIconAssets.test.ts
index 358e9758d3..aed2ac7d18 100644
--- a/packages/app-tests/databaseIconAssets.test.ts
+++ b/packages/app-tests/databaseIconAssets.test.ts
@@ -8,6 +8,7 @@ test("Kafka database icon includes a light contrast stroke for dark themes", ()
assert.match(svg, /stroke="#(?:F8FAFC|E5E7EB|FFFFFF)"/i);
assert.match(svg, /fill="#231F20"/i);
+ assert.match(svg, /Apache Kafka official logo/i);
});
test("RocketMQ database icon asset exists", () => {