forked from lorniu/go-translate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgts-faces.el
124 lines (87 loc) · 3.79 KB
/
gts-faces.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
;;; gts-faces.el --- Face definitions -*- lexical-binding: t -*-
;; Copyright (C) 2021 lorniu <[email protected]>
;; SPDX-License-Identifier: MIT
;;; Commentary:
;; The faces and colors.
;;; Code:
(require 'gts-core)
(defgroup go-translate-faces nil
"The faces for this framework."
:group 'go-translate)
;;; Common
(defface gts-logger-buffer-tag-face '((t :inherit font-lock-comment-face))
"Used in the logger buffer tag keyword."
:group 'go-translate-faces)
(defface gts-logger-buffer-timestamp-face '((t :foreground "grey"))
"Used in the logger buffer timestamp keyword."
:group 'go-translate-faces)
(defface gts-render-buffer-header-line-lang-face '((t :inherit font-lock-keyword-face))
"Used in the buffer's header-line-format, from/to."
:group 'go-translate-faces)
(defface gts-render-buffer-header-line-desc-face '((t :inherit font-lock-variable-name-face))
"Used in the buffer's header-line-format, description."
:group 'go-translate-faces)
(defface gts-render-buffer-error-face '((t :inherit font-lock-warning-face))
"Used in the buffer's error text."
:group 'go-translate-faces)
(defface gts-render-buffer-source-face '((t :inherit font-lock-string-face))
"Used in the buffer's source."
:group 'go-translate-faces)
(defface gts-render-buffer-me-header-backgroud-face '((t :background "slategray" :foreground "white" :extend t))
"Used in the buffer's multiple engine separator."
:group 'go-translate-faces)
;;; Google Buffer Render
(defface gts-google-buffer-headline-face '((t :inherit font-lock-function-name-face :weight bold))
"Propertize the headline in buffer rendering."
:group 'go-translate-faces)
(defface gts-google-buffer-phonetic-face '((t :inherit font-lock-string-face :slant normal))
"Propertize the phonetic in buffer rendering."
:group 'go-translate-faces)
(defface gts-google-buffer-suggestion-desc-face '((t :inherit font-lock-warning-face))
"Propertize the suggestion description in buffer rendering."
:group 'go-translate-faces)
(defface gts-google-buffer-suggestion-text-face '((t :slant italic :underline t))
"Propertize the phonetic text in buffer rendering."
:group 'go-translate-faces)
(defface gts-google-buffer-brief-result-face '((t :weight bold))
"Propertize the brief result in buffer rendering."
:group 'go-translate-faces)
(defface gts-google-buffer-source-face '((t :inherit font-lock-string-face))
"Propertize the source in buffer rendering."
:group 'go-translate-faces)
(defface gts-google-buffer-detail-demo-face '((t :inherit font-lock-doc-face))
"Propertize the detail demo in buffer rendering."
:group 'go-translate-faces)
;;; Posframe Render
(defcustom gts-pop-posframe-forecolor "white"
"Default foreground color of pop posframe."
:type 'string
:group 'go-translate-faces)
(defcustom gts-pop-posframe-backcolor "black"
"Default background color of pop posframe."
:type 'string
:group 'go-translate-faces)
(defcustom gts-pin-posframe-forecolor nil
"Default foreground color of pin posframe."
:type 'string
:group 'go-translate-faces)
(defcustom gts-pin-posframe-backcolor nil
"Default background color of pin posframe."
:type 'string
:group 'go-translate-faces)
(defcustom gts-pin-posframe-bdcolor "#000000"
"Default border color of pin posframe."
:type 'string
:group 'go-translate-faces)
(defcustom gts-pin-posframe-fringe-color nil
"Used in the posframe pip buffer fringe color."
:type 'string
:group 'go-translate-faces)
(defface gts-pop-posframe-me-header-face '((t :foreground "grey"))
"Used in the posframe pop buffer engine header."
:group 'go-translate-faces)
(defface gts-pop-posframe-me-header-2-face '((t (:foreground "#666666" :underline t :extend t)))
"Used in the posframe pop buffer engine header."
:group 'go-translate-faces)
(provide 'gts-faces)
;;; gts-faces.el ends here