sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 0d00ab4006db805f3e2c3e782770cb28e14768dd
parent 1d29a1e30201d15fb6cd7bce76013a77679f29b0
Author: Raphaël Proust <code@bnwr.net>
Date:   Mon, 28 Jan 2019 09:56:16 +0800

st/patches: new patch for rendering bold not as bright

Diffstat:
Ast.suckless.org/patches/bold-is-not-bright/index.md | 20++++++++++++++++++++
Ast.suckless.org/patches/bold-is-not-bright/st-bold-is-not-bright-20190127-3be4cf1.diff | 27+++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/st.suckless.org/patches/bold-is-not-bright/index.md b/st.suckless.org/patches/bold-is-not-bright/index.md @@ -0,0 +1,20 @@ +bold is not bright +================== + +Description +----------- + +In `st`, bold text is rendered with a bold font in the bright variant of the +current color. This patch makes bold text rendered simply as bold, leaving the +color unaffected. + +Download +-------- + +* [st-bold-is-not-bright-20190127-3be4cf1.diff](st-bold-is-not-bright-20190127-3be4cf1.diff) + + +Author +------ + +* Raphaël Proust - <code - bnwr - net> diff --git a/st.suckless.org/patches/bold-is-not-bright/st-bold-is-not-bright-20190127-3be4cf1.diff b/st.suckless.org/patches/bold-is-not-bright/st-bold-is-not-bright-20190127-3be4cf1.diff @@ -0,0 +1,27 @@ +From e8f3c86d93613eef5af187dfd2dba9ae9919a2ee Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Rapha=C3=ABl=20Proust?= <code@bnwr.net> +Date: Sun, 27 Jan 2019 13:31:28 +0800 +Subject: [PATCH] Show bold not as bright + +--- + x.c | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/x.c b/x.c +index 0422421..904e1dc 100644 +--- a/x.c ++++ b/x.c +@@ -1296,10 +1296,6 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i + bg = &dc.col[base.bg]; + } + +- /* Change basic system colors [0-7] to bright system colors [8-15] */ +- if ((base.mode & ATTR_BOLD_FAINT) == ATTR_BOLD && BETWEEN(base.fg, 0, 7)) +- fg = &dc.col[base.fg + 8]; +- + if (IS_SET(MODE_REVERSE)) { + if (fg == &dc.col[defaultfg]) { + fg = &dc.col[defaultbg]; +-- +2.20.1 +