UFO ET IT

Eclipse javadoc 배경색이 검정색입니다.

ufoet 2021. 1. 17. 11:37
반응형

Eclipse javadoc 배경색이 검정색입니다.


내 이클립스 javadoc 뷰는 검은 색 배경을 가지고있어 끔찍하고 부분적으로 읽을 수 없습니다 (예 : 링크는 검은 색에 진한 파란색). 더 나쁜 것은 javadoc 팝업에도 검정색 배경이 있다는 것입니다. 해당 설정을 찾을 수 없습니다.

Sumit Singh의 답변은 javadoc 뷰의 배경을 변경하는 방법을 보여주었습니다. 그러나 나는 여전히 전경을 바꾸는 방법을 알지 못한다. 더 나쁜 것은 javadoc 팝업 배경색이 변경되지 않았다는 것입니다.

나는 그것이 새로운 설치에서도 발생하기 때문에 플러그인으로 인한 것이라고 생각하지 않습니다. 이것은 Ubuntu 10.4에서 발생합니다. Windows에서도 색상을 변경할 수 없지만 괜찮습니다.


OS 수준에서 Ubuntu의 'Tooltip'색상을 변경해야합니다.


Window > Preferences > General > Appearance > Colors And Fonts > Java
> Javadoc View Background  

여기에 이미지 설명 입력


여기에 대한 답변 중 어느 것도 나를 위해 일하지 않았습니다 (Eclipse Mars와 Ubuntu 14.04가 있습니다). 나는 편집해야했다 /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css. 나는 변경했습니다 tooltip_bg_color#f5f5bf#tooltip_fg_color#000000. Eclipse를 다시 시작한 후 변경 사항이 적용되었습니다.


KDE 사용자는 툴팁 배경색을 systemssttings.
로 이동

응용 프로그램 모양-> 색상-> 색상

그리고 조정 Tooltip BackgroundTooltip Text색상.


ubuntu 12.10 (quantal)에서는 다음 두 명령을 사용할 수 있습니다.

#foreground white => black
sudo sed -i s/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g  /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-2.0/gtkrc
#background black => yellow
sudo sed -i s/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g  /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-2.0/gtkrc

(다른 답변과 이것을 알아 내는 데 도움 이 된 이것에 감사드립니다 )


Ubuntu에 "GNOME Color Chooser"를 설치합니다 (Xubuntu에서도 작동).

"특정"탭에서 도구 설명 색상을 설정할 수 있습니다.


Ubuntu 16.04 Mate 에디션에서 Neon과 동일한 문제가 발생했습니다.

To fix it, I have created a small, user-specific GTK3 CSS settings file. It is stored as you HOMEDIR/.config/gtk-3.0/gtk.css

In my case, I compressed the spacing a bit, specified default font and also, set the appearance for the tooltip windows:

#####################
* {
    padding: 1px;
    font: Liberation Mono 12;
}

GtkToolbar {
    padding: 2px;
}

GtkMenuBar {
    padding: 2px;
}

GtkMenuItem {
    padding: 2px 6px;
}

.tooltip {
    background-color: #CAE1FF;
    color: #EEEEEE;
    text-shadow: none;
}
#########################

Please note, this issue has been resolved in Eclipse as of 8th November 2016. To have this fixed, please download one of the latest integration builds: http://download.eclipse.org/eclipse/downloads/
(The maintenance builds don't have the patch at the time of writing 2016-11Nov-09Wed).

I wrote a patch that introduced a new preference in Eclipse "Information Background/Text" under General -> Appearance -> Colors and Fonts. This preference generates the correct color on Linux/Gtk (White background, black text).
See: Bug 505738 – Define a information hover color which JDT, CDT or others can use https://bugs.eclipse.org/bugs/show_bug.cgi?id=505738

Subsequently I made Javadoc colors inherit it's color from that preference. See:
Bug 501742 – Default Javadoc text and background color should use colors consistent with Java editor background/foreground. https://bugs.eclipse.org/bugs/show_bug.cgi?id=501742

As an added bonus, it also works on the Dark Theme:
Bug 505851 – [Dark Theme] Style the HOVER_ colors for the dark theme https://bugs.eclipse.org/bugs/show_bug.cgi?id=505851


Also try this sudo apt-get install libwebkitgtk-1.0-0 after I installed the lib the javadoc looks so much better

After installing brand new Eclipse, you may notice, that hover, which shows javadoc comments, and Javadoc view render javadoc comments as a plain text. Eclipse simply ignores all the @link and @see annotations. Well, it's actually not the problem of view itself. The problem is that default Eclipse browser is not working from the box in Ubuntu 12.04. To make it works you need to install libwebkitgtk-1.0-0 package. Just type in the terminal:

출처 : http://ubuntu-user-tricks.blogspot.com/2012/09/3-things-to-do-after-installing-eclipse.html


링크 작업과 같은 html 요소가있는 적절한 형식의 툴팁 (적어도 우분투를 사용하고 멋진 호버 툴팁을 원하는 사람들을 위해)을 갖는 대답은 이클립스에서 javadoc을 표시하는 데 사용되는 libwebkitgtk를 설치하는 것입니다. 예를 들어 Ubuntu에 사전 설치되어 있지 않으며 Eclipse와 함께 제공되지 않습니다. 사용 :

sudo apt-get install libwebkitgtk-1.0-0

이클립스를 다시 시작하여 멋진 툴팁을 얻으십시오.



Windows-> Preferences-> general-> Appearance 에서 색상을 변경할 수 있습니다 .

참조 URL : https://stackoverflow.com/questions/10383467/eclipse-javadoc-background-color-is-black

반응형