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

List:       kde-panel-devel
Subject:    Re: Review Request 119534: take defaults from a plasma look and feel package, if available
From:       "David Edmundson" <david () davidedmundson ! co ! uk>
Date:       2014-08-04 18:02:47
Message-ID: 20140804180247.20974.99736 () probe ! kde ! org
[Download RAW message or body]

--===============8876312783329529237==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119534/#review63812
-----------------------------------------------------------



src/platformtheme/khintssettings.cpp
<https://git.reviewboard.kde.org/r/119534/#comment44468>

    This is broken I think.
    
    If I have my preferred style set to windows because the list already contains \
that it won't change anything.  
    This means my list is still oxygen, fusion, windows in that order.
    
    It think it should be
    
    if (!lnfStyle.isEmpty()) {
       styleNames.removeOne(lnfStyle);
       styleNames.prepend(lnfStyle);
    }
    
    or we could change line 76 to use readConfigValue ?


- David Edmundson


On Aug. 4, 2014, 3:18 p.m., Marco Martin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119534/
> -----------------------------------------------------------
> 
> (Updated Aug. 4, 2014, 3:18 p.m.)
> 
> 
> Review request for KDE Frameworks and Plasma.
> 
> 
> Repository: frameworkintegration
> 
> 
> Description
> -------
> 
> there will be support for some kind of "mega theme" that besides providing files \
> for splashscreen, lockscreen etc, will define what defaults to use among icons, \
> colors, fonts etc. 
> This is a first start of it for reading the defaults. The theme file is stored in a \
> plasma package, but the patch resolves the correct path by hand, not requiring \
> linking to libplasma. right now only a couple of settings is used, mostly to see if \
> the direction is good. 
> 
> Diffs
> -----
> 
> src/platformtheme/khintssettings.h 57f1864 
> src/platformtheme/khintssettings.cpp f9e068d 
> 
> Diff: https://git.reviewboard.kde.org/r/119534/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Marco Martin
> 
> 


--===============8876312783329529237==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit




<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">  \
<tr>  <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/119534/">https://git.reviewboard.kde.org/r/119534/</a>
  </td>
    </tr>
   </table>
   <br />











<div>



<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;">  <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;">  <a \
href="https://git.reviewboard.kde.org/r/119534/diff/3/?file=294399#file294399line81" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/platformtheme/khintssettings.cpp</a>  <span style="font-weight: \
normal;">

     (Diff revision 3)

    </span>
   </th>
  </tr>
 </thead>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th>  <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>  <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">81</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span \
class="k">if</span> <span class="p">(</span><span class="o">!</span><span \
class="n">lnfStyle</span><span class="p">.</span><span class="n">isEmpty</span><span \
class="p">()</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span \
class="n">styleNames</span><span class="p">.</span><span \
class="n">contains</span><span class="p">(</span><span class="n">lnfStyle</span><span \
class="p">))</span> <span class="p">{</span></pre></td>  </tr>

 </tbody>

</table>

 <div style="margin-left: 2em;">

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">This \
is broken I think.</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">If I have my preferred style set to \
windows because the list already contains that it won't change anything.</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">This means my list is still oxygen, fusion, windows in that order.</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">It think it should be</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">if \
(!lnfStyle.isEmpty()) {<br style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: normal;" />  styleNames.removeOne(lnfStyle);<br \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
normal;" />  styleNames.prepend(lnfStyle);<br style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: normal;" /> }</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">or we could change line 76 to use readConfigValue \
?</p></pre>  </div>
</div>
<br />



<p>- David Edmundson</p>


<br />
<p>On August 4th, 2014, 3:18 p.m. UTC, Marco Martin wrote:</p>









<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;">  <tr>
  <td>

<div>Review request for KDE Frameworks and Plasma.</div>
<div>By Marco Martin.</div>


<p style="color: grey;"><i>Updated Aug. 4, 2014, 3:18 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
frameworkintegration
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">there will be support for some kind of "mega theme" \
that besides providing files for splashscreen, lockscreen etc, will define what \
defaults to use among icons, colors, fonts etc.</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">This \
is a first start of it for reading the defaults. The theme file is stored in a plasma \
package, but the patch resolves the correct path by hand, not requiring linking to \
libplasma.<br style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: normal;" /> right now only a couple of settings is used, mostly \
to see if the direction is good.</p></pre>  </td>
 </tr>
</table>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>src/platformtheme/khintssettings.h <span style="color: \
grey">(57f1864)</span></li>

 <li>src/platformtheme/khintssettings.cpp <span style="color: \
grey">(f9e068d)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/119534/diff/" style="margin-left: \
3em;">View Diff</a></p>






  </td>
 </tr>
</table>








  </div>
 </body>
</html>


--===============8876312783329529237==--



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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