标签: icons

在InnoSetup中添加卸载图标

我是InnoSetup的初学者.

我有两个图标"iconnew_small.ico""iconnew_smallUninstall.ico",最后一个是反安装选项.所有文件都在目录中C:\mysoftware

我正在关注此示例,但安装后卸载图标为空(空)

Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"; IconFilename: "{app}\C:\mysoftware\iconnew_smallUninstall.ico"
Run Code Online (Sandbox Code Playgroud)

这全是innoSetup代码:

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Segmentation Accuracy Tool"
#define MyAppVersion "0.2 Beta"
#define MyAppPublisher "Gianni"
#define MyAppExeName "SegmentationAccuracy.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies …
Run Code Online (Sandbox Code Playgroud)

icons inno-setup uninstall

2
推荐指数
1
解决办法
2957
查看次数

有没有办法让Java中的READY .png图像变暗?

我有一个READY图像(图像的颜色是灰色的,它是GIVEN,即我不用Java创建它,否则我只是动态地改变颜色).图像形状奇特,即它不是矩形.我有一个透明的部分和"图像内容"部分(常规.png样式).我只需要使"图像内容"部分变得更暗.我尝试了以下方法:

public class ImageDarkener extends JFrame {
private JButton button;
private JLabel myImage;
public ImageDarkener()
{
createImageDarkener();
}
private void createImageDarkener() {
Container contentPane = getContentPane();
contentPane.setBackground(Color.WHITE);
contentPane.setLayout(null);

contentPane.setSize(900,600);

myImage = new JLabel();
myImage.setIcon(new ImageIcon("myImage.png"));
myImage.setBounds(403,31,200,200);
contentPane.add(myImage);

button = new JButton("Go darker");
button.setBounds(90,400, 100, 100);
contentPane.add(button);
button.addActionListener(
    new ActionListener()
    {
    public void actionPerformed(ActionEvent event) {
    buttonActionPerformed(event);
    }
}
);

setTitle("Image gets darker");
setSize(900,600);
setVisible(true);
setLocationRelativeTo(null);

}

private void buttonActionPerformed(ActionEvent event) {
myImage.darker();
     // Here I am stuck...I tried many combinations …
Run Code Online (Sandbox Code Playgroud)

java graphics icons png colors

2
推荐指数
1
解决办法
983
查看次数

没有任务栏图标的JFrame弹出窗口

我创建了从JFrame继承的通知窗口,但它们在Windows任务栏中显示为新图标.是否可以在出现通知时突出显示主应用程序图标(例如在Skype中,当新消息到来时)并且在任务栏中不显示通知窗口中的新图标?

这是弹出的代码:

public class NotificationWindow extends JFrame
{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    static private int m_count = 0;

    public NotificationWindow(String text)
    {
        super("NotificationWindow");
        setLayout(new GridBagLayout());

        setSize(300, 70);
        setLocationRelativeTo(null);

        setOpacity(0.77f);
        setUndecorated(true);
        setResizable(false);

        add(new JLabel(text));

        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent evt)
            {
                --m_count;
            }
        });

