[英]Android Image Asset Studio: icon showing white color of an image as greyish
I wanted to create an icon for A+ (with + superscript). 我想为A +创建图标(带有+上标)。
I tried to create using image asset studio. 我尝试使用图像资产工作室进行创建。 But problem is i am not able to add superscript
但问题是我无法添加上标
So i have create a A+ image in gimp. 所以我在gimp中创建了一个A +图像。
Then i created a app bar icon using android asset stuido. 然后,我使用Android资产stuido创建了一个应用栏图标。 I got the following output.
我得到以下输出。 I am expecting the A+ to be pure white but it shows slightly greyish.
我期望A +为纯白色,但显示为略带灰色。 I am also using search icon which shows pure white and text converted to icon which also shows pure white.
我还使用显示纯白色的搜索图标,并将文本转换为也显示纯白色的图标。 So how to make to pure white
那么如何使纯白
the below is the image: 下面是图片:
My gimp image which i created is: 我创建的gimp图片是:
Try adding an iconTint
attribute to the menu item in your menu.xml
file: 尝试将
iconTint
属性添加到menu.xml
文件中的菜单项:
app:iconTint="@android:color/white"
If the icon still looks gray to you, it may have been imported with the HOLO_LIGHT
theme (which seems to use lower opacity). 如果您仍然看到该图标灰色,则可能是使用
HOLO_LIGHT
主题导入的(似乎使用了较低的不透明度)。 Try importing the image asset again, making sure to select HOLO_DARK
as the theme on the "Configure Image Asset" screen. 尝试再次导入图像资产,确保在“配置图像资产”屏幕上选择
HOLO_DARK
作为主题。 This should give you a more opaque white icon. 这应该给您一个更不透明的白色图标。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.