D11410: [RFC] Add option to make applet fixed width

Marco Martin noreply at phabricator.kde.org
Fri Mar 23 13:11:07 UTC 2018


mart added a comment.


  In D11410#229494 <https://phabricator.kde.org/D11410#229494>, @Pitel wrote:
  
  > In D11410#229277 <https://phabricator.kde.org/D11410#229277>, @mart wrote:
  >
  > > it's moving on the right track.. i would like the checkbox to appear like the one in the panel spacer, in the context menu could be tricky as would need to inject into the applet's contextualactons, so let's forget about it for now.
  >
  >
  > I'm not sure that is good idea: There are already some items injected in context menus (e.g. Unlock widgets action) and looking at my panel some applets' context menus are not injected. I believe it is because they have multiple menus bound to specific parts of itself and only applet's global menu is (and can) be injected. Most notable examples are systray except the expansion arrow and task icon manager except empty space (if it has set `fixedWidth` I was unable to find a place in it which would show me context menu containing Unlock widget action).
  
  
  I'm fine with dropping the context menu action, would be nice for the spacer to share the same mechanism and ui, definitely!
  
  >> one thing that could be done is to put that button in the applet handle that appears on hover when the panel controller is open, with the same icon of the add panel spacer in a checkable toolbutton (just icon, tooltip on hover) the panel spacer should use the same config ui.
  > 
  > The combox is currently in the popup showing on hover when panel controller is open. I can make it replace spacer's specific option. I can just remove spacer's option from its context menu and add some temporary code to convert spacer's option into the new one. (And a few version later we can drop this code.) Is it what you meant or did I misunderstand you?
  
  i would like it as a checkable toolbutton with no label (but a tooltip) in handleRow, between configureButton and the label

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D11410

To: Pitel, #plasma
Cc: mart, hein, plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180323/fb5fa19e/attachment.html>


More information about the Plasma-devel mailing list