icons

Icon for Mac OSX bundle

时光怂恿深爱的人放手 提交于 2019-12-10 12:32:42
问题 I compile a Mac OSX bundle, called MyBundle.bundle, which is used as a plugin for another application. I want the bundle have a unique icon and so I set the Info.plist file to say: <key>CFBundleIconFile</key> <string>MyIcon.icns</string> and place the file MyIcon.icns in the bundle's MyBundle.bundle/Contents/Resources folder. This does not work, the finder show a generic icon for the bundle and ignores the specified MyIcon.icns file. If I change the bundle's extension from .bundle to .app the

How to use icons with NavigationProvider that are not Material Design?

邮差的信 提交于 2019-12-10 12:25:09
问题 I would like to use icons with the NavigationProvider that are not available in the material design offerings. Inside the SetNavigation method, we build up the Main Menu. There is an option to set the icon property by using the Material Design icon name — for example, the menu item below uses the "people" string to display the png: .AddItem( new MenuItemDefinition( PageNames.Doctors, L("Doctors"), url: "Doctors", icon: "people", requiredPermissionName: PermissionNames.Pages_Doctors ) ) Can

convert image to .icns file AppleScript Obj-C

做~自己de王妃 提交于 2019-12-10 12:23:49
问题 how can I convert a .png image to a .icns using applescript? Any help would be greatly appreciated. 回答1: Could you just use sips? sips -s format icns test.png -o test.icns It doesn't seem to support 1024 x 1024 images or create smaller versions though. 来源: https://stackoverflow.com/questions/11991645/convert-image-to-icns-file-applescript-obj-c

Adding icons to bar charts made using c3js

感情迁移 提交于 2019-12-10 12:16:46
问题 I have made a stacked bar chart using c3 libraries and would like to add icons to each column (using c3 or d3). I went through their documentation but there doesnt seem to be any relevant functionality! var chart = c3.generate({ data: { columns: [ ['data1', 30, 200, 100], ['data2', 130, 100, 140] ], type: 'bar', groups: [['data1', 'data2']] }, }); 回答1: You can import font-awesome and then (mis)use c3's label format configuration to set an icon for each series var chart = c3.generate({ data: {

How do I get the android icons to change state (highlights)?

╄→гoц情女王★ 提交于 2019-12-10 12:12:01
问题 I am using the Android SDK icon-button for refresh (ic_menu_refresh) in a widget and I need to change the selection state when it is pressed. How is this done? Do I define an XML for the button? 回答1: You define the different states in xml via selector. Sample (esp. see the state-attributes): <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/bg_catlocfilter" android:state_pressed="false" /> <item

Create a simple python executable program and an icon to it - Hello World

浪子不回头ぞ 提交于 2019-12-10 12:10:08
问题 I am trying to create a simple python executable program - Hello World by following this link https://mborgerson.com/creating-an-executable-from-a-python-script. The steps I took is first I create a python program, example: print("Hello, World!") I save this py program file into python script C:\Users\d\AppData\Local\Programs\Python\Python35-32\Scripts Then I install PyInstaller by going to command line point to directory python script and type pip install PyInstaller . After this, in command

WP7 Dynamic icons in ApplicationBar

久未见 提交于 2019-12-10 11:43:28
问题 Dynamic icons in ApplicationBar It's possible to have dynamic icons in ApplicationBar with dynamic images loaded from url? I tried this: xaml: <phone:PhoneApplicationPage.ApplicationBar> <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> <shell:ApplicationBarIconButton IconUri="" Text="Button 1"/> <shell:ApplicationBarIconButton IconUri="" Text="Button 2"/> <shell:ApplicationBar.MenuItems> <shell:ApplicationBarMenuItem Text="MenuItem 1"/> <shell:ApplicationBarMenuItem Text="MenuItem

C# How to set folder icon?

点点圈 提交于 2019-12-10 11:23:31
问题 I use FilePathDialog.SelectedPath get folder's path I also know icon's path but i don't know how to set that folder's icon 回答1: this website has a very similar example 回答2: You have to write the desktop.ini file. [.ShellClassInfo] IconResource=Icon.ico,0 IconFile=Icon.ico IconIndex=0 [ViewState] Mode= Vid= FolderType=Pictures C# code string dir = "Folder Path"; string[] lines = { "[.ShellClassInfo]", "IconResource=Icon.ico,0", "[ViewState]", "Mode=", "Vid=", "FolderType=Pictures" }; File

eclipse rcp change icon for xml configuration file

十年热恋 提交于 2019-12-10 11:18:19
问题 I built an Eclipse RCP application that uses the configuration.xml in the root of the project for some project configurations. I would like to customize the icon and keep default xml editor. I found one blog post, that does exactly what I'm looking for a property file. I extracted it: <extension point="org.eclipse.core.contenttype.contentTypes"> <content-type base-type="org.eclipse.core.runtime.properties" file-extensions="config" id="in.cypal.eclipse.myConfig" name="My Config File" priority=

UWP: icon size in app bar/command bar

江枫思渺然 提交于 2019-12-10 11:09:19
问题 What icon sizes should I use for the app bar/command bar? I couldn't find something in Guidelines for tile and icon assets or in UWP App Visual Assets. Other names: navigation bar (iOS), app bar/action bar (Android), toolbar (Xamarin.Forms) 回答1: Image size The default icon size should be 20 pixels for app bar image at 100% scaling, but you should also provide additional image assets to ensure it looks great on all screens: appbaricon.scale-100.png - 20 px appbaricon.scale-125.png - 25 px