Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件 API | Dock icon 允许使用 iconHTML #11464

Closed
frostime opened this issue May 19, 2024 · 5 comments
Closed

插件 API | Dock icon 允许使用 iconHTML #11464

frostime opened this issue May 19, 2024 · 5 comments
Assignees

Comments

@frostime
Copy link
Contributor

In what scenarios do you need this feature?

目前 addDock API 中,IPluginDockTab 的 icon 似乎只能填写 symbol 名称;希望可以直接填写 iconHTML。

比如允许这样直接使用 emoji

image

Describe the optimal solution

增加 iconHTML。

Describe the candidate solution

No response

Other information

No response

@Vanessa219
Copy link
Member

这个主界面还是蛮重要的,用户一眼就可以看到,还是希望能够保持一致性。

@frostime
Copy link
Contributor Author

这个主界面还是蛮重要的,用户一眼就可以看到,还是希望能够保持一致性。

那退一步不要求使用自定义 html,但是希望 icon 可以识别显示 emoji 字符如何?目前只能使用 symbol name。

而且这两者应该还是好区分的,emoji 可以被解析为数值,而symbol name 不行。

@Vanessa219
Copy link
Member

不是解析的问题,是外光看上去会不协调。

@frostime
Copy link
Contributor Author

不是解析的问题,是外光看上去会不协调。

我这看上去感觉还好。

image

@Vanessa219
Copy link
Member

每个操作系统上的 emoji 都还不太一致,大小也会有出入的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants