浏览代码

New face for clock in mode line.

Carsten Dominik 16 年之前
父节点
当前提交
855f85b46f
共有 3 个文件被更改,包括 14 次插入1 次删除
  1. 7 0
      lisp/ChangeLog
  2. 2 1
      lisp/org-clock.el
  3. 5 0
      lisp/org-faces.el

+ 7 - 0
lisp/ChangeLog

@@ -1,3 +1,10 @@
+2009-06-06  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-clock.el (org-clock-update-mode-line): Apply face
+	org-mode-line-clock.
+
+	* org-faces.el (org-mode-line-clock): New face.
+
 2009-06-05  Tassilo Horn  <tassilo@member.fsf.org>
 
 	* org-gnus.el (org-gnus-store-link): Fix bug where

+ 2 - 1
lisp/org-clock.el

@@ -349,7 +349,8 @@ If not, show simply the clocked time like 01:50."
 			       'help-echo (concat help-text ": " org-clock-heading))
 	     (org-propertize clock-string 'help-echo help-text)))
 	 'local-map org-clock-mode-line-map
-	 'mouse-face (if (featurep 'xemacs) 'highlight 'mode-line-highlight)))
+	 'mouse-face (if (featurep 'xemacs) 'highlight 'mode-line-highlight)
+	 'face 'org-mode-line-clock))
   (if org-clock-effort (org-clock-notify-once-if-expired))
   (force-mode-line-update))
 

+ 5 - 0
lisp/org-faces.el

@@ -613,6 +613,11 @@ If it is less than 8, the level-1 face gets re-used for level N+1 etc."
   "Face used to highlight math latex and other special exporter stuff."
   :group 'org-faces)
 
+(unless (facep 'org-mode-line-clock)
+  (copy-face 'modeline 'org-mode-line-clock)
+  (set-face-doc-string 'org-agenda-date
+		       "Face used for clock display in mode line."))
+
 (provide 'org-faces)
 
 ;; arch-tag: 9dab5f91-c4b9-4d6f-bac3-1f6211ad0a04