From fad95d40e147be1787640f3eaf54cc4c706d1d55 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 1 Oct 2023 14:26:45 +0300 Subject: [fix] Redo faces as part of yeetube-buffer Redo faces as part of yeetube-buffer using inherit. This way it will follow emacs theme. --- yeetube-buffer.el | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'yeetube-buffer.el') diff --git a/yeetube-buffer.el b/yeetube-buffer.el index c671177..26b9586 100644 --- a/yeetube-buffer.el +++ b/yeetube-buffer.el @@ -29,9 +29,6 @@ ;;; Code: -(require 'yeetube-face) - - (defcustom yeetube-buffer-display-emojis nil "Display video title's emojis. @@ -40,6 +37,27 @@ Emojis cause formatting issues, this should be off by default." :safe #'booleanp :group 'yeetube) + +(defface yeetube-face-header-query + '((t :inherit font-lock-function-name-face)) + "Face used for the video published date.") + +(defface yeetube-face-duration + '((t :inherit font-lock-string-face)) + "Face used for the video duration.") + +(defface yeetube-face-view-count + '((t :inherit font-lock-keyword-face)) + "Face used for the video view count.") + +(defface yeetube-face-title + '((t :inherit font-lock-variable-use-face)) + "Face used for video title.") + +(defface yeetube-face-channel + '((t :inherit font-lock-function-call-face)) + "Face used for video title.") + (defun yeetube-buffer-strip-emojis (str) "Remove characters which are part of the `emoji' script from STR." (cl-remove-if (lambda (c) -- cgit v1.2.3