On Sun, 10 Nov 2013 22:02:42 -0800 (PST)
Chris George <[email protected]> wrote:

> Progress.
> 
> Adding this to the @data qt-gui-plugin-style-sheet in myLeoSettings.leo 
> adds the desired behaviour to the body pane.
> 
> /* body pane border highlight */
> 
> LeoQTextBrowser { border: 1px solid white }
> 
> LeoQTextBrowser:focus { border: 2px solid cyan }
> 
> LeoQTextBrowser:hover { border: 2px solid cyan }
> 
> 
> Make sure you remove the following code from your leoSettings.leo file. It 
> appears to have no discernible effect.
> 
> /* focused pane border highlight */
> 
> QTextEdit#log-widget, LeoQTreeWidget#treeWidget, QTextEdit#richTextEdit { 
> 
>   border-style: @focused-border-style;

Check the end of the node .../@settings-->leo_dark theme 0 settings
TNB-->stylesheet & source-->config

@focused-border-style = none
@focused-border-width = 3px
@focused-border-focus-color = cyan
@focused-border-unfocus-color = white

none -> solid to enable them, off be default.

The deal with `@data qt-gui-plugin-style-sheet` (DQGPSS) and themes is
that all DQGPSS are processed by the theme machinery which handles
replacement of @identifiers.  The difference between the default
theme's DQGPSS and those of the two dark themes in leoSettings.leo is
that the default themes DQGPSS is a simple @data node you have to edit
yourself, a long piece of text which doesn't seem particularly
Leonine.  Whereas the dark theme's DQGPSSs are generated from a tree of
information under the .../@settings-->leo_dark theme 0 settings
TNB-->stylesheet & source node, which has to be re-run to re-generate
the new DQGPSS, disabling the old by prepending '@'.

I think the instructions starting from the top leoSettings.leo Themes
node guide you that way, but there's probably confusion arising from
other info. on just editing the DQGPSS directly, which is what you have
to do for the default theme.

Also, Chris,  the previous non-stylesheet border drawing code is still
active, I think, back when the themes came out there was concern over
changed behaviors and although I think the theme based approach matched
the drawing code after some config. updating, leaving the drawing code
active and @focused-border-style = none might have seemed like the
simplest way forward.  So Leo is probably doing widget manipulation to
draw borders separate from the stylesheet machinery.

Cheers -Terry

>   border-width: @focused-border-width; 
> 
>   border-color: @focused-border-unfocus-color; 
> 
> }
> 
> QTextEdit:focus#log-widget, LeoQTreeWidget:focus#treeWidget, 
> QTextEdit:focus#richTextEdit { 
> 
>   border-style: @focused-border-style;
> 
>   border-width: @focused-border-width; 
> 
>   border-color: @focused-border-focus-color; 
> 
> }
> 
> Adding the following line looks promising for the Outline Pane, right up 
> until you click into the pane. I think there is another action (besides 
> :hover and :focus) that is overriding the desired behaviour. And I am still 
> trying to track down the class name for the log pane.
> 
> /* tree pane border highlight */
> 
> LeoQTreeWidget { border: 1px solid white }
> 
> LeoQTreeWidget:focus { border: 2px solid cyan }
> 
> LeoQTreeWidget:hover { border: 2px solid cyan }
> 
> 
> 
> Chris
> 
> 
> On Sunday, November 10, 2013 10:39:05 AM UTC-8, Viktor Ransmayr wrote:
> >
> > Hello Edward
> >
> > Am Freitag, 8. November 2013 14:08:08 UTC+1 schrieb Edward K. Ream:
> >
> >> On Friday, November 8, 2013 6:29:20 AM UTC-6, Edward K. Ream wrote:
> >>  
> >>
> >>> My suggestions:
> >>>
> >>> - Use pt for fonts; use px for borders, margins, etc.
> >>> - Use 14pt as default for most panes.
> >>> - Use 12pt for text in the Find Panel, and for QLabels.
> >>> - Use 5px solid blue for the focus border.
> >>>   It's always helpful (especially for newbies!) to see at a glace where 
> >>> focus resides.
> >>> - Use white, not light pink, for the background of the body pane.
> >>>
> >>
> >> These are now on the trunk at rev 6250.  One addition: use 14pt for the 
> >> status line.
> >>
> >
> > The out of the box experience for Leo on Windows (8 only?) has 
> > deteriorated after that change!
> >
> > Both the headline, body & log pane is using a font that is (much) to big 
> > ...
> >
> > With kind regards,
> >
> > Viktor
> >
> > PS: For analysis I'm providing the latest startup log pane:
> >
> > <log>
> >
> > Leo Log Window
> > Leo 4.11 final, build 6257, 2013-11-10 18:20:52
> > Python 3.3.2, qt version 4.8.5
> > Windows 6, 2, 9200, 2, 
> > leoID=VR20130923 (in C:\Users\Viktor\.leo)
> > load dir: C:\Repositories\bzr\leo-editor\leo\core
> > global config dir: C:\Repositories\bzr\leo-editor\leo\config
> > home dir: C:\Users\Viktor
> > reading settings in 
> > C:\Repositories\bzr\leo-editor\leo\config\leoSettings.leo
> > docutils loaded
> > reading settings in C:\Users\Viktor\.leo\myLeoSettings.leo
> > reading settings in C:\Users\Viktor\Worklogs\WL2013.leo
> > Abbreviations off
> > reading: C:\Users\Viktor\Worklogs\WL2013.leo
> >
> > </log>
> >
> >
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to