Lisp HUG Maillist Archive

customizing the theme

Hi, 

Does anyone change the theme of the LispWorks editor?
I'd like to make the background black, signs and letters white.
I'd appreciate your advice.

Re: customizing the theme

Hi Hiroki,

I use the following in my ~/.lispworks file.  It’s not comprehensive but it’s better than nothing. I found the basic code in a google search… the only thing I could find… made a few slight modifications and used the colors I wanted.  I also turn off “Color parenthesis” in the preferences because black is one of the colors used.

; dark theme
(defun set-pane-background-colors (x)
  (typecase x
    (capi:echo-area-pane
      (setf (capi:simple-pane-background x) :black
        (capi::simple-pane-foreground x) :orange))
    (capi:collector-pane
      (setf (capi:simple-pane-background x) :black
        (capi::simple-pane-foreground x) :orange))
    (capi:listener-pane
      (setf (capi:simple-pane-background x) :black
        (capi::simple-pane-foreground x) :orange))
    (capi:editor-pane
      (setf (capi::simple-pane-background x) :black
        (capi::simple-pane-foreground x) :orange))
    (capi:output-pane
      (setf (capi:simple-pane-background x) :black
        (capi::simple-pane-foreground x) :orange))
    (capi:tab-layout
      (mapcar 'set-pane-background-colors (capi:tab-layout-panes x)))))

(let ((*HANDLE-WARN-ON-REDEFINITION* :warn)
  (*redefinition-action* :warn))
  (defmethod capi:interface-display :before ((self lw-tools:listener))
    (capi:map-pane-descendant-children
      self 'set-pane-background-colors))
  (defmethod capi:interface-display :before ((self lw-tools:editor))
    (capi:map-pane-descendant-children
      self 'set-pane-background-colors)))

Hopefully someone on the list has a better solution that covers more of the panes.

Best,
-Patrick

On Jul 19, 2017, at 20:44, Noguchi Hiroki <padds1st@gmail.com> wrote:

Hi, 

Does anyone change the theme of the LispWorks editor?
I'd like to make the background black, signs and letters white.
I'd appreciate your advice.

Re: customizing the theme

Hi,

There is this package: https://github.com/acelent/lw-editor-color-theme
and my fork of it with some updates: https://github.com/fourier/lw-editor-color-theme

Br,
/Alexey

On Thu, Jul 20, 2017 at 4:44 AM, Noguchi Hiroki <padds1st@gmail.com> wrote:
Hi, 

Does anyone change the theme of the LispWorks editor?
I'd like to make the background black, signs and letters white.
I'd appreciate your advice.

Updated at: 2020-12-10 08:30 UTC