|
From: sfeam (E. Merritt) <eam...@gm...> - 2012-03-12 03:29:59
|
On Sunday, 11 March 2012, Mojca Miklavec wrote:
> On Fri, Mar 9, 2012 at 06:14, sfeam (Ethan Merritt) wrote:
> > On Sunday, 04 March 2012, Mojca Miklavec wrote:
> >>
> >> Also, is there any chance to use some high resolution icon? I have
> >> created some PDF and SVG examples based on the original 16x16 image.
> >> I'm attaching a SVG (it has a tiny flaw though
> >
> > How does one "use" the icon? Do you just mean we would include it
> > in the distribution, for distro packages to copy into their preferred
> > icon directory during installation?
>
> No, at the moment Qt terminal uses
> setWindowIcon(QIcon(":/images/gnuplot"));
> which takes the icon
> src/qtterminal/images/icon32x32.xpm
> based on information
> <file alias="images/gnuplot">images/icon32x32.xpm</file>
> from
> src/qtterminal/QtGnuplotResource.qrc
>
> I think that simply replacing xpm file with svg file either in
> QtGnuplotResource.qrc or in source code should work
The documentation says:
"First, create an ICO format bitmap file that contains the icon image."
So I don't think svg is going to work.
The documentation then goes on to note that installation of icons under
OSX and linux varies widely with the platform. Here's what it says about
OSX:
"To ensure that the correct icon appears, both when the application
is being launched, and in the Finder, it is necessary to employ a
platform-dependent technique."
I have no idea what that means in the context of OSX (isn't it all one
"platform"?) but anyhow I have no idea how to do anything that works
cross-platform, and it least from the docs it seems svg is not supported.
But as always, if you send a patch I'd be happy to try it out on
my test machines.
Ethan
> (but I'm currently
> unable to compile Qt terminal to be able to test). Assuming that you
> are happy with the SVG image of course.
>
> >> : its vertical and
> >> horizontal line widths are slightly distorted, but I can create an
> >> image that is not if that "defect" is visible). The SVG could be used
> >> for icon in Qt. Of course one could try to create a better/nicer/3D
> >> icon, but at the moment having one high resolution (in this cane a
> >> vector image) would already be much better than having 32x32 pixels. I
> >> guess that this is not visible on Linux, but you can see how it
> >> compares with other programs on
> >> http://sourceforge.net/tracker/download.php?group_id=2055&atid=352055&file_id=432231&aid=3469808
>
> Mojca
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
|