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

Aleix Pol aleixpol at kde.org
Thu Mar 10 09:17:53 GMT 2016


On Thu, Mar 10, 2016 at 9:33 AM, Jaroslaw Staniek <staniek at kde.org> wrote:
> Update:
>
> Full (light) breeze.rcc theme file can be squashed to 5MiB using SVG
> optimizer SVGO, in a similar way to what Aleix's script does
> (https://quickgit.kde.org/?p=breeze-icons.git&a=commit&h=8a31ac8ac105) :)
>
> Good job, Aleix.
>
>
> On 8 March 2016 at 23:56, Jaroslaw Staniek <staniek at kde.org> wrote:
>>
>>
>> Hi, published a patch for Kexi with rough explanation and list of
>> features:
>>
>> https://phabricator.kde.org/D1092
>>
>>
>>
>> On 7 March 2016 at 17:52, Jaroslaw Staniek <staniek at kde.org> wrote:
>>>
>>>
>>> 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

\o/

Aleix



More information about the calligra-devel mailing list