Re: Script to expand toolbar

2024-04-04 Thread Edward K. Ream
On Wed, Apr 3, 2024 at 1:10 PM Thomas Passin wrote: > Better, I think: background-color: @text-foreground; This should work for > any (dark) color theme. If you omit the #qt_toolbar_ext_button, the style > will get applied to the menubar's "menu-indicator" also, as well as any > other toolbar (ye

Re: Script to expand toolbar

2024-04-03 Thread Edward K. Ream
On Wed, Apr 3, 2024 at 1:10 PM Thomas Passin wrote: > Better, I think: background-color: @text-foreground; This should work for > any (dark) color theme. If you omit the #qt_toolbar_ext_button, the style > will get applied to the menubar's "menu-indicator" also, as well as any > other toolbar (ye

Re: Script to expand toolbar

2024-04-03 Thread Thomas Passin
Better, I think: background-color: @text-foreground; This should work for any (dark) color theme. If you omit the #qt_toolbar_ext_button, the style will get applied to the menubar's "menu-indicator" also, as well as any other toolbar (yes, the menubar also has an overflow indicator, if you can

Re: Script to expand toolbar

2024-04-03 Thread Edward K. Ream
On Wednesday, April 3, 2024 at 9:56:16 AM UTC-5 Edward K. Ream wrote: Googling shows that the QToolbar class has inherent limitations. There is *no way* to split QToolButton widgets into separate rows. This statement is misleading. The easiest workaround is to assign buttons/widgets to *mul

Re: Script to expand toolbar

2024-04-03 Thread Edward K. Ream
On Wednesday, April 3, 2024 at 11:04:00 AM UTC-5 Tom wrote: It's not just a black background that hides it. There must be a css selector for it, mustn't there? Probably yes, but the defaults for buttons should work. Here is my selector: QToolButton#qt_toolbar_ext_button { backgroun

Re: Script to expand toolbar

2024-04-03 Thread Thomas Passin
It's not just a black background that hides it. There must be a css selector for it, mustn't there? On Wednesday, April 3, 2024 at 10:56:16 AM UTC-4 Edward K. Ream wrote: > On Wednesday, April 3, 2024 at 4:54:32 AM UTC-5 Edward K. Ream wrote: > > It took me a while to understand what the @butt

Re: Script to expand toolbar

2024-04-03 Thread Edward K. Ream
On Wednesday, April 3, 2024 at 4:54:32 AM UTC-5 Edward K. Ream wrote: It took me a while to understand what the @button node is doing. ... I'm satisfied neither with #407 nor with the script. I would prefer some ways of splitting the icon bar

Re: Script to expand toolbar

2024-04-03 Thread Edward K. Ream
On Tue, Apr 2, 2024 at 4:29 PM lewis wrote: > From original issue #407 - You can put that in *@button expand-toolbar* > node in your myLeoSettings.leo under @buttons node. > If it is first child of @buttons then this button will be on left side of > toolbar and it will be easier to click this but

Re: Script to expand toolbar

2024-04-02 Thread lewis
>From original issue #407 - You can put that in *@button expand-toolbar* node in your myLeoSettings.leo under @buttons node. If it is first child of @buttons then this button will be on left side of toolbar and it will be easier to click this button and then to find button you need. I confirme

Re: Script to expand toolbar

2024-04-02 Thread Edward K. Ream
On Tue, Apr 2, 2024 at 4:25 AM lewis wrote: > @vitalije first provided a script to expand the toolbar in > https://github.com/leo-editor/leo-editor/issues/407 > Here is an update that works with PyQt6 > It doesn't work for me. Where is qt_toolbar_ext_button defined?? Edward > > """ > Expand b

Re: Script to expand toolbar

2024-04-02 Thread Edward K. Ream
On Tuesday, April 2, 2024 at 4:25:35 AM UTC-5 lewis wrote: @vitalije first provided a script to expand the toolbar in https://github.com/leo-editor/leo-editor/issues/407 Here is an update that works with PyQt6 Hurray! I'll check it out soon! Edward -- You received this message because you

Script to expand toolbar

2024-04-02 Thread lewis
@vitalije first provided a script to expand the toolbar in https://github.com/leo-editor/leo-editor/issues/407 Here is an update that works with PyQt6 """ Expand button bar """ from PyQt6.QtCore import QPointF, Qt from PyQt6.QtGui import QMouseEvent from PyQt6.QtWidgets import QApplication pos