Skip to content

Conversation

@adammohammed
Copy link
Contributor

This resolves #462.

If a user starts dap-debug, dap-mode creates a set of icons used to do common debug actions (step, continue, etc). These icons are created using propertize to make the text that displays the images on a background.

The existing setting uses the background color from the fringe face to set the background of the icon. The return value for the face-attribute function is not guaranteed to be specified. When the :background is unspecified, the space is made for the icons but nothing is displayed.

This PR defines a face to control the background color used for the debug icons. It defaults to using the background color defined in the fringe face, but will inherit from the default face if the :background attribute is unspecified in fringe.

This resolves emacs-lsp#462.

If a user starts `dap-debug`, dap-mode creates a set of icons used to
do common debug actions (step, continue, etc). These icons are created
using `propertize` to make the text that displays the images on a
background.

The existing setting uses the background color from the `fringe` face
to set the background of the icon. The return value for the `face-attribute`
function is not guaranteed to be specified. When the `:background` is
unspecified, the space is made for the icons but nothing is displayed.

This PR defines a face to control the background color used for the
debug icons. It defaults to using the background color defined in the
`fringe` face, but will inherit from the `default` face if the
`:background` attribute is unspecified in `fringe`.
@yyoncho yyoncho merged commit 5e33684 into emacs-lsp:master Sep 26, 2021
@yyoncho
Copy link
Member

yyoncho commented Sep 26, 2021

Thank you!

@adammohammed adammohammed deleted the dap-ui-default-controls-background branch September 26, 2021 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dap-ui-controls icons do not show when :background attribute of fringe face is not set.

2 participants