[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    Re: RCC for icons - update: Re: Icons installed by apps
From:       Jaroslaw Staniek <staniek () kde ! org>
Date:       2016-03-10 8:33:18
Message-ID: CAOj7QQ28oQnz_pDJ5wrS-Hh0zhqoobWtxy+zqNLMjUWJyWojFw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@kde.org> wrote:
>
>>
>> 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
>



-- 
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">Update:<br><br>Full (light) \
breeze.rcc theme file can be squashed to 5MiB using SVG optimizer SVGO, in a similar \
way to what Aleix&#39;s script does (<a \
href="https://quickgit.kde.org/?p=breeze-icons.git&amp;a=commit&amp;h=8a31ac8ac105">https://quickgit.kde.org/?p=breeze-icons.git&amp;a=commit&amp;h=8a31ac8ac105</a>) \
:)<br><br></div><div class="gmail_default" \
style="font-family:monospace,monospace;font-size:small">Good job, Aleix.</div><div \
class="gmail_default" \
style="font-family:monospace,monospace;font-size:small"><br></div><div \
class="gmail_extra"><br><div class="gmail_quote">On 8 March 2016 at 23:56, Jaroslaw \
Staniek <span dir="ltr">&lt;<a href="mailto:staniek@kde.org" \
target="_blank">staniek@kde.org</a>&gt;</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"><br>Hi, published a patch for \
Kexi with rough explanation and list of features:<br><br><a \
href="https://phabricator.kde.org/D1092" \
target="_blank">https://phabricator.kde.org/D1092</a><br><br><br></div><div><div \
class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 7 March 2016 at \
17:52, Jaroslaw Staniek <span dir="ltr">&lt;<a href="mailto:staniek@kde.org" \
target="_blank">staniek@kde.org</a>&gt;</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>On 7 March 2016 at 17:29, \
Jaroslaw Staniek <span dir="ltr">&lt;<a href="mailto:staniek@kde.org" \
target="_blank">staniek@kde.org</a>&gt;</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 class="gmail_extra"><br><div \
class="gmail_quote"><span>On 7 March 2016 at 13:05, Kåre Särs <span \
dir="ltr">&lt;<a href="mailto:kare.sars@iki.fi" \
target="_blank">kare.sars@iki.fi</a>&gt;</span> wrote:<br></span><span><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>
&gt; &gt;<br>
&gt; &gt; ​Thanks, it works on Windows (no platform theme).<br>
&gt; &gt; ​​How to make it work on Linux too (KF5 5.19.0, Qt 5.5.1), i.e. I&#39;d \
like<br> &gt; &gt; to have only used icons from the .rcc regardless of availability \
of<br> &gt; &gt; FrameworkIntegrationPlugin.so KDEPlatformTheme.so?<br>
&gt; &gt; ​<br>
&gt; &gt; We&#39;re talking about this code:​<br>
&gt; &gt;<br>
&gt; &gt; ​<a href="https://quickgit.kde.org/?p=kate.git&amp;a=blob&amp;f=icons.h" \
rel="noreferrer" target="_blank">https://quickgit.kde.org/?p=kate.git&amp;a=blob&amp;f=icons.h</a>​​​<br>
 &gt; &gt;<br>
&gt; &gt; As soon as QResource::registerResource(&quot;breeze.rcc&quot;) is called, \
&quot;:/icons&quot;<br> &gt; &gt; is<br>
&gt; &gt; ​appended to the theme search path (checked using<br>
&gt; &gt; QIcon::themeSearchPaths()).<br>
&gt; &gt;<br>
&gt; &gt; There&#39;s a line QIcon::setThemeSearchPaths(QStringList() &lt;&lt;<br>
&gt; &gt; QStringLiteral(&quot;:/icons&quot;)).<br>
&gt; &gt;<br>
&gt; &gt; - When I have this line enabled and I have no<br>
&gt; &gt; FrameworkIntegrationPlugin.so &amp; KDEPlatformTheme.so installed, no \
icons<br> &gt; &gt; are<br>
&gt; &gt; 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 &quot;The  name \
should correspond to a directory name in the themeSearchPath()  containing an \
index.theme file describing it&#39;s contents&quot; sentence of    \
QIcon::setThemeName docs \
:)<span><br></span></div></div></div></div></div></blockquote></span><div><br><br><div \
style="font-family:monospace,monospace;font-size:small;display:inline">​PS: If \
someone wants to experiment (I hear it&#39;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>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>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" \
target="_blank">https://quickgit.kde.org/?p=scratch%2Fstaniek%2Fkexi3.git</a><br \
clear="all"></div></div></div><span></span><br></div></div></blockquote></div><br \
clear="all"><br>-- <br><div>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></div></div> </blockquote></div><br><br clear="all"><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)]

_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic