[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 78ac055: Fix the colours on Motif horizontal scroll
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 78ac055: Fix the colours on Motif horizontal scroll bars |
Date: |
Mon, 7 Oct 2019 00:53:25 -0400 (EDT) |
branch: master
commit 78ac0551e77110cfdc9b01fadec19d862b5957c4
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Fix the colours on Motif horizontal scroll bars
* src/xterm.c (x_create_horizontal_toolkit_scroll_bar): Use the
same foreground/background colours as the vertical scroll bar
(bug#37359).
---
src/xterm.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index 5baa29a..b49c9d6 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6303,17 +6303,19 @@ x_create_horizontal_toolkit_scroll_bar (struct frame
*f, struct scroll_bar *bar)
XtSetArg (av[ac], XmNincrement, 1); ++ac;
XtSetArg (av[ac], XmNpageIncrement, 1); ++ac;
+ /* Note: "background" is the thumb color, and "trough" is the color behind
+ everything. */
pixel = f->output_data.x->scroll_bar_foreground_pixel;
if (pixel != -1)
{
- XtSetArg (av[ac], XmNforeground, pixel);
+ XtSetArg (av[ac], XmNbackground, pixel);
++ac;
}
pixel = f->output_data.x->scroll_bar_background_pixel;
if (pixel != -1)
{
- XtSetArg (av[ac], XmNbackground, pixel);
+ XtSetArg (av[ac], XmNtroughColor, pixel);
++ac;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 78ac055: Fix the colours on Motif horizontal scroll bars,
Lars Ingebrigtsen <=