From ebf5ee0344f33b108fdbaf2bd754e84f04e94c95 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 26 Nov 2025 09:45:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/lib/icons.dart | 44 +++++++++++++---------- fonts/iconfont.ttf | Bin 15744 -> 18052 bytes generate/icons.dart | 12 +++++-- iconfont.json | 60 ++++++++++++++++++++++++++++++-- lib/src/yx_icon_fonts_data.dart | 40 +++++++++++++++++++++ 5 files changed, 134 insertions(+), 22 deletions(-) diff --git a/example/lib/icons.dart b/example/lib/icons.dart index 7225f1d..dbf602f 100644 --- a/example/lib/icons.dart +++ b/example/lib/icons.dart @@ -4,7 +4,31 @@ import 'package:yx_icon_fonts_example/example_icon.dart'; // 此文件由脚本自动生成! final icons = [ + // 编辑相关图标 + ExampleIcon(YXIconFonts.icon30Edit, 'icon 30 edit'), + ExampleIcon(YXIconFonts.icon44Edit, 'icon 44 edit'), + ExampleIcon(YXIconFonts.icon36EditLine, 'icon 36 edit line'), + ExampleIcon(YXIconFonts.icon24Edit, 'icon 24 edit'), + + // 复制相关图标 + ExampleIcon(YXIconFonts.icon24Copy2, 'icon 24 copy2'), + ExampleIcon(YXIconFonts.icon24Copy, 'icon 24 copy'), + + // 删除相关图标 + ExampleIcon(YXIconFonts.icon30Delete, 'icon 30 delete'), + ExampleIcon(YXIconFonts.icon44Delete, 'icon 44 delete'), + ExampleIcon(YXIconFonts.icon36Delete, 'icon 36 delete'), + ExampleIcon(YXIconFonts.icon24Delete, 'icon 24 delete'), + + // 添加相关图标 + ExampleIcon(YXIconFonts.icon36Add, 'icon 36 add'), + ExampleIcon(YXIconFonts.icon24Add, 'icon 24 add'), + ExampleIcon(YXIconFonts.icon44Add, 'icon 44 add'), + ExampleIcon(YXIconFonts.icon32Add, 'icon 32 add'), + // 其他图标 + ExampleIcon(YXIconFonts.icon32Location, 'icon 32 location'), + ExampleIcon(YXIconFonts.icon24Mypoints, 'icon 24 mypoints'), ExampleIcon(YXIconFonts.icon44Search, 'icon 44 search'), ExampleIcon(YXIconFonts.icon36ClearPeople, 'icon 36 clear people'), ExampleIcon(YXIconFonts.icon32Publish, 'icon 32 publish'), @@ -22,6 +46,8 @@ final icons = [ ExampleIcon(YXIconFonts.icon24Plus, 'icon 24 plus'), // 个人中心相关图标 + ExampleIcon(YXIconFonts.icon44MeAbout, 'icon 44 me about'), + ExampleIcon(YXIconFonts.icon44MePointsmall, 'icon 44 me pointsmall'), ExampleIcon(YXIconFonts.icon44MeLogOut, 'icon 44 me log out'), ExampleIcon(YXIconFonts.icon44MeSwitch, 'icon 44 me switch'), ExampleIcon(YXIconFonts.icon44MePassword, 'icon 44 me password'), @@ -36,16 +62,6 @@ final icons = [ ExampleIcon(YXIconFonts.icon44WechatShareWhite, 'icon 44 wechat share white'), ExampleIcon(YXIconFonts.icon44Share, 'icon 44 share'), - // 编辑相关图标 - ExampleIcon(YXIconFonts.icon44Edit, 'icon 44 edit'), - ExampleIcon(YXIconFonts.icon36EditLine, 'icon 36 edit line'), - ExampleIcon(YXIconFonts.icon24Edit, 'icon 24 edit'), - - // 删除相关图标 - ExampleIcon(YXIconFonts.icon44Delete, 'icon 44 delete'), - ExampleIcon(YXIconFonts.icon36Delete, 'icon 36 delete'), - ExampleIcon(YXIconFonts.icon24Delete, 'icon 24 delete'), - // 消息相关图标 ExampleIcon(YXIconFonts.iconMsgContacts, 'icon msg contacts'), ExampleIcon(YXIconFonts.iconMsgVideo, 'icon msg video'), @@ -85,17 +101,9 @@ final icons = [ ExampleIcon(YXIconFonts.icon44More2, 'icon 44 more2'), ExampleIcon(YXIconFonts.icon44More, 'icon 44 more'), - // 复制相关图标 - ExampleIcon(YXIconFonts.icon24Copy, 'icon 24 copy'), - // 日历相关图标 ExampleIcon(YXIconFonts.icon44Calendar, 'icon 44 calendar'), - // 添加相关图标 - ExampleIcon(YXIconFonts.icon24Add, 'icon 24 add'), - ExampleIcon(YXIconFonts.icon44Add, 'icon 44 add'), - ExampleIcon(YXIconFonts.icon32Add, 'icon 32 add'), - // 键盘相关图标 ExampleIcon(YXIconFonts.icon44Keyboard, 'icon 44 keyboard'), diff --git a/fonts/iconfont.ttf b/fonts/iconfont.ttf index 5da9adfaad14143d179974f5d563527dd3842f5d..24c1dee9e09c03468821902113bd49bde5346881 100644 GIT binary patch delta 3650 zcmZu!eQaCR6+ibqf5h>7wx8|y{24pXPMkJLlVB%y)1+w$X__Xbv>9pnXi2j+G@(rs zAR90yUXZGZX$*nFpktFZU`$g1?W2gTwAwWOm>AnMv}v7$Cd4*&g%Dy0v4IeF_Pf4m zD<)$9-aF^qd+xjE{?0kiS-JPrH`&8^r-z6=NJNK^EX*vO`*ZvWA~j0nUOIN-o?A8c z{t+TynyBxEx!IYcT_b*c+}-Uz5uk$EiB)?;g@S4V7+&N4JQ_l%rrjo z=_padDU3h1Fmv}3o1weyb$iLTy^4eWm8 zLVnvgG0X*GZ>*k~4i5f@{4N-X{>t>?&NUckqxHn?%hvcG{;m{x#;9b1J53Q{c@d)qX{X(k$F^mtY=NsjW*CmYNrnB zq)n8gJhf0O6(~h%YN8BfshN_Lpg6_IB#WXHrU)4npdf`vCqHS}w2!>x!FJr(Iz!Yd z!tkvAUHy3Vebw)1V!P^B>zgKQ2!Tjo#1QMJ0 zZV99~@oOcJ?8Ns-Anl1?CxHSWzE=XJKzyGBih}s01j>WB^95W0R0{FyB}Ad~DG5{$ z@%<90BjN`nP*KEhkU(t_zfl5JM*JoT)En`eB}5b92PH)3;fEv~QI7b#o8Dpv*#%{b z@;CL%>btHX*Q2ht+y(c~+#h=;Jx_TqdfxMH@jiyObDuBmJL&sj<6z?*jj#GO|6%`Y z{{Lz%+QZu0x<@~wza2;iP6eBT4+dWe4TipN3>oi)w}&5&j7FY_HbftdzGSA&QFF!o zz*@21jdk1-dpT~!_ryO*^d_E4ypt>^4<{c;UP!)y2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ea{}9N;a3mMr277b=r!1Ib>?98h2diIC&m6M zHqB@vS_og!_>vfynVml#U2fdedcTY4@X-U+lOG&=7E)S|Gqcs>bHRQ-(zB(yFCD4Q z9?X2$J^H!UdPX0eo;&*T{4cM!AA^zaA^h&0Oa0r%2^1@$%Bkzmb&mc;I@ARGR=WP; z|JTMpjT7Ow@sqlbh`CuE?!EDPZ}3GhS-%qOsgK2O)E1kwaE*9#v|iU%g)S2ErQ#$1 zz75-En`|_|a#pr2Zqz&iJ%5nh8gF6?_p_1BjIfml7-fuQdbW-2?4Zm&+{=9oaTn{^ zz%X~ShP4$2S;tCB^s$P523Sou%jsbSz2wMKpvV%I(nXdGowU4h;}S9qib*6Wcj*h-HS!b%=#h4p!wNw3maNI$IKBPFo`k2J+r zd!#P5#zSpLgS8$>j>*&xiI1)Gs12Bl6KV+N;)Gg*xj3OFVJ=SK)^l+}eZyQ*LLJ0h zQbN7NlvK@~)K<)8CDdTd$tu)p%*id(bj-CxsQs9eTgV8QYmbm6FekT=IWQ-;kWDZr zw~%2lr?!xFYM7H)$VHfwSjbP){zZP-H|`3`&7BL`xSc;rRwQIA}S zJ?4==v7L^Z7H!wyagR)k?efUJ*b^SN*KD^(md5sYWNvJ)M>fZv^vLj7#UtxuPkFQn zunCX016F%lC!w8z?en-FflYe;+x8Qj=T@*a_#xI7I~2PZyAhAY_r^aC^WnRRa^h6t zn`9+2A5)a=W$MdN#c={eJptTcz!*_KEg89s4@Ybxw7D zn(4`$AI$uiEoY~)3th>sg&et;azE#X^3NAK3OfrI3wMgUiu1+yidTw%T)3H;E(hcF QsU4>SE*u#zhDx7*0sEaFE&u=k diff --git a/generate/icons.dart b/generate/icons.dart index 7285344..a401c9e 100644 --- a/generate/icons.dart +++ b/generate/icons.dart @@ -8,6 +8,8 @@ class FontIcons { FontIcons._(); // 其他图标 + static const IconData icon32Location = YXIconFonts.icon32Location; + static const IconData icon24Mypoints = YXIconFonts.icon24Mypoints; static const IconData icon44Search = YXIconFonts.icon44Search; static const IconData icon36ClearPeople = YXIconFonts.icon36ClearPeople; static const IconData icon32Publish = YXIconFonts.icon32Publish; @@ -23,16 +25,20 @@ class FontIcons { static const IconData icon36OnlySee = YXIconFonts.icon36OnlySee; // 编辑相关图标 + static const IconData icon30Edit = YXIconFonts.icon30Edit; static const IconData icon44Edit = YXIconFonts.icon44Edit; static const IconData icon36EditLine = YXIconFonts.icon36EditLine; static const IconData icon24Edit = YXIconFonts.icon24Edit; // 删除相关图标 + static const IconData icon30Delete = YXIconFonts.icon30Delete; static const IconData icon44Delete = YXIconFonts.icon44Delete; static const IconData icon36Delete = YXIconFonts.icon36Delete; static const IconData icon24Delete = YXIconFonts.icon24Delete; // 个人中心相关图标 + static const IconData icon44MeAbout = YXIconFonts.icon44MeAbout; + static const IconData icon44MePointsmall = YXIconFonts.icon44MePointsmall; static const IconData icon44MeLogOut = YXIconFonts.icon44MeLogOut; static const IconData icon44MeSwitch = YXIconFonts.icon44MeSwitch; static const IconData icon44MePassword = YXIconFonts.icon44MePassword; @@ -86,17 +92,18 @@ class FontIcons { static const IconData icon44More = YXIconFonts.icon44More; // 复制相关图标 + static const IconData icon24Copy2 = YXIconFonts.icon24Copy2; static const IconData icon24Copy = YXIconFonts.icon24Copy; // 日历相关图标 static const IconData icon44Calendar = YXIconFonts.icon44Calendar; // 分享相关图标 - static const IconData icon44WechatShareWhite = - YXIconFonts.icon44WechatShareWhite; + static const IconData icon44WechatShareWhite = YXIconFonts.icon44WechatShareWhite; static const IconData icon44Share = YXIconFonts.icon44Share; // 添加相关图标 + static const IconData icon36Add = YXIconFonts.icon36Add; static const IconData icon24Add = YXIconFonts.icon24Add; static const IconData icon24Plus = YXIconFonts.icon24Plus; static const IconData icon44Add = YXIconFonts.icon44Add; @@ -104,4 +111,5 @@ class FontIcons { // 键盘相关图标 static const IconData icon44Keyboard = YXIconFonts.icon44Keyboard; + } diff --git a/iconfont.json b/iconfont.json index ee25490..2662405 100644 --- a/iconfont.json +++ b/iconfont.json @@ -1,10 +1,66 @@ { "id": "4944890", - "name": "学习官OA系统", + "name": "劝学APP-学习官OA系统", "font_family": "iconfont", "css_prefix_text": "", - "description": "学习官OA系统图标", + "description": "劝学APP-学习官OA系统图标", "glyphs": [ + { + "icon_id": "46077069", + "name": "icon_30_edit", + "font_class": "icon_30_edit", + "unicode": "e65b", + "unicode_decimal": 58971 + }, + { + "icon_id": "46077068", + "name": "icon_24_copy2", + "font_class": "icon_24_copy2", + "unicode": "e65c", + "unicode_decimal": 58972 + }, + { + "icon_id": "46077067", + "name": "icon_30_delete", + "font_class": "icon_30_delete", + "unicode": "e65d", + "unicode_decimal": 58973 + }, + { + "icon_id": "46077053", + "name": "icon_36_add", + "font_class": "icon_36_add", + "unicode": "e65a", + "unicode_decimal": 58970 + }, + { + "icon_id": "46076927", + "name": "icon_32_location", + "font_class": "icon_32_location", + "unicode": "e659", + "unicode_decimal": 58969 + }, + { + "icon_id": "46076827", + "name": "icon_24_mypoints", + "font_class": "icon_24_mypoints", + "unicode": "e657", + "unicode_decimal": 58967 + }, + { + "icon_id": "45986664", + "name": "icon_44_me_about", + "font_class": "icon_44_me_about", + "unicode": "e656", + "unicode_decimal": 58966 + }, + { + "icon_id": "45986657", + "name": "icon_44_me_pointsmall", + "font_class": "icon_44_me_pointsmall", + "unicode": "e658", + "unicode_decimal": 58968 + }, { "icon_id": "45876267", "name": "icon_44_search", diff --git a/lib/src/yx_icon_fonts_data.dart b/lib/src/yx_icon_fonts_data.dart index 363963b..feab3c9 100644 --- a/lib/src/yx_icon_fonts_data.dart +++ b/lib/src/yx_icon_fonts_data.dart @@ -9,6 +9,46 @@ class YXIconFonts { // 私有构造函数,防止实例化 YXIconFonts._(); + /// icon_30_edit 图标 + /// + /// Unicode: e65b + static const IconData icon30Edit = YXIconData(0xe65b); + + /// icon_24_copy2 图标 + /// + /// Unicode: e65c + static const IconData icon24Copy2 = YXIconData(0xe65c); + + /// icon_30_delete 图标 + /// + /// Unicode: e65d + static const IconData icon30Delete = YXIconData(0xe65d); + + /// icon_36_add 图标 + /// + /// Unicode: e65a + static const IconData icon36Add = YXIconData(0xe65a); + + /// icon_32_location 图标 + /// + /// Unicode: e659 + static const IconData icon32Location = YXIconData(0xe659); + + /// icon_24_mypoints 图标 + /// + /// Unicode: e657 + static const IconData icon24Mypoints = YXIconData(0xe657); + + /// icon_44_me_about 图标 + /// + /// Unicode: e656 + static const IconData icon44MeAbout = YXIconData(0xe656); + + /// icon_44_me_pointsmall 图标 + /// + /// Unicode: e658 + static const IconData icon44MePointsmall = YXIconData(0xe658); + /// icon_44_search 图标 /// /// Unicode: e655