rougier / nano-theme

GNU Emacs / N Λ N O Theme
GNU General Public License v3.0
358 stars 35 forks source link

magit-mode-line-process and magit-mode-line-process-error are invisible in nano-light #27

Closed luispauloml closed 2 years ago

luispauloml commented 2 years ago

In the light version, magit-mode-line-process and magit-mode-line-process-error are invisible in the active window and inconsistent in other windows:

magit-process-mode-line

A simple way to reproduce this:

  1. Access any directory that is git repository.
  2. M-x nano-light.
  3. M-x magit-status.
  4. M-x magit-process-buffer.
  5. Have the status window and the process window both visible at the same time.
  6. Amend last commit (default key sequence in a Magit buffer: c a) and observe the mode lines while the COMMIT_EDITMSG buffer is loaded, it will show magit-mode-line-process in both windows.
  7. Abort amending (default key binding in the commit message window: C-c C-k) and observe the mode lines, it will show magit-mode-line-process-error.

The reason for this is that both faces are set to nano-default (lines 1363-1364 in nano-theme.el):

    '(magit-mode-line-process                ((t (:inherit nano-default))))
    '(magit-mode-line-process-error          ((t (:inherit nano-default))))

Setting both to nano-default-i will make them visible in the active window, but inconsistent in other windows. I set both to nano-critical, but that's just me.

rougier commented 2 years ago

Thanks for the report and sorry for late response. magit has a lot of faces and I was not sure which one is used when. for error message , best would be to inherit from nano-error. I'll change it.

luispauloml commented 2 years ago

But Nano does not define any nano-error. From Eshell, after commit 06d7c94:

$ grep nano-error *
1 match for "nano-error" in buffer: nano-theme.el
   1402:    '(magit-mode-line-process-error          ((t (:inherit nano-error))))

$ grep error *
6 matches in 5 lines for "error" in buffer: nano-theme.el
    712:   '(error                         ((t (:inherit nano-critical))))
   1224:    '(elfeed-log-error-level-face            ((t (:inherit nano-popout))))
   1236:    '(deft-filter-string-error-face         ((t (:inherit nano-popout))))
   1402:    '(magit-mode-line-process-error          ((t (:inherit nano-error))))
   1433:    '(magit-signature-error                  ((t (:inherit nano-default))))

Perhaps you wanted to use error, which in turns inherits from nano-critical, which is the one I suggested.

rougier commented 2 years ago

Sorry, I meant nano-critical. I will push a fix.

rougier commented 2 years ago

Done.