[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eglot-inactive-regions 3ba8e528f1 06/66: allow to change o
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eglot-inactive-regions 3ba8e528f1 06/66: allow to change opacity on the fly |
Date: |
Fri, 6 Dec 2024 06:59:50 -0500 (EST) |
branch: elpa/eglot-inactive-regions
commit 3ba8e528f1ae2ce8142d4be4b20cf44065e71664
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>
allow to change opacity on the fly
---
eglot-clangd-inactive-regions.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/eglot-clangd-inactive-regions.el b/eglot-clangd-inactive-regions.el
index 1160034dbc..15aaa4f448 100644
--- a/eglot-clangd-inactive-regions.el
+++ b/eglot-clangd-inactive-regions.el
@@ -47,7 +47,8 @@ dim.")
(defun ecir--color-blend (from-color to-color alpha)
"Linearly interpolate between two colors."
(let ((from-rgb (color-name-to-rgb from-color))
- (to-rgb (color-name-to-rgb to-color)))
+ (to-rgb (color-name-to-rgb to-color))
+ (alpha (min 1.0 (max 0.0 alpha))))
(apply 'format
"#%02x%02x%02x"
(cl-mapcar #'(lambda (a b)
@@ -104,6 +105,12 @@ face or theme change."
(end (cdr range)))
(ecir--darken-region beg end eglot-clangd-inactive-regions-opacity)))))
+(defun eglot-clangd-inactive-regions-change-opacity (opacity)
+ "Interactively set a new opacity value for inactive regions."
+ (interactive "nNew inactive region opacity: ")
+ (setq eglot-clangd-inactive-regions-opacity opacity)
+ (eglot-clangd-inactive-regions-refresh))
+
(defun eglot-clangd-inactive-regions-cleanup ()
"Clean up inactive regions."
(mapc #'delete-overlay eglot-clangd-inactive-regions-overlays)
- [nongnu] elpa/eglot-inactive-regions 3876101626 31/66: Update README., (continued)
- [nongnu] elpa/eglot-inactive-regions 3876101626 31/66: Update README., ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions b0ade8c12e 21/66: Handle face list properties, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3d3280c415 48/66: rename to eglot-inactive-regions.el, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 475864a1a3 65/66: exclude screenshots from the tarball, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 17c9db32d3 02/66: initial commit, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions e15124a898 07/66: Rewrite the darkening logic using fontify-region, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions e7be73b354 15/66: Invert shading factor, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions b81249c566 23/66: Update README with caveats section, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4b01aba42f 29/66: Fix package-lint warnings, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 2346944d4b 05/66: Add clean up and refresh functions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3ba8e528f1 06/66: allow to change opacity on the fly,
ELPA Syncer <=
- [nongnu] elpa/eglot-inactive-regions 10f1772888 09/66: Drop eglot from the name, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 2736b46310 10/66: Update dependencies and some minor changes, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 15d6db2d6d 13/66: Add some helper methods to set UI options, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions ae67afac14 12/66: Use overlays instead of changing text properties, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 343abb100c 26/66: Update README.md, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions e25016ddb8 22/66: Do not flush all inactive regions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions d021d96fef 25/66: Update screenshots, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 52d2f80ccb 28/66: Tentatively limit global fontification hook to classic c modes, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4ae3491ae3 39/66: doc and function names cleanup, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 21c26bc4e2 40/66: use built-in color to hex converter, ELPA Syncer, 2024/12/06