RCC for icons - update: Re: Icons installed by apps

Jaroslaw Staniek staniek at kde.org
Mon Mar 7 16:52:07 GMT 2016


On 7 March 2016 at 17:29, Jaroslaw Staniek <staniek at kde.org> wrote:

>
> On 7 March 2016 at 13:05, Kåre Särs <kare.sars at iki.fi> wrote:
>
>> Hi,
>>
>> On Monday, March 07, 2016 12:41:52 PM Jaroslaw Staniek wrote:
>> > >
>> > > ​Thanks, it works on Windows (no platform theme).
>> > > ​​How to make it work on Linux too (KF5 5.19.0, Qt 5.5.1), i.e. I'd
>> like
>> > > to have only used icons from the .rcc regardless of availability of
>> > > FrameworkIntegrationPlugin.so KDEPlatformTheme.so?
>> > > ​
>> > > We're talking about this code:​
>> > >
>> > > ​https://quickgit.kde.org/?p=kate.git&a=blob&f=icons.h​​​
>> > >
>> > > As soon as QResource::registerResource("breeze.rcc") is called,
>> ":/icons"
>> > > is
>> > > ​appended to the theme search path (checked using
>> > > QIcon::themeSearchPaths()).
>> > >
>> > > There's a line QIcon::setThemeSearchPaths(QStringList() <<
>> > > QStringLiteral(":/icons")).
>> > >
>> > > - When I have this line enabled and I have no
>> > > FrameworkIntegrationPlugin.so & KDEPlatformTheme.so installed, no
>> icons
>> > > are
>> > > available at all
>>
>> Notice that the setThemeSearchPaths() call _replaces_ any previous search
>> paths. Is this your problem?
>>
>>
>>
> ​No.. but I got it sorted out after reading QIconTheme::QIconTheme and
> alike and re-reading the "The name should correspond to a directory name in
> the themeSearchPath() containing an index.theme file describing it's
> contents" sentence of  QIcon::setThemeName docs :)
>


​PS: If someone wants to experiment (I hear it's the case for KDevelop),
here is the
Breeze icons resource: http://kexi-project.org/tmp/breeze.rcc.bz2

For reference, Kexi icons: http://kexi-project.org/tmp/kexi_breeze.rcc.bz2
And recent commit that supports it all on Linux and Windows:
https://quickgit.kde.org/?p=scratch%2Fstaniek%2Fkexi3.git

-- 
regards, Jaroslaw Staniek

KDE:
: A world-wide network of software engineers, artists, writers, translators
: and facilitators committed to Free Software development - http://kde.org
Calligra Suite:
: A graphic art and office suite - http://calligra.org
Kexi:
: A visual database apps builder - http://calligra.org/kexi
Qt Certified Specialist:
: http://www.linkedin.com/in/jstaniek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20160307/22938dd9/attachment.htm>


More information about the calligra-devel mailing list