[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu e5dad66 09/16: Use internal border
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu e5dad66 09/16: Use internal border |
Date: |
Wed, 28 Apr 2021 14:20:03 -0400 (EDT) |
branch: externals/corfu
commit e5dad6682f5a0e8f4e7ce80a1b39745a01f62b92
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Use internal border
---
corfu.el | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/corfu.el b/corfu.el
index 8e329c5..b2ce31c 100644
--- a/corfu.el
+++ b/corfu.el
@@ -227,7 +227,7 @@ Set to nil in order to disable confirmation."
(height . 0)
(line-spacing . 0)
(border-width . 0)
- (internal-border-width . 0)
+ (internal-border-width . 1)
(left-fringe . 0)
(right-fringe . 0)
(vertical-scroll-bars . nil)
@@ -242,7 +242,9 @@ Set to nil in order to disable confirmation."
(minibuffer . nil)
(visibility . nil)
(no-special-glyphs . t))))
- (set-window-buffer (frame-root-window corfu--frame) buffer))
+ (set-window-buffer (frame-root-window corfu--frame) buffer)
+ (set-face-background 'internal-border (face-attribute 'corfu-border
:foreground) corfu--frame)
+ (redisplay)) ;; force face loading?
(set-frame-position corfu--frame x y)
(set-frame-size corfu--frame width height t)
(make-frame-visible corfu--frame)))
@@ -251,11 +253,11 @@ Set to nil in order to disable confirmation."
"Show LINES as popup at POS, with CURR highlighted and scrollbar from LO to
LO+BAR."
(let* ((cw (frame-char-width))
(ch (frame-char-height))
- (bw (* 3 (ceiling cw 5)))
- (lborder (corfu--border bw ch 1 'corfu-border 'corfu-background))
- (lborder-curr (corfu--border bw ch 1 'corfu-border 'corfu-current))
- (rborder (corfu--border bw ch -1 'corfu-border 'corfu-background))
- (rborder-curr (corfu--border bw ch -1 'corfu-border 'corfu-current))
+ (bw (ceiling cw 1.6))
+ (lborder (corfu--border bw ch 0 'corfu-border 'corfu-background))
+ (lborder-curr (corfu--border bw ch 0 'corfu-border 'corfu-current))
+ (rborder (corfu--border bw ch 0 'corfu-border 'corfu-background))
+ (rborder-curr (corfu--border bw ch 0 'corfu-border 'corfu-current))
(rbar-curr (corfu--border bw ch (- (ceiling cw 4))
'corfu-bar 'corfu-current))
(rbar (corfu--border bw ch (- (ceiling cw 4))
- [elpa] externals/corfu updated (5d59adc -> a53a98a), Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu fef8377 02/16: Add popup comment (See #10 and #15), Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 5951abd 04/16: Reorder exit conditions, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 7155196 05/16: Simplify, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 59a3037 06/16: Ensure that overlay is deleted properly, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 9eb9ae6 08/16: Keep frame alive for performance, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu e5dad66 09/16: Use internal border,
Protesilaos Stavrou <=
- [elpa] externals/corfu e4d66b6 10/16: Use spaces for border/bar instead of image, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu cdd215d 13/16: Ensure that frame buffer is set, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu a53a98a 16/16: Simplify face definitions, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 59949d3 03/16: Use child frames instead of overlays, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 9aa922d 01/16: Use `vertical-motion` instead of `forward-line`, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 4f6aac9 07/16: Ensure that documentation/location frame still works with child-frame popup, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu aab3bb5 11/16: Use redraw-frame, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 3cfb6f4 12/16: Pixel-perfect positioning, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 2ef1beb 14/16: Use italic face for "No match" message, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 76d7bce 15/16: Rename corfu-confirm to corfu-no-match, Protesilaos Stavrou, 2021/04/28