简体   繁体   English

chrome.devtools扩展面板图标看起来不正确

[英]chrome.devtools extension panel icon doesn't look right

setting a dev tool panel icon in chrome.devtools api from a png renderes offset and moves when I click it. 从png renderes偏移量设置chrome.devtools api中的开发工具面板图标,并在单击它时移动。 the other stock icons darken when clicked - i assume this is an animation, i'm not sure why or how it's trying to animate my png. 点击时其他股票图标变暗 - 我认为这是一个动画,我不知道为什么或如何尝试动画我的png。

how do i produce an image that will look right as a devtools panel icon? 我如何生成一个看起来像devtools面板图标的图像?

Inspect the button image using another DevTools instance (all the images are stored in chrome-devtools://devtools/Images/toolbarIcons.png ). 使用另一个DevTools实例检查按钮图像(所有图像都存储在chrome-devtools://devtools/Images/toolbarIcons.png )。 In toolbarIcons.png , the normal and depressed (darkened) image versions are laid out in columns, so you should presumably do the same for your panel icon image. toolbarIcons.png ,普通和凹陷(变暗)图像版本按列布局,因此您可能应该对面板图标图像执行相同操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM