aboutsummaryrefslogtreecommitdiffstats
path: root/yeetube-buffer.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-01 14:26:45 +0300
committerThanos Apollo <[email protected]>2023-10-01 14:38:03 +0300
commitfad95d40e147be1787640f3eaf54cc4c706d1d55 (patch)
treef76c97de5d5730a10adbf2a14ad4f7a56ce13548 /yeetube-buffer.el
parent8768ba4fc9c92227afd1a10bae8ab2bf5521aff6 (diff)
[fix] Redo faces as part of yeetube-buffer
Redo faces as part of yeetube-buffer using inherit. This way it will follow emacs theme.
Diffstat (limited to 'yeetube-buffer.el')
-rw-r--r--yeetube-buffer.el24
1 files changed, 21 insertions, 3 deletions
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)