From 22ea42f3d71fdc53f1d8314c0a267ba5a5367e66 Mon Sep 17 00:00:00 2001 From: BirDt_ Date: Sat, 16 Aug 2025 22:54:32 +0800 Subject: [PATCH] corfu support --- README.org | 1 + iosis-theme.el | 8 +++++++- leucosis-theme.el | 6 ++++++ melanosis-theme.el | 8 +++++++- xanthosis-theme.el | 8 +++++++- 5 files changed, 28 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index b479b31..0a7360b 100644 --- a/README.org +++ b/README.org @@ -45,6 +45,7 @@ Ouroboros aims to support the following additional Emacs packages natively with - Rainbow Delimiters - HL-todo mode - Tab-bar-mode +- Corfu * Screenshots [[file:preview.gif]] diff --git a/iosis-theme.el b/iosis-theme.el index 157e881..febacff 100644 --- a/iosis-theme.el +++ b/iosis-theme.el @@ -226,7 +226,13 @@ `(company-tooltip ((t (:inherit fixed-pitch :background ,(darken accent-one 0.5) :foreground ,fg-main)))) `(company-tooltip-common ((t (:foreground ,(lighten accent-three 0.2))))) - ;;; HL-todo + ;;; Corfu + `(corfu-default ((t (:inherit company-tooltip)))) + `(corfu-current ((t (:inherit company-tooltip-common)))) + `(corfu-border ((t (:background ,accent-one-saturated)))) + `(corfu-bar ((t (:background ,(darken fg-main 0.2))))) + +;;; HL-todo `(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3))))) ) diff --git a/leucosis-theme.el b/leucosis-theme.el index dde95d3..18f9018 100644 --- a/leucosis-theme.el +++ b/leucosis-theme.el @@ -225,6 +225,12 @@ ;;; Company Mode `(company-tooltip ((t (:inherit fixed-pitch :background ,accent-one :foreground ,bg-main)))) `(company-tooltip-common ((t (:foreground ,(darken accent-four 0.2))))) + +;;; Corfu + `(corfu-default ((t (:inherit company-tooltip)))) + `(corfu-current ((t (:inherit company-tooltip-common)))) + `(corfu-border ((t (:background ,accent-one-saturated)))) + `(corfu-bar ((t (:background ,accent-one)))) ;;; HL-todo `(hl-todo ((t (:inherit default :background ,(darken accent-one 0.2) :foreground ,bg-main)))) diff --git a/melanosis-theme.el b/melanosis-theme.el index 2e346d1..a3a7dca 100644 --- a/melanosis-theme.el +++ b/melanosis-theme.el @@ -226,7 +226,13 @@ `(company-tooltip ((t (:inherit fixed-pitch :background ,(darken accent-one 0.5) :foreground ,fg-main)))) `(company-tooltip-common ((t (:foreground ,(lighten accent-three 0.2))))) - ;;; HL-todo + ;;; Corfu + `(corfu-default ((t (:inherit company-tooltip)))) + `(corfu-current ((t (:inherit company-tooltip-common)))) + `(corfu-border ((t (:background ,accent-one-saturated)))) + `(corfu-bar ((t (:background ,(lighten bg-main 1.5))))) + +;;; HL-todo `(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3))))) ) diff --git a/xanthosis-theme.el b/xanthosis-theme.el index baa5aab..f0ad982 100644 --- a/xanthosis-theme.el +++ b/xanthosis-theme.el @@ -226,7 +226,13 @@ `(company-tooltip ((t (:inherit fixed-pitch :background ,(darken bg-main 0.3) :foreground ,(lighten fg-main 0.3))))) `(company-tooltip-common ((t (:foreground ,(lighten accent-one-saturated 0.2))))) - ;;; HL-todo + ;;; Corfu + `(corfu-default ((t (:inherit company-tooltip)))) + `(corfu-current ((t (:inherit company-tooltip-common)))) + `(corfu-border ((t (:background ,accent-one-saturated)))) + `(corfu-bar ((t (:background ,accent-one)))) + +;;; HL-todo `(hl-todo ((t (:inherit default :background ,(lighten accent-four-desaturated 0.2) :foreground ,(darken fg-main 0.3))))) )