GNU bug report logs -
#33452
Color of tooltip text on macOS with mark mode
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33452 in the body.
You can then email your comments to 33452 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Wed, 21 Nov 2018 07:32:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 21 Nov 2018 07:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When Emacs 26.1.90 is launched on macOS with dark mode, color of
tooltip text is set to white. It is hard to read the text.
Switch to dark-mode on macOS
$ cd ~/emacs-26.1.90/
$ ./configure; make install
$ ~/emacs-26.1.90/nextstep/Emacs.app/Contents/MacOS/Emacs -Q
M-: (setq mouse-drag-and-drop-region 'meta)
During dragging region, tooltip shows text in the region. Color of
tooltip background is yellow, and color of tooltip text is white.
I think that color of either tooltip text or tooltip background should
be darker.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Wed, 21 Nov 2018 09:31:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 33452 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 21 Nov 2018 16:30:56 +0900 (JST)
> From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
>
> When Emacs 26.1.90 is launched on macOS with dark mode, color of
> tooltip text is set to white. It is hard to read the text.
Is this problem new with Emacs 26.1.90?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Wed, 21 Nov 2018 10:15:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 33452 <at> debbugs.gnu.org (full text, mbox):
>> When Emacs 26.1.90 is launched on macOS with dark mode, color of
>> tooltip text is set to white. It is hard to read the text.
>
> Is this problem new with Emacs 26.1.90?
I do not see the problem in 27.0.50.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Wed, 21 Nov 2018 10:33:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 33452 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 21 Nov 2018 19:14:35 +0900 (JST)
> Cc: 33452 <at> debbugs.gnu.org, tkk <at> misasa.okayama-u.ac.jp
> From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
>
> >> When Emacs 26.1.90 is launched on macOS with dark mode, color of
> >> tooltip text is set to white. It is hard to read the text.
> >
> > Is this problem new with Emacs 26.1.90?
>
> I do not see the problem in 27.0.50.
Can you test with Emacs 26.1?
In any case, it sounds like the problem, whatever it is, was solved on
master.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Wed, 21 Nov 2018 19:46:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 33452 <at> debbugs.gnu.org (full text, mbox):
On Wed, Nov 21, 2018 at 12:32:10PM +0200, Eli Zaretskii wrote:
> > Date: Wed, 21 Nov 2018 19:14:35 +0900 (JST)
> > Cc: 33452 <at> debbugs.gnu.org, tkk <at> misasa.okayama-u.ac.jp
> > From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
> >
> > >> When Emacs 26.1.90 is launched on macOS with dark mode, color of
> > >> tooltip text is set to white. It is hard to read the text.
> > >
> > > Is this problem new with Emacs 26.1.90?
> >
> > I do not see the problem in 27.0.50.
>
> Can you test with Emacs 26.1?
>
> In any case, it sounds like the problem, whatever it is, was solved on
> master.
I expect it was commit 15cd18991c1d9a9bafeef7bf9b4dad91ecc0332a.
It’s pretty small and is probably safe to backport to emacs-26.
--
Alan Third
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Thu, 22 Nov 2018 12:45:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 33452 <at> debbugs.gnu.org (full text, mbox):
>>>>> When Emacs 26.1.90 is launched on macOS with dark mode, color of
>>>>> tooltip text is set to white. It is hard to read the text.
>>>>
>>>> Is this problem new with Emacs 26.1.90?
>>>
>>> I do not see the problem in 27.0.50.
>>
>> Can you test with Emacs 26.1?
Emacs 26.1 build on macOS Mojave (10.14) cannot show text even on
scratch buffer. I cannot test Emacs 26.1 build under macOS Mojave
(10.14).
>> In any case, it sounds like the problem, whatever it is, was solved on
>> master.
>
> I expect it was commit 15cd18991c1d9a9bafeef7bf9b4dad91ecc0332a.n
>
> It’s pretty small and is probably safe to backport to emacs-26.
I applied the commit 15cd18991c1d9a9bafeef7bf9b4dad91ecc0332a to
26.1.90 and confirmed that I do not see the problem.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Fri, 23 Nov 2018 10:31:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 33452 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 21 Nov 2018 19:44:58 +0000
> From: Alan Third <alan <at> idiocy.org>
> Cc: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>, 33452 <at> debbugs.gnu.org
>
> I expect it was commit 15cd18991c1d9a9bafeef7bf9b4dad91ecc0332a.
Are you saying that tooltips on NS couldn't use colors before that
change? Or was that color support broken at some point? If the
latter, when was it broken and by what changeset?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Fri, 23 Nov 2018 18:11:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 33452 <at> debbugs.gnu.org (full text, mbox):
On Fri, Nov 23, 2018 at 12:29:53PM +0200, Eli Zaretskii wrote:
> > Date: Wed, 21 Nov 2018 19:44:58 +0000
> > From: Alan Third <alan <at> idiocy.org>
> > Cc: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>, 33452 <at> debbugs.gnu.org
> >
> > I expect it was commit 15cd18991c1d9a9bafeef7bf9b4dad91ecc0332a.
>
> Are you saying that tooltips on NS couldn't use colors before that
> change? Or was that color support broken at some point? If the
> latter, when was it broken and by what changeset?
Tooltips on NS couldn’t use colours before that change.
What happened is that tooltips set the background to yellow and left
the foreground (text) to be the system default (black).
MacOS Mojave has introduced ‘dark mode’, which makes the foreground
colour light, and therefore we’re seeing light text on a yellow
background.
If you don’t want to apply the above commit the absolute minimum fix
for emacs-26 would be to explicitly set a foreground colour for
tooltips, or not set the background, therefore reverting to the system
default.
--
Alan Third
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Fri, 23 Nov 2018 20:14:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 33452 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 23 Nov 2018 18:10:49 +0000
> From: Alan Third <alan <at> idiocy.org>
> Cc: tkk <at> misasa.okayama-u.ac.jp, 33452 <at> debbugs.gnu.org
>
> > Are you saying that tooltips on NS couldn't use colors before that
> > change? Or was that color support broken at some point? If the
> > latter, when was it broken and by what changeset?
>
> Tooltips on NS couldn’t use colours before that change.
>
> What happened is that tooltips set the background to yellow and left
> the foreground (text) to be the system default (black).
>
> MacOS Mojave has introduced ‘dark mode’, which makes the foreground
> colour light, and therefore we’re seeing light text on a yellow
> background.
>
> If you don’t want to apply the above commit the absolute minimum fix
> for emacs-26 would be to explicitly set a foreground colour for
> tooltips, or not set the background, therefore reverting to the system
> default.
Sorry, I'm confused: does "system default" mean the tooltips will be
without colors, or does it mean they will use the system colors? If
the latter, then why did you say in the beginning that "tooltips on NS
couldn't use colors"?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Fri, 23 Nov 2018 20:40:01 GMT)
Full text and
rfc822 format available.
Message #32 received at 33452 <at> debbugs.gnu.org (full text, mbox):
On Fri, Nov 23, 2018 at 10:13:40PM +0200, Eli Zaretskii wrote:
> > Date: Fri, 23 Nov 2018 18:10:49 +0000
> > From: Alan Third <alan <at> idiocy.org>
> > Cc: tkk <at> misasa.okayama-u.ac.jp, 33452 <at> debbugs.gnu.org
> >
> > > Are you saying that tooltips on NS couldn't use colors before that
> > > change? Or was that color support broken at some point? If the
> > > latter, when was it broken and by what changeset?
> >
> > Tooltips on NS couldn’t use colours before that change.
> >
> > What happened is that tooltips set the background to yellow and left
> > the foreground (text) to be the system default (black).
> >
> > MacOS Mojave has introduced ‘dark mode’, which makes the foreground
> > colour light, and therefore we’re seeing light text on a yellow
> > background.
> >
> > If you don’t want to apply the above commit the absolute minimum fix
> > for emacs-26 would be to explicitly set a foreground colour for
> > tooltips, or not set the background, therefore reverting to the system
> > default.
>
> Sorry, I'm confused: does "system default" mean the tooltips will be
> without colors, or does it mean they will use the system colors? If
> the latter, then why did you say in the beginning that "tooltips on NS
> couldn't use colors"?
Sorry, I thought you were meaning colours as set by Emacs lisp.
We can set the foreground and background to anything we want in C, but
in emacs-26 currently we can’t modify them by Emacs lisp, and only the
background colour is being set in C, which leaves the foreground to
use whatever the system default is.
The master branch honours the colours set by lisp.
A little more background, which hopefully won’t confuse things more:
NS tooltips are very basic, whoever wrote the tooltips for Emacs under
NS decided to use a full toolkit window instead, and just colour it
like the default Emacs tooltips on X. Except they only did half the
job, which wasn’t a problem until Apple decided to change the default
colours.
--
Alan Third
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Fri, 23 Nov 2018 21:09:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 33452 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 23 Nov 2018 20:38:51 +0000
> From: Alan Third <alan <at> idiocy.org>
> Cc: tkk <at> misasa.okayama-u.ac.jp, 33452 <at> debbugs.gnu.org
>
> Sorry, I thought you were meaning colours as set by Emacs lisp.
>
> We can set the foreground and background to anything we want in C, but
> in emacs-26 currently we can’t modify them by Emacs lisp, and only the
> background colour is being set in C, which leaves the foreground to
> use whatever the system default is.
>
> The master branch honours the colours set by lisp.
Thanks. So what are out alternatives for emacs-26, besides
backporting from master (which will give control on colors to Lisp)?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Sat, 24 Nov 2018 09:36:02 GMT)
Full text and
rfc822 format available.
Message #38 received at 33452 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Fri, Nov 23, 2018 at 11:08:18PM +0200, Eli Zaretskii wrote:
> > Date: Fri, 23 Nov 2018 20:38:51 +0000
> > From: Alan Third <alan <at> idiocy.org>
> > Cc: tkk <at> misasa.okayama-u.ac.jp, 33452 <at> debbugs.gnu.org
> >
> > Sorry, I thought you were meaning colours as set by Emacs lisp.
> >
> > We can set the foreground and background to anything we want in C, but
> > in emacs-26 currently we can’t modify them by Emacs lisp, and only the
> > background colour is being set in C, which leaves the foreground to
> > use whatever the system default is.
> >
> > The master branch honours the colours set by lisp.
>
> Thanks. So what are out alternatives for emacs-26, besides
> backporting from master (which will give control on colors to Lisp)?
We can try to use the system tooltip colours, but I think we’re better
off just setting a foreground colour. Patch attached.
--
Alan Third
[0001-Set-tooltip-text-color-bug-33452.patch (text/plain, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33452
; Package
emacs
.
(Sat, 24 Nov 2018 09:45:02 GMT)
Full text and
rfc822 format available.
Message #41 received at 33452 <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 24 Nov 2018 09:35:25 +0000
> From: Alan Third <alan <at> idiocy.org>
> Cc: tkk <at> misasa.okayama-u.ac.jp, 33452 <at> debbugs.gnu.org
>
> We can try to use the system tooltip colours, but I think we’re better
> off just setting a foreground colour. Patch attached.
OK, thanks.
Reply sent
to
Alan Third <alan <at> idiocy.org>
:
You have taken responsibility.
(Sun, 25 Nov 2018 11:37:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
:
bug acknowledged by developer.
(Sun, 25 Nov 2018 11:37:02 GMT)
Full text and
rfc822 format available.
Message #46 received at 33452-done <at> debbugs.gnu.org (full text, mbox):
On Sat, Nov 24, 2018 at 09:35:25AM +0000, Alan Third wrote:
> On Fri, Nov 23, 2018 at 11:08:18PM +0200, Eli Zaretskii wrote:
> > Thanks. So what are out alternatives for emacs-26, besides
> > backporting from master (which will give control on colors to Lisp)?
>
> We can try to use the system tooltip colours, but I think we’re better
> off just setting a foreground colour. Patch attached.
Pushed to emacs-26.
--
Alan Third
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 23 Dec 2018 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 179 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.