On Friday, June 21, 2019 at 7:21:53 AM UTC-5, Edward K. Ream wrote:
>
> On Wednesday, June 19, 2019 at 10:35:25 AM UTC-5, gar wrote:
>

>> I discovered 'vimmodeinsertborder*' settings but they seem do not work 
for me - I cannot observe any difference whether they set or not.

> I have just created #1221 
<https://github.com/leo-editor/leo-editor/issues/1221> for this.

The vim-related elements in the defaults stylesheet in leoSettings.leo is 
affected by a known Qt bug.  Class selectors do not work on Qt 5(!).  And 
not only do they not work, they ruin all further css elements.  The Qt 
people do not seem to care about this mess nearly enough.

Because they are toxic, these class selectors are in the last node: zz Must 
be last.  This node contains:

/* Vim mode borders... */

QTextEdit#richTextEdit[vim_state~="vim_normal"] {
  border: @vim-mode-normal-border;
}

QTextEdit#richTextEdit[vim_state~="vim_insert"] {
  border: @vim-mode-insert-border;
}

QTextEdit#richTextEdit[vim_state~="vim_visual"] {
  border: @vim-mode-visual-border;
}

A fix would ignore these css elements entirely, using a Leonine settings 
instead.  This would be quite confusing to existing users unless all 
existing stylesheets are updated with warnings about the change.

Still, this must be done.  I'll attempt a fix soon.

Edward

-- 
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 https://groups.google.com/group/leo-editor.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/28709527-3c7c-4dc5-ba41-3bafce737e0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to