icons

How to set a custom icon in dataview with bootstrap theme

我的梦境 提交于 2020-02-08 07:16:57
问题 I want to set a custom icon with glyphicons or custom uploaded icon on xpages dataview, but the icon always defaults to file icon. Im using bootstrap theme and latest xpages extension lib (r10). I want to change the icon in the dataview document row, not the categorization icon. The code with bootstrap theme always defaults to this code. <div class="glyphicon glyphicon-file xspReadIcon"></div> I tried with: <xe:iconEntry selectedValue="read" url="/legalforms.gif" styleClass="hidden-xs"></xe

WPF MenuItem.Icon dimensions

浪尽此生 提交于 2020-02-06 03:58:12
问题 So I have a MenuItem (within a ContextMenu, if it really makes a difference, don't think it does). I want to display an icon within the MenuItem using the MenuItem.Icon property. Here is XAML code that does this: <MenuItem Header="MenuItem1"> <MenuItem.Icon> <Image Source="[pathtoimage]"/> </MenuItem.Icon> </MenuItem> This works. But what if I want to specify the size of the icon with Height and Width ? Search on the web reveals that it should be 32, some say it should be 20. 20 works the

iPhone Simulator Icon Black

别等时光非礼了梦想. 提交于 2020-02-05 08:20:13
问题 I have two Icon files in my plist: icon.png icon@2x.png Both are added to my project, added to the target and are 57x57 and 114x114 pixels respectively, both 72 dpi. They are both pngs generated from a .svg. I filled out the transparency with white. The rest of the coloring is black. I have tried deleting the app, clearing derived data and re-running. Why is this icon showing a black square in the iPhone 6 simulator? EDIT: Tried renaming to capital I in Icon.png and Icon@2x.png. Wiped app,

iPhone Simulator Icon Black

允我心安 提交于 2020-02-05 08:19:41
问题 I have two Icon files in my plist: icon.png icon@2x.png Both are added to my project, added to the target and are 57x57 and 114x114 pixels respectively, both 72 dpi. They are both pngs generated from a .svg. I filled out the transparency with white. The rest of the coloring is black. I have tried deleting the app, clearing derived data and re-running. Why is this icon showing a black square in the iPhone 6 simulator? EDIT: Tried renaming to capital I in Icon.png and Icon@2x.png. Wiped app,

iPhone Simulator Icon Black

自古美人都是妖i 提交于 2020-02-05 08:19:21
问题 I have two Icon files in my plist: icon.png icon@2x.png Both are added to my project, added to the target and are 57x57 and 114x114 pixels respectively, both 72 dpi. They are both pngs generated from a .svg. I filled out the transparency with white. The rest of the coloring is black. I have tried deleting the app, clearing derived data and re-running. Why is this icon showing a black square in the iPhone 6 simulator? EDIT: Tried renaming to capital I in Icon.png and Icon@2x.png. Wiped app,

How to get a Window's Icon in C#

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-04 08:48:30
问题 How can I get a Window's icon from its Pointer or Process/Process Name? The Icon shown in the corner of the Window or on the Task-bar or in the ALT-Tab menu. 回答1: read about Icon.ExtractAssociatedIcon : Returns an icon representation of an image that is contained in the specified file. private void ExtractAssociatedIconEx() { Icon ico = Icon.ExtractAssociatedIcon(@"C:\WINDOWS\system32\notepad.exe"); this.Icon = ico; } http://msdn.microsoft.com/en-us/library/system.drawing.icon

How to render icon fonts on HTML canvas and Material Design icon fonts in particular?

百般思念 提交于 2020-02-03 09:26:06
问题 This wonderful answer details how to include icons from FontAwesome in a HTML canvas. Adapting the code for icon font from Material Design doesn't work, however. All the code is the same except for replacing FontAwesome values for Material Design values. Code below. Codepen: https://codepen.io/Crashalot/pen/dyyEPWV 1) How do you incorporate icons from Material Design in HTML canvas? 2) How do you incorporate icons from any icon font (e.g., https://github.com/framework7io/framework7-icons)?

How do you draw an icon inside a window in C++ WINAPI?

半世苍凉 提交于 2020-02-03 02:11:09
问题 what I'm trying to do is to create chess game in C++ through WINAPI, and since I haven't ever studied them at School I'm having some problems (online documentation is quite bad, I wasn't able to find any example of how to do this) with printing an .ico file with transparency inside my window. I aldready managed to do it with a bitmap image but my Photoshop doesn't let me save a .bmp file with alpha channels and I had to go for something supported by WINAPI and allowed transparency (therefore

How can I dynamically load an icon using its snake_case name (React, material-ui)

核能气质少年 提交于 2020-02-01 09:13:07
问题 Normally I'd use material-ui icons by importing them directly per the material-ui instructions. But I have a text tag, which is the actual icon name (like calendar_view_day ) and need to get and render an icon component from it dynamically. How can I something like: render() { return ( <Icon name="calendar_view_day" color="primary" /> ) } Instead of: render() { return ( <CalendarViewDay color="primary" /> // Imported by name ) } 回答1: OK, so I massively overthought this. Correct answer Turns

How can I dynamically load an icon using its snake_case name (React, material-ui)

女生的网名这么多〃 提交于 2020-02-01 09:12:30
问题 Normally I'd use material-ui icons by importing them directly per the material-ui instructions. But I have a text tag, which is the actual icon name (like calendar_view_day ) and need to get and render an icon component from it dynamically. How can I something like: render() { return ( <Icon name="calendar_view_day" color="primary" /> ) } Instead of: render() { return ( <CalendarViewDay color="primary" /> // Imported by name ) } 回答1: OK, so I massively overthought this. Correct answer Turns