Sublime Forum

How can I customize these labels from the quick panel input?

#1

The themes documentation page doesn’t mention these labels, and I wasn’t able to pinpoint how to target these elements in the theme file.
I want to change the background color, and ideally, the inner padding too.
Is it even possible?

Thanks!

0 Likes

#2

Hi, did you try

sublime.log_control_tree(True)

https://www.sublimetext.com/docs/api_reference.html#module-sublime

In the ST console?

Control whether control tree logging is enabled. When enabled clicking with ctrl+alt will log the control tree under the mouse to the console.

0 Likes

Newbi colours question
#3

Those seem to be phantoms (html_control) and thus would need to be targetted by CSS in color schema. I don’t remember the class names, however.

0 Likes

#4

I tried that but I didn’t know that html_control was a phantom!

Is there a way to find out which class to target?

Also I did a quick test by targeting everything using “*” like this:

"phantom_css": "* { color: red; background-color: red; padding: 0px; border-radius: 0px }",

And it only changed the text color, not the background, border-radius or padding:

40

Maybe the box properties are controlled somewhere else?

Thanks!

0 Likes

#5

I needed to target body instead of *:

"phantom_css": "body { color: red; background-color: red; padding: 0px; border-radius: 0px }",

But without the classname it’s not really usefull, it would be great to have a list of the internal phantom class used in ST.

0 Likes