[prev in list] [next in list] [prev in thread] [next in thread]
List: calligra-devel
Subject: Re: RCC for icons - update: Re: Icons installed by apps
From: Jaroslaw Staniek <staniek () kde ! org>
Date: 2016-03-07 16:52:07
Message-ID: CAOj7QQ2Betn6JjB64RprTLp044086NJs=h4_qJgczNXxgZG0Cw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On 7 March 2016 at 17:29, Jaroslaw Staniek <staniek@kde.org> wrote:
>
> On 7 March 2016 at 13:05, Kåre Särs <kare.sars@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
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_default" \
style="font-family:monospace,monospace;font-size:small"></div><div \
class="gmail_extra"><br><div class="gmail_quote">On 7 March 2016 at 17:29, Jaroslaw \
Staniek <span dir="ltr"><<a href="mailto:staniek@kde.org" \
target="_blank">staniek@kde.org</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div \
style="font-family:monospace,monospace;font-size:small"></div><div \
class="gmail_extra"><br><div class="gmail_quote"><span class="">On 7 March 2016 at \
13:05, Kåre Särs <span dir="ltr"><<a href="mailto:kare.sars@iki.fi" \
target="_blank">kare.sars@iki.fi</a>></span> wrote:<br></span><span \
class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br> <span><br>
On Monday, March 07, 2016 12:41:52 PM Jaroslaw Staniek wrote:<br>
> ><br>
> > Thanks, it works on Windows (no platform theme).<br>
> > How to make it work on Linux too (KF5 5.19.0, Qt 5.5.1), i.e. I'd \
like<br> > > to have only used icons from the .rcc regardless of availability \
of<br> > > FrameworkIntegrationPlugin.so KDEPlatformTheme.so?<br>
> > <br>
> > We're talking about this code:<br>
> ><br>
> > <a href="https://quickgit.kde.org/?p=kate.git&a=blob&f=icons.h" \
rel="noreferrer" target="_blank">https://quickgit.kde.org/?p=kate.git&a=blob&f=icons.h</a><br>
> ><br>
> > As soon as QResource::registerResource("breeze.rcc") is called, \
":/icons"<br> > > is<br>
> > appended to the theme search path (checked using<br>
> > QIcon::themeSearchPaths()).<br>
> ><br>
> > There's a line QIcon::setThemeSearchPaths(QStringList() <<<br>
> > QStringLiteral(":/icons")).<br>
> ><br>
> > - When I have this line enabled and I have no<br>
> > FrameworkIntegrationPlugin.so & KDEPlatformTheme.so installed, no \
icons<br> > > are<br>
> > available at all<br>
<br>
</span>Notice that the setThemeSearchPaths() call _replaces_ any previous search<br>
paths. Is this your problem?<br>
<span><font color="#888888"><br>
<br></font></span></blockquote></span><div><br><div \
style="font-family:monospace,monospace;font-size:small">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 :)<span \
class=""><br></span></div></div></div></div></div></blockquote><div><br><br><div \
class="gmail_default" \
style="font-family:monospace,monospace;font-size:small;display:inline">PS: If \
someone wants to experiment (I hear it's the case for KDevelop), here is the \
<br>Breeze icons resource: <a href="http://kexi-project.org/tmp/breeze.rcc.bz2" \
target="_blank">http://kexi-project.org/tmp/breeze.rcc.<span \
class="">bz2</span></a><br><br>For reference, Kexi icons: <a \
href="http://kexi-project.org/tmp/kexi_breeze.rcc.bz2" \
target="_blank">http://kexi-project.org/tmp/kexi_breeze.rcc.<span \
class="">bz2</span></a><br>And recent commit that supports it all on Linux and \
Windows:<br><a href="https://quickgit.kde.org/?p=scratch%2Fstaniek%2Fkexi3.git">https://quickgit.kde.org/?p=scratch%2Fstaniek%2Fkexi3.git</a><br \
clear="all"></div></div></div><br>-- <br><div class="gmail_signature">regards, \
Jaroslaw Staniek<br><br>KDE:<br>: A world-wide network of software engineers, \
artists, writers, translators<br>: and facilitators committed to Free Software \
development - <a href="http://kde.org" target="_blank">http://kde.org</a><br>Calligra \
Suite:<br>: A graphic art and office suite - <a href="http://calligra.org" \
target="_blank">http://calligra.org</a><br>Kexi:<br>: A visual database apps builder \
- <a href="http://calligra.org/kexi" \
target="_blank">http://calligra.org/kexi</a><br>Qt Certified Specialist:<br>: <a \
href="http://www.linkedin.com/in/jstaniek" \
target="_blank">http://www.linkedin.com/in/jstaniek</a></div> </div></div>
[Attachment #6 (text/plain)]
_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic