icons

Create an icon in memory with win32 in python

大兔子大兔子 提交于 2019-12-08 09:58:59
问题 What's a good way to generate an icon in-memory in python? Right now I'm forced to use pygame to draw the icon, then I save it to disk as an .ico file, and then I load it from disk as an ICO resource... Something like this: if os.path.isfile(self.icon): icon_flags = win32con.LR_LOADFROMFILE | win32con.LR_DEFAULTSIZE hicon = win32gui.LoadImage(hinst, self.icon, win32con.IMAGE_ICON, 0, 0, icon_flags) ...where self.icon is the filename of the icon I created. Is there any way to do this in memory

How to use the icons of the “fas” “far” “fal” “fab” type from fontawesome in shiny?

走远了吗. 提交于 2019-12-08 09:18:18
问题 I can only user "fa" Style Prefix um shiny::icon() and which creates the code like <i class="fa fa-angle-left pull-right"></i> . How to user the others Style Prefix of fontawesome? 回答1: If the icon you want is in the list here: https://github.com/rstudio/shiny/blob/master/R/font-awesome.R then it will automatically change to use "fab" as the prefix - otherwise it will always use "fa" I think. The relevant code from inside shiny::icon is: if (!is.null(name)) { prefix_class <- prefix if (prefix

Glyphish Icons display in jQuery Mobile

China☆狼群 提交于 2019-12-08 07:31:18
问题 To start let me just say that I am new to jQuery as well as jQuery Mobile. I'm using the following CSS in the header. .nav-glyphish-example .ui-btn .ui-btn-inner { padding-top: 40px !important; } .nav-glyphish-example .ui-btn .ui-icon { width: 30px!important; height: 30px!important; margin-left: -15px !important; box-shadow: none!important; -moz-box-shadow: none!important; -webkit-box-shadow: none!important; -webkit-border-radius: none !important; border-radius: none !important; } #feeling

Where can I find Apple's standard source list / sidebar icons?

人走茶凉 提交于 2019-12-08 05:48:40
问题 I'm writing an app for OS X (in REALbasic, not Objective-C). I have implemented a source list (i.e. the sidebar in iTunes) in this app. Where on my system can I find the "standard" icons used on a sidebar, i.e: things like the "eject" and "battery" icon seen in iTunes when your iPod is plugged in. I've checked the iTunes package contents and have found a couple (stuff like the Music and TV shows icons) but that is all. Thanks, 回答1: The standard icons are those defined in Icon Services and

JavaFX 2 Window Icon not working [closed]

这一生的挚爱 提交于 2019-12-08 05:26:54
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I'm trying to add an Icon to my JavaFX 2 application, but the ways I have found don't seem to work. Image icon = new Image(getClass().getResourceAsStream("/images/icon.png")); stage.getIcons().add(icon); The icon is 32x32 in size. When I try Image icon = new Image("http://goo.gl/kYEQl"); It does

C# / WPF: Get icons used by shell

天涯浪子 提交于 2019-12-08 05:26:15
问题 I'm trying to develop an application that can show you the content of directories like the Windows Explorer (with file name and icon). I'm currently using this code: public class IconManager { public static ImageSource GetIcon(string path, bool smallIcon, bool isDirectory) { uint flags = SHGFI_ICON | SHGFI_USEFILEATTRIBUTES; if (smallIcon) flags |= SHGFI_SMALLICON; uint attributes = FILE_ATTRIBUTE_NORMAL; if (isDirectory) attributes |= FILE_ATTRIBUTE_DIRECTORY; SHFILEINFO shfi; if (0 !=

Qt Application Icon doesn't work

帅比萌擦擦* 提交于 2019-12-08 05:23:26
问题 I created a small .ico for my program. Now I want Qt to set it as the applications icon. I found this documentation but it doesn't seem to work : http://qt-project.org/doc/qt-4.8/appicon.html I did exactly what they want me to do. Create an myapp.rc file and write IDI_ICON102 ICON DISCARDABLE "Movie-World.ico" into it. -> Did that. Write RC_FILE += myapp.rc into your .pro file. -> Did that. When I compile and run, it doesn't work. I deleted the realese folder but still no changes. I restarted

Changing DesktopIcon.width on nimbus

耗尽温柔 提交于 2019-12-08 04:55:52
问题 I'm trying to change the JInternalFrame iconifying size, I've tried changing the L&F defaults with javax.swing.UIManager.put("DesktopIcon.width", 300); but it doesn't work on Nimbus, I've also tried changing the DesktopIconUI with javax.swing.UIManager.put("DesktopIconUI", javax.swing.plaf.basic.BasicDesktopIconUI.class.getName()); but as soon as I minimize the JInternalFrame it dissapears, any sugestions? 回答1: You might be able to override the getBoundsForIconOf(JInternalFrame) method of

Java Swing: popup : display small icon in menu

∥☆過路亽.° 提交于 2019-12-08 04:39:19
问题 I have a right click popup menu that works fine. I now want to add a little image next to the text. I managed to display the image in the popupmenu but its the full size version. what I want to know is: is there a way to automatically reize the icon to be the right size ( same as the text ) or do I have to resize the image? Jason 回答1: You have to resize the Icon to be whatever size you want it to be. Something like: ImageIcon icon = new ImageIcon( ... ); Image image = icon.getImage()

How can I create a border like this in Java?

梦想与她 提交于 2019-12-08 04:30:18
问题 I've been trying to replicate this border for hours without success: Any idea on how to do this? 回答1: This is Borders from SwingX (some older version), but I can't found this older repository right now by using this Image (cuold be colorized with un_belivable Colors and required another classes Painter and???) private static class RoundedBorder implements Border { private static BufferedImage img; static { try { img = ImageIO.read(RoundedBorder.class.getResource("resources/border.png")); }