Every time I try to print the backround colour of the IDE I get the luminance as 240. #2160
Unanswered
cx-aniket-shinde
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
public static boolean isCurrentThemeDark(Display display) {
// Get background color of a standard widget (e.g., Shell or Label)
Color background = display.getSystemColor(org.eclipse.swt.SWT.COLOR_WIDGET_BACKGROUND);
RGB bgRgb = background.getRGB();
}
above code snippet I have tried so far and also tried from the iThemeManager as well but I was unhappy.
Beta Was this translation helpful? Give feedback.
All reactions