icons

Xcode document icon not updating

那年仲夏 提交于 2020-01-14 01:35:40
问题 I've created an .icns and set it in the Document Types section of my project, but my documents' icons in Finder remain generic. I've noticed that if I change my document type's file extension, the icon displays. Is there a cache I need to clear or some other way to update the icon without changing the file extension? 回答1: To force refresh icon put this into your terminal /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r

Making Image button look pressed/clicked in Swing

时光怂恿深爱的人放手 提交于 2020-01-13 08:24:28
问题 I created a JButton which has an image set as an icon representing the button. Now, I've set setContentAreaFilled(false); setBorderPainted(false); setOpaque(false); the properties which this makes an image-button look nice with no borders or background colors etc. Now the problem is that when I click on the image, it shows no onclick effects of a button, so when there is some background processing involved or some event is bring fired on click of button which takes time to process the request

QIcon.fromTheme not displaying icon in PyQt

你离开我真会死。 提交于 2020-01-13 07:58:51
问题 I am having troubles to display the icon of a QAction selected from the current icon theme. I made the ui with Qt designer and exported it with pyuic4 sample.ui > sample.py . After setting the icon from the theme with self.actionSample.setIcon(QtGui.QIcon.fromTheme(_fromUtf8("document-open"))) , I get the following source code : from PyQt4 import QtCore, QtGui import sys try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: _fromUtf8 = lambda s: s class Ui_MainWindow(object): def

How do you set hotspot co-ordinates on a Windows cursor generated from an icon file?

空扰寡人 提交于 2020-01-13 06:23:08
问题 I'm setting a custom cursor on my app from an icon file, but the click point is at the wrong co-ordinates. I'm setting the cursor with SetClassLongPtr(hwnd, GCL_HCURSOR, reinterpret_cast<LONG_PTR>cursor) where cursor is the result of; LoadImage( NULL, "some_path/cursor.ico", IMAGE_ICON, //also tried IMAGE_CURSOR 0, //width. 0 uses the width of the file provided 0, //height. 0 uses the height of the file provided LR_LOADFROMFILE ); The cursor loads fine, but its clicks come from the bottom

how to load the images in java runnable jar?

大兔子大兔子 提交于 2020-01-13 05:21:09
问题 When I convert my project into runnable jar the same system, the image is loading in the output. But when I tried in another system, the image failed to load? how to give the image URL rather then using c: ?please help on this? JToolBar toolbar = new JToolBar("Toolbar", JToolBar.HORIZONTAL); JButton capturebut = new JButton(new ImageIcon("C:\\sampleprojects\\ compare\\shankar\\src\\capture.gif")); capturebut.setToolTipText("Capture"); toolbar.add(capturebut); 回答1: Use getResourceAsStream http

Removing a pinned app's icon from the Windows 7 taskbar on the application's major upgrade with WiX

孤人 提交于 2020-01-13 02:50:50
问题 After removing a WPF application which were installed with WiX, the app's icon, previously pinned to the Windows 7 taskbar, have not been removed automatically. It remains orphaned and needs to be removed manually. Is it a supposed, typical behaviour? The problem is that after a major upgrade of the application, the pinned icon remains inactive and needs to be manually deleted and repinned. It confuses some users. Is there a possibility to delete or reactivate the app's icon, pinned to the

App icon sizes as of iOS 8

北慕城南 提交于 2020-01-12 14:35:09
问题 What sizes do we need to have our app icons in to support the Apple devices that will be available as of iOS 8? 回答1: XCode 6 offers to add the following new icons for iOS 8 and later: So, the icon sizes are 87x87, 120x120 and 180x180. 来源: https://stackoverflow.com/questions/25779215/app-icon-sizes-as-of-ios-8

Actionbar button background

こ雲淡風輕ζ 提交于 2020-01-12 03:33:06
问题 I want to customize actionbar buttons with an image both for pressed and not pressed state. I put a drawable selector on android:icon with two states (pressed and not pressed). The problem is that, if I press the button, I still have the blue background (ics holo style) along with my pressed button icon. How can I remove this behaviour from actionbar customized icon buttons? Thanks 回答1: I think the more specific way is to put this attribute in your application Theme: <item name="android

iOS应用图标及尺寸

≯℡__Kan透↙ 提交于 2020-01-11 23:48:57
Icon and Image Sizes Every app needs an app icon and a launch file or image. In addition, some apps need custom icons to represent app-specific content, functions, or modes in navigation bars, toolbars, tab bars, and other areas. Table 45-1 lists the sizes required for these custom icons and images. Table 45-1 Size (in pixels) of custom icons and images Asset iPhone 6s Plus and iPhone 6 Plus (@3x) iPhone 6s, iPhone 6, and iPhone 5 (@2x) iPhone 4s (@2x) iPad and iPad mini (@2x) iPad 2 and iPad mini (@1x) iPad Pro (@2x) App icon ( required for all apps) 180 x 180 120 x 120 120 x 120 152 x 152 76

converting .PNG to .ICO in C/C#

杀马特。学长 韩版系。学妹 提交于 2020-01-10 11:34:36
问题 I want to convert .PNG files to .ICO files. I want to do it locally with out any internet dependency (so I can't use online tools like converttoico.com etc). I found a wonderful tool called png2ico, but it has a restriction that it can only convert images of size 1X1 to 256X256. Although for now, I am modifying the PNG resolution (in C#) and compressing it to 256X256, and then using this tool to convert it to icon, but the image quality is not good at all. Does any one know of any native