icons

Bootstrap Glyphicons datetimepicker change icons

血红的双手。 提交于 2019-12-30 22:30:07
问题 I am using Bootstrap datetimepicker https://eonasdan.github.io/bootstrap-datetimepicker/ As mentioned in the document I was successfully able to change the up, down arrows using below code. $('#datetimepicker7').datetimepicker({ sideBySide: true, icons: { up: "fa fa-chevron-circle-up", down: "fa fa-chevron-circle-down", } }); May I know how to change the left, right icons of the calendar? For easy understanding I have highlighted the icons to be changes in below image. Any help would be

JTabbedPane: tab placement set to LEFT but icons are not aligned

不羁岁月 提交于 2019-12-30 13:51:27
问题 I have a JTabbedPane with tab placement set to LEFT. The problem is that icons in each tab are not vertically aligned with one another. Consider this picture: As you can see the icon of "Editar Protocolo" (second tab) is not perfectly aligned with the icon of "Distribuir Protocolo" (first tab) and this also happen with the other tabs. I want all icons be vertically aligned to the left. This is the code I'm using to set tab components: ... jtabbedPane.setTabComponentAt(1, configurarJtabbedPane

ExtractAssociatedIcon returns null

北慕城南 提交于 2019-12-30 10:35:18
问题 I'm using the ExtractAssociatedIcon method to retrieve the icon for the file. My hope is to retrieve the same icon that a user would see in their explorer window. public static Icon GetIcon(string fileName) { try { Icon icon = Icon.ExtractAssociatedIcon(fileName); return icon; } catch { return null; } } This works 99% of the time. However, if the user has linked to a file on a shared path, such as \\SOME_SERVER\my documents\this file.pdf it returns null. It falls through the "catch" with the

How to create an Icon file that contains Multiple Sizes / Images in C#

白昼怎懂夜的黑 提交于 2019-12-30 08:29:22
问题 How do I create an icon file that contains multiple sizes? I know that I create a icon from a bitmap using Icon.FromHandle() but how do I add another image / size to that icon? Edit: I need to do this in my application, so I cannot execute an external application to do the combining. 回答1: Quick CYA: I just did a Google search, and have not tested the method below. YMMV. I found this article, which mentions a class that does this (albeit in VB.Net, but easy enough to translate), and tells how

How to set icon in ListPreference's item in android

丶灬走出姿态 提交于 2019-12-30 07:49:16
问题 I want to set the icon in ListPreference items in android. What to write in ListPreference or where to write to set the list items icon? 回答1: You need to use a custom layout for your ListPreference . eg: <android.preference.ListPreference android:layout="@layout/your_custom_layout" .... /> And add what you want to your custom layout. eg: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android

Building Eclipse IDE from scratch - making bigger icons sometimes successful

会有一股神秘感。 提交于 2019-12-30 07:01:08
问题 Even the newest Eclipse Neon edition has still somewhat small icons on a 4k display. That is why I'm trying to make them bigger. I resorted to building the Eclipse IDE from scratch for that purpose. Please read this StackOverflow question to see how I did that: Building Eclipse IDE from scratch - how to choose CDT over JDT? I wrote a Windows batch file that runs through all the folders and changes the size of every icon it can find. In my batch file, I presume that every .png , .gif , .bmp ,

How to set icon on file or directory using CLI on OS X?

守給你的承諾、 提交于 2019-12-30 06:48:08
问题 To set an icon on a file or directory is straight forward using the "Get Info" dialog in Finder. copy image from e.g. Preview open "Get Info" on file or directory press TAB to select the icon paste Cmd-V But how do you do this using the command line? 回答1: Here is a bash script "setIcon.sh" for it #!/bin/sh # Sets an icon on file or directory # Usage setIcon.sh iconimage.jpg /path/to/[file|folder] iconSource=$1 iconDestination=$2 icon=/tmp/`basename $iconSource` rsrc=/tmp/icon.rsrc # Create

How to set icon on file or directory using CLI on OS X?

有些话、适合烂在心里 提交于 2019-12-30 06:44:51
问题 To set an icon on a file or directory is straight forward using the "Get Info" dialog in Finder. copy image from e.g. Preview open "Get Info" on file or directory press TAB to select the icon paste Cmd-V But how do you do this using the command line? 回答1: Here is a bash script "setIcon.sh" for it #!/bin/sh # Sets an icon on file or directory # Usage setIcon.sh iconimage.jpg /path/to/[file|folder] iconSource=$1 iconDestination=$2 icon=/tmp/`basename $iconSource` rsrc=/tmp/icon.rsrc # Create

Add an image or icon to primefaces tab header

梦想与她 提交于 2019-12-30 05:46:06
问题 im trying to use an image /icon on a tab header instead of text title(or may using both of them), i was testing using titleStyleClass seting an image background but doesnt work my primefaces tab: <p:tab titleStyleClass="tCliente" title="Vehiculo"> My css style .tCliente { background-image: url(../images/logo_tropidatos.gif); } Thanks for your help :D 回答1: On PrimeFaces 3.0 and newer you can add a facet to override title on tabs: <p:tabView> <p:tab> <!-- overrides title on tab--> <f:facet name

How to change an icon for one single file of the specific type?

ぃ、小莉子 提交于 2019-12-30 04:32:10
问题 I know how to change an icon for a whole file type using registry and file type association. I also know how to change an icon for a separate folder using desktop.ini file. My questions is whether it is possible to change an icon for one specific file , let's say one.doc file? I cannot find a way doing it, yet some upload programs seem to be able to change an icon of the currently uploaded file, while all other files of this type stay with the standard icon. How do they do it? I can accept a