From acfa476de4fc0b03e1656af152aa473a7199656a Mon Sep 17 00:00:00 2001
From: Jessie Hildebrandt <jessieh@jessieh.net>
Date: Thu, 29 Dec 2022 20:11:57 -0500
Subject: [PATCH] Add configurable completions-first-difference face

---
 adwaita-dark-theme.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/adwaita-dark-theme.el b/adwaita-dark-theme.el
index 0dd0774..7ef9ef2 100644
--- a/adwaita-dark-theme.el
+++ b/adwaita-dark-theme.el
@@ -113,6 +113,11 @@
 ;; Variable definitions
 ;; ---------------------------------- ;;
 
+(defcustom adwaita-dark-theme-no-completions-first-difference nil
+  "When non-nil, `completions-first-difference' will be set to an empty face."
+  :group 'adwaita-dark-theme
+  :type 'boolean)
+
 (defcustom adwaita-dark-theme-gray-rainbow-delimiters nil
   "When non-nil, `rainbow-delimiters-mode' faces will be the same shade of gray."
   :group 'adwaita-dark-theme
@@ -270,6 +275,7 @@
    ;; completions
    `(completions-annotations ((,class (:inherit shadow))))
    `(completions-common-part ((,class (:foreground ,blue))))
+   `(completions-first-difference ((,class ,(unless adwaita-dark-theme-no-completions-first-difference `(:foreground ,base-7)))))
 
    ;; custom
    `(custom-button ((,class (:background ,base-3 :foreground ,fg :box (:line-width 3 :color ,base-3)))))