How to change the highlight color in autocomplete box in Eclipse

前端 未结 7 1659
萌比男神i
萌比男神i 2020-12-04 12:11

I can\'t find a way to change the color of the highlighted selection in the autocomplete box in Eclipse.

\"enter

7条回答
  •  生来不讨喜
    2020-12-04 12:57

    How to change it for all Ubuntu themes

    On Ubuntu you can add a fix to the Appearance theme:

    • Open a terminal ( CTRL + ALT + T )
    • Create a new file with: gedit ~/.gtkrc-2.0
    • In that file add these lines:

      style "eclipse_fix" 
      { 
      base[ACTIVE] = shade(0.7, "#F2F1F0") 
      }
      
      class "GtkTreeView" style "eclipse_fix"
      
    • Save file

    • In System Settings > Appearance, switch to an other theme and then switch back to the theme you had. This is done to "refresh" the current theme with the fix. (Alternatively, log out and log in again.)
    • Test in Eclipse, hopefully your content assist will be readable ;)

提交回复
热议问题