        ++m_count;
    }

    static public int GetWindowCount()
    {
        return m_count;
    }

    static public void ShowNotificationWindow(final String text)
    {
        // Determine if the GraphicsDevice supports translucency.
        GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment
                .getLocalGraphicsEnvironment();
        final …
Run Code Online (Sandbox Code Playgroud)

java icons taskbar highlight jframe

2
推荐指数
1
解决办法
1999
查看次数

在ActionBarSherlock中将位图设置为主图标

有没有办法将位图(表示从地址簿中检索的联系人照片)设置为ActionBarSherlock中的主页图标.

icons android bitmap actionbarsherlock

2
推荐指数
1
解决办法
2372
查看次数

应用程序图标在任务栏中是否正确,但在开始菜单中没有?

应用程序图标在任务栏上正确显示:

在此输入图像描述

但是在开始菜单上它不是:

在此输入图像描述

该图标已在XAML中定义,如下所示:

<Window Icon="icon.png">
Run Code Online (Sandbox Code Playgroud)

应用程序使用Visual Studio中的Build,Publish菜单中的ClickOnce发布.

在开始菜单中正确显示应用程序缺少什么?

wpf clickonce icons

2
推荐指数
1
解决办法
1407
查看次数

FontAwesome和Bootstrap图标是冲突的,并在彼此之上显示2个图标?

我的头脑:

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Open House Full Width Map</title>
    <meta name="description" content="A full width map for Openhouse.ca">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="css/newMap.css">
    <link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet">
    <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
    <script type="text/javascript" src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyB5pF1SXoI6fZ2fVvkfweFMM7B84Syt1RM&sensor=false"></script>
    <script type="text/javascript">
    function initialize() {
        var mapOptions = {
            center: new google.maps.LatLng(55.962422417922454, -96.79128437499999),
            zoom: 5,
            mapTypeId: google.maps.MapTypeId.ROADMAP,
            panControl: false,
            scaleControl: false,
            mapTypeControl: true,
            zoomControl: true,
            streetViewControl: true,
            mapTypeControlOptions: {
                style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
                position: google.maps.ControlPosition.TOP_RIGHT
            },
            zoomControlOptions: {
                style: google.maps.ZoomControlStyle.SMALL,
                position: google.maps.ControlPosition.RIGHT_TOP
            },
            streetViewControlOptions: …
Run Code Online (Sandbox Code Playgroud)

icons twitter-bootstrap font-awesome

2
推荐指数
1
解决办法
3045
查看次数

来自fontello的图标字体不与Meteor js合作

我已经从fontello下载了一个自定义图标字体,并打算在我的流星应用程序中使用它.我尝试了下载包附带的演示,字体显示正常.这是我的css:

@font-face {
 font-family: 'fontello';
 src: url('fonts/fontello.eot?98991264');
 src: url('fonts/fontello.eot?98991264#iefix') format('embedded-opentype'),
   url('fonts/fontello.woff?98991264') format('woff'),
   url('fonts/fontello.ttf?98991264') format('truetype'),
   url('fonts/fontello.svg?98991264#fontello') format('svg');
font-weight: normal;
font-style: normal;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
 font-family: "fontello";
 font-style: normal;
 font-weight: normal;
 speak: none;
 display: inline-block;
 text-decoration: inherit;
 width: 1em;
 margin-right: .2em;
 text-align: center;

 /* For safety - reset parent styles, that can break glyph codes*/
 font-variant: normal;
 text-transform: none;

 /* fix buttons height, for twitter bootstrap */
 line-height: 1em;

}

.icon-twitter:before { content: '\e805'; } /* '?' */
.icon-github-circled:before { …
Run Code Online (Sandbox Code Playgroud)

html css icons meteor fontello

2
推荐指数
1
解决办法
4305
查看次数

两个快捷方式与同一个应用程序的两个图标

因此,我希望为同一个应用程序添加另一个快捷方式,另一个快捷方式,应用程序抽屉中的可见,应该启动一个简单的活动/服务,

这是可能的,如果是的话怎么样?如果可能,程序化,

与<application>标签有关系吗?,

谢谢

icons android launcher manifest

2
推荐指数
1
解决办法
1523
查看次数

重命名WinForms表单的标题

如何重命名已创建的Windows窗体的名称?目前,其默认名称是Form1,当应用程序运行时,其名称显示在窗口的左上角. 如何将此文本重命名为MyForm

重构会更改.cs文件的名称,但窗口中的文本不会更改.此外,我尝试使用更改窗体Project->Properties->Browse to the location of the .ico file的默认图标,但默认图标没有更改.为什么不起作用?

c# icons rename winforms

2
推荐指数
1
解决办法
2万
查看次数

Android快捷方式位图启动器图标大小

我有问题找到我的快捷方式的正确的启动器图标大小.

在我的Nexus 7.2上,android.R.dimen.app_icon_size(参见代码)的值为96像素.但是,如果我在主屏幕的屏幕截图上测量其他应用的真实图标大小,则为120像素.创建一个shortshut后,它比所有其他应用程序图标(120px)更小(96像素)

在我的三星Galaxy SII android.R.dimen.app_icon_size是72.这匹配我的截图测量.

这里的结果

DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
Run Code Online (Sandbox Code Playgroud)

Nexus 7.2:

android.R.dimen.app_icon_size = 96
metrics.dip = 192
metrics.density = 2.0
metrics.densityDpi = 320
metrics.heightPixels = 1824
metrics.scaledDensity = 2.0
metrics.widthPixels = 1200
metrics.xdpi = 320.842
metrics.ydpi = 322.966
Run Code Online (Sandbox Code Playgroud)

三星SII:

android.R.dimen.app_icon_size = 72
metrics.dip = 108
metrics.density = 1.5
metrics.densityDpi = 240
metrics.heightPixels = 800
metrics.scaledDensity = 1.5
metrics.widthPixels = 480
metrics.xdpi = 217.71428
metrics.ydpi = 218.49463
Run Code Online (Sandbox Code Playgroud)

这是我的代码:

// Calculate launcher icon size
int size = (int) …
Run Code Online (Sandbox Code Playgroud)

icons android bitmap shortcut launcher

2
推荐指数
1
解决办法
2692
查看次数