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

List:       kde-panel-devel
Subject:    Re: System tray: size of icons
From:       Dmitry <dmitry.ashkadov () rosalab ! ru>
Date:       2012-08-14 18:15:53
Message-ID: 502A95D9.1030602 () rosalab ! ru
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


14.08.2012 21:59, Dmitry ?????:
> 14.08.2012 21:01, Marco Martin ?????:
>> On Tuesday 14 August 2012, Dmitry wrote:
>>> Hello!
>>>
>>> I thought that all icons in tray have to be the same size (i.e. to be
>>> limited in size), but current C++ system tray doesn't fix size of icons
>>> (plasmoids). For example, battery may be larger that other icons. It
>>> looks very strange:
>>> SysTray will look strange if battery applet shows percent
>>> I assumed that all icons have to have the same size and I fixed their
>>> size in QML implementation of system tray. So, my assumption causes
>>> battery be smaller or be clipped:
>>> Clipped battery plasmoid in system tray
>>> What do you think about such behavior? I think if plasmoid have large
>>> size then it should be placed on panel.
>> hmm, that sounds like a bug, the battery shouldn't have a too big minimum
>> size..
>>
>> are you setting an actual clip to the items that contain the plasmoids? (it
>> may get a bit expensive on performances)
> Yes, I've set "clip" to on. But if I set "clip" to off, battery will 
> look the same, because I set its maximum size (and minimum size 
> otherwise networkmanager applet wont be visible). I set the maximum 
> size because applets may want to be large then other icons:
> <systray_applets_if_their_size_isnt_limited.png>
>> (it may get a bit expensive on performances)
> OK, I can disable clipping.
>
>

At the same time there is interesting situation if user's computer has 2 
batteries. Battery applet has option "show icon for every battery". If 
user enables it then battery applet will show 2 very small batteries:
<image: systray_2_battery.png>


[Attachment #5 (multipart/related)]

[Attachment #7 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    14.08.2012 21:59, Dmitry &#1087;&#1080;&#1096;&#1077;&#1090;:
    <blockquote cite="mid:502A91F1.7050401@rosalab.ru" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      14.08.2012 21:01, Marco Martin &#1087;&#1080;&#1096;&#1077;&#1090;:
      <blockquote cite="mid:201208141901.26143.notmart@gmail.com"
        type="cite">
        <pre wrap="">On Tuesday 14 August 2012, Dmitry wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hello!

I thought that all icons in tray have to be the same size (i.e. to be
limited in size), but current C++ system tray doesn't fix size of icons
(plasmoids). For example, battery may be larger that other icons. It
looks very strange:
SysTray will look strange if battery applet shows percent
I assumed that all icons have to have the same size and I fixed their
size in QML implementation of system tray. So, my assumption causes
battery be smaller or be clipped:
Clipped battery plasmoid in system tray
What do you think about such behavior? I think if plasmoid have large
size then it should be placed on panel.
</pre>
        </blockquote>
        <pre wrap="">hmm, that sounds like a bug, the battery shouldn't have a too big minimum 
size..

are you setting an actual clip to the items that contain the plasmoids? (it 
may get a bit expensive on performances)
</pre>
      </blockquote>
      Yes, I've set "clip" to on. But if I set "clip" to off, battery
      will look the same, because I set its maximum size (and minimum
      size otherwise networkmanager applet wont be visible). I set the
      maximum size because applets may want to be large then other
      icons:<br>
      <img alt="&lt;systray_applets_if_their_size_isnt_limited.png&gt;"
        title="Applets if their size isn't limited"
        src="cid:part1.08020905.07080801@rosalab.ru" height="188"
        hspace="20" border="1" vspace="20" width="120"><br>
      <blockquote type="cite">
        <pre wrap="">(it may get a bit expensive on performances)</pre>
      </blockquote>
      OK, I can disable clipping.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    At the same time there is interesting situation if user's computer
    has 2 batteries. Battery applet has option "show icon for every
    battery". If user enables it then battery applet will show 2 very
    small batteries: <br>
    <img alt="&lt;image: systray_2_battery.png&gt;" title="2 small
      batteries in one icon"
      src="cid:part2.06070007.07050208@rosalab.ru" height="205"
      hspace="20" border="1" vspace="20" width="103"><br>
    <br>
  </body>
</html>

[Attachment #8 (image/png)]
["systray_2_battery.png" (image/png)]
["systray_2_battery.png" (image/png)]

_______________________________________________
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