git.fiddlerwoaroof.com
Browse code

chore: reformat

Ed Langley authored on 31/10/2020 00:14:42
Showing 1 changed files
... ...
@@ -59,7 +59,7 @@
59 59
 (defclass editor-panes-theme ()
60 60
   ((editor-panes :initform nil :accessor editor-panes)
61 61
    (buffers-panes :initform nil :accessor buffers-panes)
62
-   (editor-background :initform +default-background-color+ :accessor bg) 
62
+   (editor-background :initform +default-background-color+ :accessor bg)
63 63
    (editor-foreground :initform +default-foreground-color+ :accessor fg)
64 64
    (buffers-background :initform +default-background-color+ :accessor buffers-bg)
65 65
    (buffers-foreground :initform +default-foreground-color+ :accessor buffers-fg)
... ...
@@ -106,14 +106,14 @@
106 106
          (buffers-fg *editor-tool*))
107 107
         ((eq state :selected)
108 108
          (buffers-selected-fg *editor-tool*))))
109
-        
109
+
110 110
 (defun update-pane-colors (pane foreground background)
111 111
   (setf (capi:simple-pane-foreground pane) foreground)
112 112
   (setf (capi:simple-pane-background pane) background)
113 113
 
114 114
   (when (and (typep pane 'capi:editor-pane)
115 115
              (editor::buffer-font-lock-mode-p (capi:editor-pane-buffer pane)))
116
-      (gp:invalidate-rectangle pane)))
116
+    (gp:invalidate-rectangle pane)))
117 117
 
118 118
 
119 119
 (defgeneric clear-colors (tool)
... ...
@@ -160,22 +160,22 @@
160 160
 
161 161
 (defun set-color-theme (theme-name)
162 162
   (destructuring-bind (&rest color-theme-args
163
-                             &key foreground background
164
-                             listener-foreground
165
-                             listener-background
166
-                             output-foreground
167
-                             output-background
168
-                             buffers-foreground
169
-                             buffers-selected-foreground
170
-                             buffers-background
171
-                             &allow-other-keys)
163
+                       &key foreground background
164
+                         listener-foreground
165
+                         listener-background
166
+                         output-foreground
167
+                         output-background
168
+                         buffers-foreground
169
+                         buffers-selected-foreground
170
+                         buffers-background
171
+                       &allow-other-keys)
172 172
       (color-theme-args theme-name)
173 173
 
174 174
     ;; new instances of tools wrappers
175 175
     (clear-colors *editor-tool*)
176 176
     (clear-colors *listener-tool*)
177 177
     (clear-colors *all-tools*)
178
-    
178
+
179 179
     ;; editor foreground and background
180 180
     (when foreground
181 181
       (setf (fg *editor-tool*) foreground))
... ...
@@ -210,26 +210,27 @@
210 210
           (or buffers-background
211 211
               (bg *editor-tool*)))
212 212
 
213
-                                 
213
+
214 214
     (dolist (name *editor-face-names*)
215 215
       (let* ((color-theme-args-for-face (getf color-theme-args name))
216 216
              (face-name (intern (string name) '#:editor))
217 217
              (face (editor:make-face face-name :if-exists t)))
218
-        (apply 'editor:make-face face-name :if-exists :overwrite
218
+        (apply 'editor:make-face face-name
219
+               :if-exists :overwrite
219 220
                :documentation (or (getf color-theme-args-for-face :documentation)
220 221
                                   (slot-value face 'documentation))
221 222
                color-theme-args-for-face))))
222
-  
223
+
223 224
   theme-name)
224 225
 
225 226
 (defun color-theme (theme-name)
226 227
   (mapc 'set-color-theme (color-theme-super-theme-names theme-name))
227 228
   (set-color-theme theme-name)
228
-  
229
+
229 230
   (update *editor-tool*)
230 231
   (update *listener-tool*)
231 232
   (update *all-tools*)
232
-  
233
+
233 234
   theme-name)
234 235
 
235 236
 (defun define-color-theme (theme-name super-theme-names
... ...
@@ -242,9 +243,9 @@
242 243
       (declare (ignore color-theme-data))
243 244
       (unless found?
244 245
         (warn "Inherited color theme ~s not defined." super-theme-name))))
245
-  
246
+
246 247
   (setf (gethash theme-name *all-color-themes*) (list* super-theme-names color-theme-args))
247
-  
248
+
248 249
   theme-name)
249 250
 
250 251
 (defun remove-color-theme (theme-name)
... ...
@@ -300,9 +301,9 @@
300 301
 ;; we don't have defined capi:interface-display for lw-tools::listener,
301 302
 ;; so nothing to advice. Instead we need to define our own
302 303
 (sys::without-warning-on-redefinition
303
-  (defmethod capi:interface-display :before ((self lw-tools::listener))
304
-    (capi:map-pane-descendant-children
305
-     self 'set-listener-pane-colors)))
304
+    (defmethod capi:interface-display :before ((self lw-tools::listener))
305
+      (capi:map-pane-descendant-children
306
+       self 'set-listener-pane-colors)))
306 307
 
307 308
 ;; capi:collector-pane does'nt have interface-display method called,
308 309
 ;; so we adding the :after constuctor instead