8000 Aquamacs 2.4 -- Necessary to hard-code modify aquamacs-tabbar.el · Issue #4 · dholm/tabbar · GitHub
[go: up one dir, main page]

Skip to content

Aquamacs 2.4 -- Necessary to hard-code modify aquamacs-tabbar.el #4

Open

Description

@lawlist

There are a few default settings within aquamacs-tabbar.el that cannot be set with the customizations.el -- i.e., the hard-coded default of a couple of colors and inherited traits always trump modifications by the user through the settings panel. I had to manually hard-code it as a work-around. Perhaps you could let the maintainers of Aquamacs 2.4 know about that issue. I think the primary issues were with 'tabbar-default and 'tabbar-selected, and perhaps one more . . . Here is the hard-coded work-around of what I was trying to accomplish with the settings / customization.el, but was unable to do so. Also, I think there was one typo where an unmodified and modified descriptions were listed twice as the same thing (not the code, just the description) -- I think I fixed it in my modification below:

;; change faces for better-looking tabs (and more obvious selected tab!)
;; full face specification to avoid inheriting from the frame font
;; or from mode-line
(set-face-attribute 'tabbar-default nil
:inherit nil
:height 140
:weight 'normal
:width 'normal
:slant 'normal
:underline nil
:strike-through nil
;; inherit from frame :inverse-video
:stipple nil
:background "blue"
:foreground "orange"
:box nil
:family "Courier")

(set-face-attribute 'tabbar-selected nil
:background "black"
:foreground "green"
:weight 'bold
:height 140
:box '(:line-width 3 :color "black" :style nil))

(set-face-attribute 'tabbar-unselected nil
:background "orange"
:foreground "black"
:weight 'bold
:height 140
:box '(:line-width 3 :color "orange" :style nil))

(defface tabbar-selected-highlight '((t
:foreground "black"
:background "red"
:box (:line-width 3 :color "red" :style nil)))
"Face for selected / modified / highlighted tabs."
:group 'tabbar)

(defface tabbar-unselected-highlight '((t
:foreground "black"
:background "yellow"
:box (:line-width 3 :color "yellow" :style nil)))
"Face for unselected / unmodified / highlighted tabs."
:group 'tabbar)

;; This setting has no discernible effect.
(set-face-attribute 'tabbar-button nil
:foreground "red"
:background "red"
)

; height of the tabs
(set-face-attribute 'tabbar-separator nil
:foreground "black"
:height 1.0)

;; This setting has no discernible effect.
(setq tabbar-separator '(1))

(defface tabbar-selected-modified
'((t
:background "black"
:foreground "red"
:weight bold
:height 140
))
"Face used for selected modified tabs."
:group 'tabbar)

(defface tabbar-unselected-modified
'((t
:foreground "blue"
:background "orange"
:weight bold
:height 140
))
"Face used for unselected modified tabs."
:group 'tabbar)

(defface tabbar-key-binding '((t
:foreground "white"))
"Face used for the number assigned to each unselected tab that is NOT highlighted."
:group 'tabbar)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0