Skip to content

Commit

Permalink
Merge pull request #23 from 8cylinder/selected-and-modified
Browse files Browse the repository at this point in the history
If a tab is selected, it will show it's modified state
  • Loading branch information
dholm committed May 24, 2016
2 parents e2f46ab + 76783c1 commit b6c285a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tabbar.el
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,15 @@ current cached copy."
"Face used for unsaved tabs."
:group 'tabbar)

(defface tabbar-selected-modified
'((t
:inherit tabbar-default
:box (:line-width 1 :color "white" :style released-button)
:foreground "red"
))
"Face used for unsaved and selected tabs."
:group 'tabbar)

(defface tabbar-highlight
'((t
:underline t
Expand Down Expand Up @@ -1136,7 +1145,10 @@ Call `tabbar-tab-label-function' to obtain a label for TAB."
'local-map (tabbar-make-tab-keymap tab)
'help-echo 'tabbar-help-on-tab
'mouse-face 'tabbar-highlight
'face (cond ((tabbar-selected-p tab (tabbar-current-tabset))
'face (cond ((and (tabbar-selected-p tab (tabbar-current-tabset))
(tabbar-modified-p tab (tabbar-current-tabset)))
'tabbar-selected-modified)
((tabbar-selected-p tab (tabbar-current-tabset))
'tabbar-selected)
((tabbar-modified-p tab (tabbar-current-tabset))
'tabbar-modified)
Expand Down

0 comments on commit b6c285a

Please sign in to comment.