标签: icons

在整个应用程序中更改默认Winform图标

我可以更改Winform上使用的默认图标吗?

我的大多数表单都将其图标属性设置为自定义图标.对于穿过裂缝的少数形式,我不希望通用的"嘿看,他在视觉工作室制作了这个"图标.

一种解决方案是繁琐地检查我的每个表单,以确保它们具有自定义图标集或将ShowIcon设置为False.

另一个解决方案是让我的每个表单都继承自在构造函数中设置自定义图标的基类.

除了这些解决方案,我还有其他选择吗?

编辑: 我希望有一种方法可以用我自己的方式替换股票图标的来源.它在某个资源文件中吗?或者它嵌入在.NET DLL中,我不能(或者真的,真的不应该)修改?

BOUNTY EDIT: 有没有办法在不编辑或编写单行代码的情况下完成此操作?我不在乎解决方案是多么不切实际,复杂,浪费时间......我只是想知道它是否可行.我需要满足自己的好奇心.

customization icons visual-studio-2008 winforms

13
推荐指数
1
解决办法
8803
查看次数

如何在UILabel文本中显示版权图标?

有没有人知道如何在UILabel文本中显示版权图标?这是c周围有一个圆圈的图标.它的html代码是:©©.

我尝试了以下代码:

UILabel *contactInfo = [[UILabel alloc] initWithFrame:CGRectMake(-55,135,420,100)];
contactInfo.text = @"'©):'2009 Nationwide ";
Run Code Online (Sandbox Code Playgroud)

要么

contactInfo.text = @"'©'2009 Nationwide ";
Run Code Online (Sandbox Code Playgroud)

要么

contactInfo.text = @"©2009 Nationwide ";
Run Code Online (Sandbox Code Playgroud)

它只是将所有内容打印为文本而不是图标.

这可以在webView中使用,但我需要它作为UILabel文本.有帮助吗?

iphone icons special-characters uilabel

13
推荐指数
4
解决办法
1万
查看次数

WPF:当禁用菜单项时,图标是否为灰色是否是标准的?

我有带图标的菜单项,当它被禁用时,图标保持不变.是否由我来提供一个禁用的图标,如果是这样,这是否也适用于绑定到命令的menuitems?

wpf icons command

13
推荐指数
2
解决办法
3409
查看次数

如何更改默认jar图标

首先,我已阅读有关此主题的所有问题,因此这不是一个重复的问题.

我想问一下,用Java编写的应用程序(如eclipse)如何使用图标而不是默认的jar图标.

我不关心兼容性,我总是可以为Windows和Linux制作2个不同版本的程序.

如何在Linux和Windows中制作它.

非常感谢.

java icons jar

13
推荐指数
2
解决办法
4万
查看次数

字体图标vs png图标

我使用图标标签,但我看到这个网站:www.fontello.com你可以用图标创建字体.

但是当我创建带有图标的字体时,它比我的所有图标都大,因为有svg,ttf,woff和eot,所有4种字体都比所有png图标都大.

@font-face {
  font-family: 'fonticons';
  src: url("../font/fonticons.eot");
  src: url("../font/fonticons.eot?#iefix") format('embedded-opentype'), url("../font/fonticons.woff") format('woff'), url("../font/fonticons.ttf") format('truetype'), url("../font/fonticons.svg#fonticons") format('svg');
  font-weight: normal;
  font-style: normal;
}
Run Code Online (Sandbox Code Playgroud)

我的所有图标都是optipng压缩的.png图像.

这适用于所有浏览器吗?

那我为什么要使用这种字体方法呢?

还有其他选择fontello.com吗?

html css fonts icons svg

13
推荐指数
1
解决办法
9948
查看次数

如何获取android中主屏幕Launcher中找到的所有已安装快捷方式的列表

我想以编程方式获取主屏幕启动器中所有已安装快捷方式的列表.我在网上找到了很多片段,但没有一个提供正确的输出

对于此片段:

Intent shortcutsIntent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
ArrayList<Intent> intentList = new ArrayList<Intent>();
Intent intent=null;
String launchers="";
final PackageManager packageManager=getPackageManager();
for(final ResolveInfo resolveInfo:packageManager.queryIntentActivities(shortcutsIntent,   0)) {
launchers=launchers+"\n"+resolveInfo.activityInfo.packageName;
intent=packageManager
         .getLaunchIntentForPackage(resolveInfo.activityInfo.packageName);
intentList.add(intent);    
}
Run Code Online (Sandbox Code Playgroud)

这只提供联系人,浏览器等预设快捷方式.不完全是在主屏幕上找到的.

