Skip to main content
added 304 characters in body
Source Link
Fabman
  • 588
  • 2
  • 14

Why is :box not getting the current background color?. It doesn't even work if I setq a variable with the color hardcoded, but if I set the hex color as a literal it works perfectly. If I evaluate manually the sexp (face-background 'default) it returns the right color #1E1C31 ( a dark color, but if you notice on the screenshot is setting a bright color ).

(set-face-attribute 'tab-bar-tab-inactive nil
  :family "Cascadia"
  :foreground (face-foreground 'default)
  :background (face-background 'default)
  :height 1.3
  :slant 'italic
  :box '(:line-width 9 :color (face-background 'default))
                        )

enter image description here

In my opinion my question is not exactly the same as this one: https://emacs.stackexchange.com/a/7487/7006

In both cases the solution could be solved creating a list, but in this case as @db48x explained there's an alternate solution with quasiquoting that the other answers discourage the use.

Why is :box not getting the current background color?. It doesn't even work if I setq a variable with the color hardcoded, but if I set the hex color as a literal it works perfectly. If I evaluate manually the sexp (face-background 'default) it returns the right color #1E1C31 ( a dark color, but if you notice on the screenshot is setting a bright color ).

(set-face-attribute 'tab-bar-tab-inactive nil
  :family "Cascadia"
  :foreground (face-foreground 'default)
  :background (face-background 'default)
  :height 1.3
  :slant 'italic
  :box '(:line-width 9 :color (face-background 'default))
                        )

enter image description here

Why is :box not getting the current background color?. It doesn't even work if I setq a variable with the color hardcoded, but if I set the hex color as a literal it works perfectly. If I evaluate manually the sexp (face-background 'default) it returns the right color #1E1C31 ( a dark color, but if you notice on the screenshot is setting a bright color ).

(set-face-attribute 'tab-bar-tab-inactive nil
  :family "Cascadia"
  :foreground (face-foreground 'default)
  :background (face-background 'default)
  :height 1.3
  :slant 'italic
  :box '(:line-width 9 :color (face-background 'default))
                        )

enter image description here

In my opinion my question is not exactly the same as this one: https://emacs.stackexchange.com/a/7487/7006

In both cases the solution could be solved creating a list, but in this case as @db48x explained there's an alternate solution with quasiquoting that the other answers discourage the use.

Added language for syntax hightlight on the code block
Source Link
Fabman
  • 588
  • 2
  • 14

Why is :box not getting the current background color?. It doesn't even work if I setq a variable with the color hardcoded, but if I set the hex color as a literal it works perfectly. If I evaluate manually the sexp (face-background 'default) it returns the right color #1E1C31 ( a dark color, but if you notice on the screenshot is setting a bright color ).

(set-face-attribute 'tab-bar-tab-inactive nil
  :family "Cascadia"
  :foreground (face-foreground 'default)
  :background (face-background 'default)
  :height 1.3
  :slant 'italic
  :box '(:line-width 9 :color (face-background 'default))
 (set-face-attribute 'tab-bar-tab-inactive nil
                        :family "Cascadia"
                        :foreground (face-foreground 'default)
                        :background (face-background 'default)
                        :height 1.3
                        :slant 'italic
                        :box '(:line-width 9 :color (face-background 'default))
                        )

enter image description here

Why is :box not getting the current background color?. It doesn't even work if I setq a variable with the color hardcoded, but if I set the hex color as a literal it works perfectly. If I evaluate manually the sexp (face-background 'default) it returns the right color #1E1C31 ( a dark color, but if you notice on the screenshot is setting a bright color ).

 (set-face-attribute 'tab-bar-tab-inactive nil
                        :family "Cascadia"
                        :foreground (face-foreground 'default)
                        :background (face-background 'default)
                        :height 1.3
                        :slant 'italic
                        :box '(:line-width 9 :color (face-background 'default))
                        )

enter image description here

Why is :box not getting the current background color?. It doesn't even work if I setq a variable with the color hardcoded, but if I set the hex color as a literal it works perfectly. If I evaluate manually the sexp (face-background 'default) it returns the right color #1E1C31 ( a dark color, but if you notice on the screenshot is setting a bright color ).

(set-face-attribute 'tab-bar-tab-inactive nil
  :family "Cascadia"
  :foreground (face-foreground 'default)
  :background (face-background 'default)
  :height 1.3
  :slant 'italic
  :box '(:line-width 9 :color (face-background 'default))
                        )

enter image description here

edited tags
Link
db48x
  • 19.1k
  • 1
  • 24
  • 29
Source Link
Fabman
  • 588
  • 2
  • 14
Loading