icons

Increasing the icon size in android Launcher and All apps page

馋奶兔 提交于 2019-12-24 14:17:14
问题 I want to increase the app icon size in the Launcher and All apps page.We tried to set the android:rowHeight in GridView to 200dip in all_apps_2d.xml,but this doesnot have any affect in increasing the icon size. Can anyone help me in increasing the app icon size in a gridview. Thanks, Riyaz 回答1: I think you should rather create a new icon of your desired size (i.e. 200*200 px). That will do it. 来源: https://stackoverflow.com/questions/11223979/increasing-the-icon-size-in-android-launcher-and

Bad Quality with Icon.ExtractAssociatedIcon function

只愿长相守 提交于 2019-12-24 13:53:58
问题 I try to fetch the icon from an exe, where I have used the below snippet C# FileStream fs = new FileStream(icoFileNam, FileMode.OpenOrCreate); Icon ico = Icon.ExtractAssociatedIcon(exefilePath); ico.Save(fs); The image saved lacks quality. I have saved the image as .ico file. Can anyone knows how to retain the original quality of the icon present in the exefile? 回答1: In the most common cases you can use the extracted icon bitmap data via the Icon.ToBitmap() method. You can save this image to

Icon font (@font-face) not rendering on localhost

孤街醉人 提交于 2019-12-24 13:32:13
问题 I have the font-awesome icon-font working on my locahost as well as my mysite.com which are both nginx servers. Strangely, when I tried to implement a similar icon font set from Glyphicons the icons only render on mysite.com but not on my localhost. Here's what the icons look like normally vs. how they look on my localhost: normal: busted: The problem is that the font-family: 'Glyphicons' attribute is not being recognized on my localhost because simply commenting out the font CSS property on

How to increase icon size of actionButton in SherlockActionBar?

心已入冬 提交于 2019-12-24 12:19:22
问题 To define the actionButton and set its icon, I would: <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/m_login" android:enabled="true" android:showAsAction="always" android:icon="@drawable/login"/> </menu> The resulted icon(drawable/ldpi) looks very small by default: (Any way to increase the size?) Here's the icon: 回答1: First of all I suggest you to try with different sizes of the icon which you want, without no paddings until you achieve your goal. If

Prevent SVG background bleed for icon?

白昼怎懂夜的黑 提交于 2019-12-24 11:59:34
问题 The goal is to prevent background bleed of SVG icons so they can appear as standalone files. Many answers to similar questions suggest putting a DIV or other container around the SVG element to prevent bleed, but the goal is to make the SVG icon stand alone without any dependency on a container. Prepending a rect element to act as a background element doesn't work reliably as this method breaks for certain viewport aspect ratios. Is this possible? Note: to see the flaw, you must download and

UI5 StandardListItem DetailAndActive change Icon

99封情书 提交于 2019-12-24 10:56:03
问题 I would like to change the standard "pen" icon of the StandardListItem of type DetailAndActive . Is there a way to do so? my XML so far: <List id="master1List" items="{/path}" mode="{device>/listMode}" select="onSelect" itemPress="showDetail" growing="true" growingScrollToLoad="true"> <items> <StandardListItem type="DetailAndActive" activeIcon="sap-icon://message-information" id="master1ListItem" press="onSelect" title="{title}"> </StandardListItem> </items> </List> As far as I know there are

Qt - Get QPushButton icon name

大憨熊 提交于 2019-12-24 10:49:10
问题 I have a two state QPushButton. I want to associate an icon to each state. It is like Play|Pause buttons in music players. To do so, I would like to get the current icon name in order to know what the next icon to set will be. I could subclass QPushButton but is it worth it? 回答1: Use QPushButton::icon() and QIcon::name() to get the icon name. 回答2: Instead of setting an icon based on the QPushButton 's state, set one QIcon that has two states, Qt will select the correct icon if you use it with

How to get icon/icon's path of running app in linux/windows?

谁说胖子不能爱 提交于 2019-12-24 10:10:02
问题 I'd like to have a list of open windows and its icons and process it with python. I thought I was close with xprop and wmctrl, but I can't use it for my purpose. I can get a list of open windows with wmctrl -l , but no idea how get an icon/icon path for any of the listed controls. Please, help :) 回答1: You can use the module wnck and gtk. For instance: import pygtk pygtk.require('2.0') import gtk import wnck screen = wnck.screen_get_default() while gtk.events_pending(): gtk.main_iteration

How to overlay an icon image on top of an exisiting view

爱⌒轻易说出口 提交于 2019-12-24 10:08:13
问题 This is a two part question. I have an image of a warehouse that I would like to divide it into regions (A,B,C,D,E & F) where each letter represents a storage in the warehouse. If the user selects storage "B" then I would like to programmatically overlay an icon over the region on the images that is designated for "B". Question: What is a good way to subdivide the image into regions that will describe each of the storage room? How to programmatically place an icon over the correct region?

Icons not loading (empty image) in R Leaflet with Shiny

余生颓废 提交于 2019-12-24 09:58:44
问题 [R-3.4.3 64-bit, RStudio, shinydashboard_0.6.1, shiny_1.0.5, leaflet.extras_0.2, Chrome] I'm making icons to use in R/Leaflet with Shiny and all im getting is the below, but i've no idea why: This is using the toy example from here: oceanIcons <- iconList( ship = makeIcon("ferry-18.png", "ferry-18@2x.png", 18, 18), pirate = makeIcon("danger-24.png", "danger-24@2x.png", 24, 24) ) # Some fake data df <- sp::SpatialPointsDataFrame( cbind( (runif(20) - .5) * 10 - 90.620130, # lng (runif(20) - .5)