From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: [PATCH] Use flat-button style for inactive modeline
Date: Sat, 18 Feb 2023 16:16:40 +0100 [thread overview]
Message-ID: <CAO48Bk9v=uJOACe1DAdAB_B92vFrP6pa6ujfncsZ9bTP8bs9ag@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 465 bytes --]
When the background colour of a face is the same as the colour specified
for a :box with :style nil, it is quicker to specify :style flat-button. It
will choose the face background colour automatically.
Best, /PA
--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet
[-- Attachment #1.2: Type: text/html, Size: 722 bytes --]
[-- Attachment #2: 0001-flat-button-box-doesn-t-need-color.patch --]
[-- Type: text/x-patch, Size: 1357 bytes --]
From b353ceb3e735448a5b36deed42ab91851fcb41ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pedro=20A=2E=20Aranda=20Guti=C3=A9rrez?= <paaguti@gmail.com>
Date: Sat, 18 Feb 2023 11:38:04 +0000
Subject: [PATCH] flat-button box doesn't need :color
Box style flat-button is an alternative to create a broader
mode-line and you don't need to repeat the background color.
---
etc/themes/whiteboard-theme.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/themes/whiteboard-theme.el b/etc/themes/whiteboard-theme.el
index adbd69f1c6f..4350d7a1213 100644
--- a/etc/themes/whiteboard-theme.el
+++ b/etc/themes/whiteboard-theme.el
@@ -80,7 +80,7 @@ whiteboard
`(minibuffer-prompt ((,class (:foreground "DodgerBlue4"))))
`(mode-line ((,class (:background "gray75" :foreground "black" :box (:line-width 1 :style released-button)))))
`(mode-line-buffer-id ((,class (:weight bold :background nil :foreground "blue4"))))
- `(mode-line-inactive ((,class (:background "gray40" :foreground "black" :box (:line-width 1 :color "gray40" :style nil)))))
+ `(mode-line-inactive ((,class (:background "gray40" :foreground "black" :box (:line-width 1 :style flat-button)))))
`(outline-1 ((,class (:foreground "Blue3"))))
`(outline-2 ((,class (:foreground "DodgerBlue"))))
`(outline-3 ((,class (:foreground "SteelBlue"))))
--
2.34.1
next reply other threads:[~2023-02-18 15:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-18 15:16 Pedro Andres Aranda Gutierrez [this message]
2023-02-18 16:33 ` [PATCH] Use flat-button style for inactive modeline Manuel Uberti
2023-02-18 17:14 ` bug#61608: Fwd: " Pedro Andres Aranda Gutierrez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO48Bk9v=uJOACe1DAdAB_B92vFrP6pa6ujfncsZ9bTP8bs9ag@mail.gmail.com' \
--to=paaguti@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.