而这个片段:

    PackageManager pm = getPackageManager();
    Intent i = new Intent("android.intent.action.MAIN");
    i.addCategory("android.intent.category.HOME");
    List<ResolveInfo> lst = pm.queryIntentActivities(i, 0);
    if (lst != null) {
       for (ResolveInfo resolveInfo : lst) {  
           }
       }
    }
Run Code Online (Sandbox Code Playgroud)

仅提供com.android.launcher的默认启动器.

icons android shortcut android-launcher

13
推荐指数
1
解决办法
3645
查看次数

如何从Android 2.3上的ActionBarSherlock溢出菜单中删除图标?

我有一个ActionBarSherlock使用主题的应用程序Theme.Sherlock.Light.DarkActionBar.操作栏很暗,我的菜单图标很亮.当我在小布局上运行我的应用程序时,溢出菜单中会显示带有图标的2或3个菜单项.

在Android 3+上,溢出菜单项不会显示其图标,但在Android 2.3及更早版本中,我看到的菜单图块几乎看不见图标,因为图块颜色为白色,图标接近白色.

在此输入图像描述

正如您所看到的,灯光图标在白色背景上是不可见的,但它们必须具有浅色以在黑暗的操作栏上可见:

在此输入图像描述

在溢出菜单中显示菜单项时,我可以删除图标吗?

icons android menu actionbarsherlock

13
推荐指数
1
解决办法
1725
查看次数

在XCode中使用PDF作为AppIcon(.appiconset集合)

我想使用PDF而不是创建像素特定的图标.XCode(6和6.1)将在编译图标期间从PDF构建特定于设备的像素图像,但我无法弄清楚如何为AppIcon(Springboard App Icon)完成此操作.

Icon集合似乎与AppIcon集合不同(图标为.imageset,App图标为.appiconset)

想知道是否有人对此有任何好运?

也许XCode(v6.1)尚不具备此功能?

pdf xcode icons ios springboard

13
推荐指数
1
解决办法
3975
查看次数

正确Apple Watch图标大小和分辨率?

苹果的文档是有点混乱,但我可以从Xcode中警告说,正确的Apple关注的图标大小有以下几种:

  1. 24pt = 48x48px
  2. 27.5pt = 55x55px
  3. 29pt @ 2x = 58x58px
  4. 29pt @ 3x = 87x87px
  5. 40pt @ 2x = 80x80px
  6. 44pt = 88x88px
  7. 86pt = 172x172px
  8. 98pt = 196x196px

我有一个大的1024px版本的我的图标,并希望生成上述大小,但是dpi使用的是什么(Pixelmator默认为72dpi,似乎只针对web进行了优化).这样做可以吗?

在此输入图像描述

xcode icons resolution app-store apple-watch

13
推荐指数
1
解决办法
3873
查看次数

大图标位图在通知中显示为白色方块?

我遇到了这个问题,我Bitmap从我在通知中使用的URL 生成了一个.然而,在我的手机上,Bitmap显示像一个小的白色方块.我调查了一下,发现很多帖子就像这样谈论它:图标没有显示在通知中:显示的是白色方块

我知道我Small Icon的通知确实是透明的.但是,对于Large Icon,我意识到它Large Icon不能透明,因为它实际上是Bitmap我从URL生成的.我怎样才能解决这个问题并确保图像正确呈现而不是将其Large Icon显示为白色方块?这是我的尝试:

NotificationService.java:

    NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)
            .setContentTitle(getString(R.string.app_name))
            .setContentText(remoteMessage.getNotification().getBody())
            .setTicker(remoteMessage.getFrom() + " has responded!")
            .setLargeIcon(AndroidUtils.getBitmapFromURL(remoteMessage.getNotification().getIcon()))
            .setAutoCancel(true)
            .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))
            .setStyle(new NotificationCompat.BigTextStyle().bigText(remoteMessage.getNotification().getBody()))
            .setSmallIcon(R.drawable.ic_tabs_notification_transparent);
Run Code Online (Sandbox Code Playgroud)

AndroidUtils.java:

public static Bitmap getBitmapFromURL(String userId) {
        try {
            URL imgUrl = new URL("https://graph.facebook.com/" + userId + "/picture?type=large");
            InputStream in = (InputStream) imgUrl.getContent();
            Bitmap  bitmap = BitmapFactory.decodeStream(in);
            Bitmap output;
            Rect srcRect;
            if (bitmap.getWidth() > bitmap.getHeight()) {
                output = Bitmap.createBitmap(bitmap.getHeight(), …
Run Code Online (Sandbox Code Playgroud)

java icons android bitmap android-notifications

13
推荐指数
1
解决办法
1142
查看次数