icons

Change cursor in JavaFx ListView during drag and drop

本小妞迷上赌 提交于 2019-12-11 09:15:52
问题 I have a listview where I made it possible to rearrange the elements via drag-and-drop and it works fine, however I want to replace the two default icons with my own custom ones. I have tried with i.e. setCursor(Cursor.HAND) setCursor(new ImageCursor(image)) on both the ListCell itself or its parents but nothing gets reflected during the drag, only after, which is not what I want. Anyone know how to go about this? Edit1: This question has nothing to do with how to create a reorder-able

Trying to adapt Menu Icon to Mojave dark mode

拟墨画扇 提交于 2019-12-11 08:54:47
问题 After switching to mojave I´m trying to adapt the menu icon when the mode has changed. My app: "Application is agent (UIElement)" doesn´t have windows initially. At the moment I´m using the NSMenuDelegate function menuWillOpen which works so far but the user has to open the menu to get the icon changed. I wonder if there is a way to detect that the appearance has changed whithout opening the menu. I already tried applicationDidChangeScreenParameters from NSApplicationDelegate without success.

Electron — Can't get custom icon to appear

依然范特西╮ 提交于 2019-12-11 08:34:47
问题 I'm having an issue setting the icon for my Electron app in two different ways: Non-Packaged (Running the app via terminal) My main.js does specify an 'icon' value, pointing to the icon file, but it does not apply. Packaged (with electron-packager) My package.json file specifies the 'icon' key, pointing to the icon file, and I have the .icns (Mac) file in the build directory. I used electron-packager to build the app, but the icon is not applied, the default electron icon is used instead. Not

Leaflet: Icon marker does not appear in the right point of the map

情到浓时终转凉″ 提交于 2019-12-11 08:08:22
问题 I am placing a custom icon marker in a leaflet map. The first time the map is loaded, the icon marker does not appear in the right given coordenates. It's "moved", then, if you zoom in until the minimum the icon appers in the right point. I was wondering what's wrong. var map = L.map('map').setView([-36.60664, -72.10342], 4); map.options.minZoom = 4; map.options.maxZoom = 18; L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright"

java: putting icons in .jar files so that Windows Explorer can recognize them?

淺唱寂寞╮ 提交于 2019-12-11 07:56:25
问题 Windows knows where to find icons in .exe or .dll files. Is there any way to set up icon resources in a .jar file so that Windows can recognize them? (I'm interested in answers for XP or Windows 7) 回答1: Java Web Start can install images to use for a desktop shortcut and menu item. JWS also supports a splash screen that can be shown while the application is loading (and/or updating new classes). The support for icons applies to any desktop PC platform for which Java is available (caveat: If

How to change dynamically the icons when the look and feel change?

江枫思渺然 提交于 2019-12-11 07:50:10
问题 I'm developing a look-and-feel with two themes. The problem is: I want to be able to switch dynamically between the two themes (it means changing the themes after startup). But the themes have two different sets of icons (in fact the same icons with different colors). I don't know how to change dynamically the icons in the entire application. One solution would be to register each component with an icon and the icon ID on an icon manager to switch between the two kinds of icons, but it seems

How to programmatically change Bottom Navigation View's Icons?

冷暖自知 提交于 2019-12-11 07:36:34
问题 I want know how can I change Bottom Navigation View's Icons when user basically selects it and then again replace it with previous icon if user selects different option. Below is my switch case snippet. switch (menuItem.getItemId()) { case R.id.ic_home: selectedFragment = new HomeFragment(); //menuItem.setIcon(R.drawable.like_colored); break; case R.id.ic_connect: selectedFragment = new ConnectionFragment(); break; case R.id.ic_add: selectedFragment = new AddPostFragment(); break; case R.id

Embed Icon in WPF application

試著忘記壹切 提交于 2019-12-11 07:23:33
问题 I am using an icon in my application in two situations. In XAML as an Image for the Button using DynamicResource. In C# as NotifyIcon this.notifyIcon.Icon = new SystemDrawing.Icon("..//..//Shutdown.ico" ); My problem is if I delete the image the application not working. How can I bind the image with the exe file so that the application can run only with the exe file? 回答1: Add the icon to the project as a Resource (not Embedded Resource, there is a difference), then access it with using(Stream

Display correct fa fa icons inside phone and email input boxes

点点圈 提交于 2019-12-11 07:15:13
问题 Inside my form the email input box displays a green circle x when the email inside is correct. I would like it to display a green check mark circle icon like the input boxes above (first name & last name). In addition, the phone input box displays a red circle check mark icon when the number is invalid and I would like it to display a red circle x icon instead. If anyone knows how to achieve this your help is appreciated! Incorrect fa fa icon displaying on email and phone number: JSFiddle

XChangeProperty to change icon in unity bar and alt tab menu and window of running app?

别来无恙 提交于 2019-12-11 07:09:16
问题 For X11 systems I was trying to change the icon of the application during run time. This means that the window icon should change, the icon showed in alt+tab menu, and the icon in the unity bar. This is preview of ubuntu: ubuntu doesnt have a window icon, but other operating systems like metacity do. So I was thinking of using XChangeProperty like this: unsigned int buffer[] = {16, 16, 4294901760..............., 32, 32, 0............}; //ARGB 32bit packed array Display *d = XOpenDisplay(0);