parent
3820ead9e3
commit
3b405c8d81
1 changed files with 12 additions and 9 deletions
|
@ -175,15 +175,18 @@ Use `winner-undo' to undo this. Alternatively, use
|
||||||
"Interactively change the current frame's opacity.
|
"Interactively change the current frame's opacity.
|
||||||
|
|
||||||
OPACITY is an integer between 0 to 100, inclusive."
|
OPACITY is an integer between 0 to 100, inclusive."
|
||||||
(interactive
|
(interactive '(interactive))
|
||||||
(list (read-number "Opacity (0-100): "
|
(let* ((parameter
|
||||||
(or (frame-parameter
|
(if (eq window-system 'pgtk)
|
||||||
nil (if (> emacs-major-version 28)
|
'alpha-background
|
||||||
'alpha-background 'alpha))
|
'alpha))
|
||||||
100))))
|
(opacity
|
||||||
(set-frame-parameter nil (if (> emacs-major-version 28)
|
(if (eq opacity 'interactive)
|
||||||
'alpha-background 'alpha)
|
(read-number "Opacity (0-100): "
|
||||||
opacity))
|
(or (frame-parameter nil parameter)
|
||||||
|
100))
|
||||||
|
opacity)))
|
||||||
|
(set-frame-parameter nil parameter opacity)))
|
||||||
|
|
||||||
(defvar doom--narrowed-base-buffer nil)
|
(defvar doom--narrowed-base-buffer nil)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue