From 528a4846c7cb55bebed2e3317c3fc58c01ca1037 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 20 Feb 2021 11:36:04 -0800 Subject: [PATCH] docs: changelog and improve the foreground_text_hsb docs refs: #491 --- docs/changelog.md | 1 + docs/config/lua/config/foreground_text_hsb.md | 23 +++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 2157b486a..85f5b5b71 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,7 @@ brief notes about them may accumulate here. * Wayland: the raw key modifiers are now correctly propagated so that they activate when used with key assignments using the `key = "raw:123"` binding syntax. * Wayland: fixed window decoration and full screen handling [#224](https://github.com/wez/wezterm/issues/224) * Wayland: fixed an issue where key repeat processing could "run away" and hang the application +* New: added [foreground_text_hsb](config/lua/config/foreground_text_hsb.md) setting to adjust hue, saturation and brightness when text is rendered. ### 20210203-095643-70a364eb diff --git a/docs/config/lua/config/foreground_text_hsb.md b/docs/config/lua/config/foreground_text_hsb.md index 87d1c6cdf..89b46e02d 100644 --- a/docs/config/lua/config/foreground_text_hsb.md +++ b/docs/config/lua/config/foreground_text_hsb.md @@ -22,7 +22,22 @@ The range of these values is 0.0 and up; they are used to multiply the existing values, so the default of 1.0 preserves the existing component, whilst 0.5 will reduce it by half, and 2.0 will double the value. - - - - +```lua +return { + -- This increases color saturation by 50% + foreground_text_hsb = { + hue = 1.0, + saturation = 1.5, + brightness = 1.0, + } +} +``` + +demonstrating the appearance of the default value +demonstrating setting saturating to 1.5 +demonstrating setting brightness to 1.5 +demonstrating setting hue to 1.5