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

List:       kde-panel-devel
Subject:    Re: Review Request: kickoff-qml: TabBar button width
From:       "Marco Martin" <notmart () gmail ! com>
Date:       2012-07-26 10:21:35
Message-ID: 20120726102135.7172.99369 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On July 19, 2012, 9:04 a.m., Marco Martin wrote:
> > thanks, wouldn;t have remembered ;)
> > =

> > the changes seems good, but i'm not sure about giving kickoff a copy of=
 the tabbar.
> > =

> > any reason this is not proposed as a patch for the tabbar component its=
elf?
> =

> Greg T wrote:
>     Of course I could do that. But I didn't know if such a general change=
 would be welcome. Maybe people love equally sized blocks?
> =

> Marco Martin wrote:
>     i really think we shouldn't start to customize the components in a si=
ngle applet like that.
>     =

>     what could be done is:
>     as implicit width of the tabbar should be a width such that all tabs =
have the same width that is the one of the largest tab, so by default it wo=
uld attempt to never elide (probably some work in the bindings is needed to=
 export this as preferred width of the applet).
>     =

>     if it's forced to be smaller it starts to elide the text.
> =

> Greg T wrote:
>     I'm not sure if I can follow you, but basically you describe the curr=
ent behavior. Every TabButton got a 'implicitHeight: label.paintedHeight' a=
nd the layout calculates a minimum implicitWidth that doesn't elide text. T=
he export is missing, though.

basically would be kickoff opening by default wide enough to make all text =
fit (maybe still not going over a maximum width)

i'm not sure what's still missing in the bindings to make this feasible tou=
gh


- Marco


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105405/#review16103
-----------------------------------------------------------


On July 1, 2012, 8:42 p.m., Greg T wrote:
> =

> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105405/
> -----------------------------------------------------------
> =

> (Updated July 1, 2012, 8:42 p.m.)
> =

> =

> Review request for Plasma, Marco Martin and Martin Gr=C3=A4=C3=9Flin.
> =

> =

> Description
> -------
> =

> Heda,
> This patch addresses the layout of the tab bar. The tab buttons are now s=
ized depending of their text width.
> =

> I just copied the tabbar code from kde-runtime and exchanged taskbarLayou=
t. My main question is: Can I do this more elegantly without copying TabBar=
.qml?
> =

> =

> Diffs
> -----
> =

>   plasma/desktop/applets/kickoff/package/contents/ui/KickoffTabBar.qml PR=
E-CREATION =

>   plasma/desktop/applets/kickoff/package/contents/ui/Private/TabBarLayout=
.qml PRE-CREATION =

>   plasma/desktop/applets/kickoff/package/contents/ui/kickoff.qml 4d53208 =

> =

> Diff: http://git.reviewboard.kde.org/r/105405/diff/
> =

> =

> Testing
> -------
> =

> =

> Thanks,
> =

> Greg T
> =

>


[Attachment #5 (text/html)]

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





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On July 19th, 2012, 9:04 a.m., <b>Marco Martin</b> \
wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; \
padding-left: 10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">thanks, \
wouldn;t have remembered ;)

the changes seems good, but i&#39;m not sure about giving kickoff a copy of the \
tabbar.

any reason this is not proposed as a patch for the tabbar component itself?</pre>
 </blockquote>




 <p>On July 19th, 2012, 12:55 p.m., <b>Greg T</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Of course I could do \
that. But I didn&#39;t know if such a general change would be welcome. Maybe people \
love equally sized blocks?</pre>  </blockquote>





 <p>On July 19th, 2012, 2:23 p.m., <b>Marco Martin</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">i really think we \
shouldn&#39;t start to customize the components in a single applet like that.

what could be done is:
as implicit width of the tabbar should be a width such that all tabs have the same \
width that is the one of the largest tab, so by default it would attempt to never \
elide (probably some work in the bindings is needed to export this as preferred width \
of the applet).

if it&#39;s forced to be smaller it starts to elide the text.</pre>
 </blockquote>





 <p>On July 20th, 2012, 6 p.m., <b>Greg T</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I&#39;m not sure if I \
can follow you, but basically you describe the current behavior. Every TabButton got \
a &#39;implicitHeight: label.paintedHeight&#39; and the layout calculates a minimum \
implicitWidth that doesn&#39;t elide text. The export is missing, though.</pre>  \
</blockquote>








</blockquote>

<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">basically would be \
kickoff opening by default wide enough to make all text fit (maybe still not going \
over a maximum width)

i&#39;m not sure what&#39;s still missing in the bindings to make this feasible \
tough</pre> <br />








<p>- Marco</p>


<br />
<p>On July 1st, 2012, 8:42 p.m., Greg T wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;">  <tr>
  <td>

<div>Review request for Plasma, Marco Martin and Martin Gräßlin.</div>
<div>By Greg T.</div>


<p style="color: grey;"><i>Updated July 1, 2012, 8:42 p.m.</i></p>






<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;">Heda, This patch addresses the layout of the tab bar. The tab buttons \
are now sized depending of their text width.

I just copied the tabbar code from kde-runtime and exchanged taskbarLayout. My main \
question is: Can I do this more elegantly without copying TabBar.qml?</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>plasma/desktop/applets/kickoff/package/contents/ui/KickoffTabBar.qml <span \
style="color: grey">(PRE-CREATION)</span></li>

 <li>plasma/desktop/applets/kickoff/package/contents/ui/Private/TabBarLayout.qml \
<span style="color: grey">(PRE-CREATION)</span></li>

 <li>plasma/desktop/applets/kickoff/package/contents/ui/kickoff.qml <span \
style="color: grey">(4d53208)</span></li>

</ul>

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




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








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



_______________________________________________
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