Skip to content

Commit b61b3e4

Browse files
committed
Changed method and variable names to align with dark theme boolean method
1 parent 0951077 commit b61b3e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ interface IndexListener {
152152

153153
private HandlerChangeTracker tracker;
154154

155-
private boolean isThemed;
155+
private boolean isDarkTheme;
156156

157157
static {
158158
JFaceResources.getImageRegistry().put(STOP_IMAGE_KEY,
@@ -192,7 +192,7 @@ interface IndexListener {
192192
public ProgressInfoItem(Composite parent, int style, JobTreeElement progressInfo) {
193193
super(parent, style);
194194
info = progressInfo;
195-
isThemed = getCustomThemeFlag();
195+
isDarkTheme = isDarkThemeSelected();
196196
setData(info);
197197
setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false));
198198
createChildren();
@@ -834,7 +834,7 @@ public void setColor(int row) {
834834
return;
835835
}
836836

837-
if (!isThemed) {
837+
if (!isDarkTheme) {
838838
if (row % 2 == 0) {
839839
setAllBackgrounds(JFaceResources.getColorRegistry().get(DARK_COLOR_KEY));
840840
} else {
@@ -1006,12 +1006,12 @@ public boolean changed(IEclipseContext context) {
10061006
return true;
10071007
}
10081008
}
1009+
10091010
/*
1010-
* Check if workspace is using a theme. If it is, confirm it is not the default
1011-
* theme.
1011+
* Check if the current theme of the workspace is a dark theme. If it is, returns true.
10121012
*/
10131013

1014-
private boolean getCustomThemeFlag() {
1014+
private boolean isDarkThemeSelected() {
10151015
IThemeEngine engine = PlatformUI.getWorkbench().getService(IThemeEngine.class);
10161016
if (engine != null) {
10171017
ITheme activeTheme = engine.getActiveTheme();

0 commit comments

Comments
 (0)