Sublime Forum

How to changed the new hover feature background?

#1

How to changed the new hover feature background?

This white background is very confusing:

I found this, but does not worked: https://github.com/wesbos/cobalt2/pull/126/

                <key>popupCss</key>
                <string><![CDATA[ html { background-color: var(--background); color: var(--foreground); } a { color: #80FFBB; line-height: 20px; } ]]></string>

I am using the build 3126 x86:

0 Likes

#2

Where is your .tmTheme file? My guess would be you put the <key> in the wrong place.

Check out the full file you linked - https://github.com/jwalton512/cobalt2/blob/30e154b2f71b61472fe78d19764ce0085ef96c21/cobalt2.tmTheme - and you’ll see it is nesting a couple element deep.

0 Likes

#3

Thanks, it is working. Now I am trying to find out what to set the change the border color:

I tried border-color: #ff0000; and other similar but does nothing. Where I can learn how to set its properties? It looks like CSS, but why the border thing does not work?

                <key>popupCss</key>
                <string><![CDATA[ html { background-color: #B9B9B9; color: var(--foreground); border-color: #ff0000; }]]></string>
0 Likes

#4

That is controlled by your .sublime-theme.

0 Likes

#5

Thanks, but:

  1. What I should look for?
  2. Or where I can learn about it?
  3. May be http://docs.sublimetext.info/en/latest/reference/color_schemes.html

I found this, but it does not changed the border color:

//
// GRID LAYOUT
//

    {
        "class": "grid_layout_control",
        "border_size": 1,
        "border_color": [189, 189, 189]
    },

0 Likes

#6

i dont think its possible through the theme it self, but what could be done is using the padding, box-sizing & background-color to mimic the border if for some reason its not working.

0 Likes