I am creating the installer using the following command. I am giving jpackage the icon to use
jpackage --runtime-image hellofx --module hellofx/hellofx.HelloFX --win-shortcut --win-menu --icon smile.ico
When i install the program the icon is used for desktop shortcut but in the search toolbar it still displays the default java icon. Is there a way to use the given icon in search toolbar as well? I appreciate any help. thanks!
UPDATE:
here it seems the icons are correctly applied to app icons in search toolbar.
https://walczak.it/blog/distributing-javafx-desktop-applications-without-requiring-jvm-using-jlink-and-jpackage
UPDATE 2:
Start menu icon is correct
So i finally solved it. It was a caching issue like Campbell pointed out. For some reason the icon is cached. Here is an example.
I changed the icon to a camera icon. The new icons display in the desktop shortcut and in the start menu as shown below.
Before this icon i used a music icon. So in the search the old icon is still in place. So this icon is cached for some reason. Only if i change the app as well as icon then all icons are changed to the new icon. Maybe this is an issue with windows 10. So the issue is now solved.
Related
How can I disable the Java editor breadcrumb in Eclipse?
If you are referring to the breadcrumbs in the help file of a RCP application, there is only a manual way to do it.
Since Ganymede 3.4M5:
Michael Borgwardt mentions the toolbar icon
Slava Semushin provides a native shortcut based on Ctrl+3+bread, which points directly to the Toggle Java Editor Breadcrumb option.
Shachi reminds us below that you can right-click on any icon on the breadcrumb, and select the entry named "Hide Breadcrumb".
Original answer (manual way, through key mapping)
Find the file org.eclipse.help.webapp\advanced\breadcrumbs.css and replace its contents with.
.help_breadcrumbs {
display: none;
}
For the Java Editor breadcrumb, you need to assign a shortcut to the "Toggle Java Editor Breadcrumb" command (I have tested Alt+B, for instance)
That shortcut will make the breadcrumb bar appear/disappear at will.
With the editor window focussed, look for this icon in your toolbar:
And click on it. That's all. The icon is present by default, but can be deactivated, in which case you have to activated as in MvanGeest's answer.
Another way which works for me at Eclipse Indigo (3.7): press Ctrl+3 and type bread, after that click on item Toggle Java Editor Breadcrumb.
RightClick on any icon on breadcrumb.
There is an option named HIDE BREADCRUMB.
Click it and you are done. :D
Look for this icon in the toolbar:
This button toggles the Breadcrumb view on/off.
(I'm using Eclipse 3.7, and it's there by default)
Here it is :
In the toolbar, toggle bread crumb option.
Something like http://loadcontext.blogspot.com/2008/08/eclipse-34-breadcrumbs-hide-and-show.html?
Customize Perspective, choose the
Commands tab. In the Available command
group, choose Java Editor
Presentation. The Toolbar details
shows the button for Toggle
Breadcrumbs, which looks like a folder
with a C in a circle with a black
triangle on top of it.
Despite my absolute lack of experience with Eclipse, I suppose this setting must appear in other Presentation items too. After the button's enabled, all you have to do is click it. Or not?
Change property breadcrumb.org.eclipse.jdt.ui.JavaPerspective from true to false
in your org.eclipse.jdt.ui.prefs file.
In Juno: type 'Bread' and select 'Toggle Java Editor Breadcrumb'
It very simple just right click in your class editor then select bread crumb or directly right click in top of your class in tool bar then select hide breadcrumb then its done.
When you see the BreadCrumb toolbar, right-click on the green class icon and then from the menu options click on Hide Breadcrumb.
I have created a new Image Assets in the Drawable cus I need to insert a new image in my app, but every time I create a new image asset, the output turns to be no colour at all. I've attached the pic of it.
It's confusing and whenever I import it in my layout, it's just grey all over as you can see in the image. Why is it cus I can't find any ready solutions? Let me know if I'm overlooked.
I got the answer for my own question which I find it's useful for some who still do not know how to enable the Batch Drawable Import. It's easy and just need to download plugin and install. I've read that the latest version already has it and I've downloaded and reinstalled, but it didn't show as what I was expecting. The solution is to download and install it.
First, In Android Studio, go to Default Setting File --> Setting or you can simple Click the SDK Manager Icon
In the Default Setting, go to Plugins
In the search option, type Batch Drawable Import and you'll see there's Android Drawable Importer.
In my image, it's already installed, Click Install Plugin and just follow the instructions.
You'll have to restart Android Studio and try to create a new Batch Drawable Import and you'll find it there. ;) Thanks.
While creating a new asset in the drawable folder you need to set the
"Launcher icons"
in the
"Asset Type "
drop down
This will add the images in their original color and will not be greyed out. Also it is possible it adds the images in res/mipmap folder. You can move the images from mipmap folder to anywhere you want.
I Found the proper solution!
You just have to add this code where you created your NavigationView object!
NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
//add the line below and your icon will display as your .svg file
navigationView.setItemIconTintList(null);
navigationView.setNavigationItemSelectedListener(this);
When you create a Image Asset as Action bar and Tab icons in the newer version of Android Studio(2.2) it is automatically converted into grey scale,Choose theme from the drop down default is HOLO LIGHT choose custom and you could be able to give the color code,but this works only for sketches kinda images
To get color code
I am running Eclipse Mars on Ubuntu 15.04. I have seen instructions to change GTK3 tooltip fg/bg color at system-wide level. My question is how can I change the GTK3 tooltip fg/bg color only for Eclipse without affecting other applications.
(GTK3 and CSS are not my fields of expertise so I really need some help here)
I found a way to fix Eclipse tooltip color without falling back to GTK2 and without affecting any other application.
The fix is captured in a script and it can be accessed here.
https://github.com/KiranMohan/eclipse-gtk3-ubuntu
The script makes a copy of the Ambiance theme, modifies the tooltip color and then writes a launcher for eclipse with this new Theme.
How to apply GTK changes only to eclipse:
Somewhere on your home directory, create a gtkrc file (like: ~/.gtkrc-eclipse) with following content:
gtk-color-scheme = "selected_bg_color:#0AFC02\nselected_fg_color:#FFFFFF\norginal_selected_bg_color:#f07746\ntooltip_bg_color:#f5f5c5\ntooltip_fg_color:#000000"
Launch eclipse from command line like,
env GTK2_RC_FILES=/usr/share/themes/<Your current theme>/gtk-2.0/gtkrc:/home/<user name>/.gtkrc-eclipse '
env GTK2_RC_FILES=/usr/share/themes/Ambiance/gtk-2.0/gtkrc:/home/chandrayya/.gtkrc-eclipse '/opt/eclipse-3.3/eclipse'
You can find out your current theme by executing,
gsettings get org.gnome.desktop.interface gtk-theme
Choose your fg/bg color code.
Also refer this post Change Eclipse sidebar vertical scope highlighting.
I have enabled a new menu through plugin.xml using menuContribution, now I want to change the color and size of the text in this menu, how can I do this?
I don't think there is an API to change color/font on org.eclipse.swt.widgets.MenuItem
Mac OS X has built in function to show an "About" window.
On my program I can see the name of my head class and "version 1.0".
Where can I change this information? I am using NetBeans and there is nothing related to this setting I can find.
The place(s) to set these items is described in http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/07-NativePlatformIntegration/NativePlatformIntegration.html.
It is not difficult, but it isn't easy.
You can change the name that appears in the about dialog by editing your project's Run properties... the 'VM Options' property, specifically. You would add something like "-Xdock:name=BLAHBlahblah" to that property's text field. Your project will appear with thename BLAHBlahblah in the menubar AND the About dialog that opens when you select 'BLAHBlahblah->About BLAHBlahblah'
You can change the icon by applying the VM option -Xdock:icon, too.