This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 216364
Collapse All | Expand All

(-)versioning.ui/src/org/netbeans/modules/versioning/ui/diff/DiffSidebar.java (-1 / +7 lines)
Lines 1297-1303 Link Here
1297
1297
1298
    private void updateColors (FontColorSettings fcs) {
1298
    private void updateColors (FontColorSettings fcs) {
1299
        Color oldC = bgColor;
1299
        Color oldC = bgColor;
1300
        bgColor = getParent().getBackground();
1300
        AttributeSet as = fcs.getFontColors(FontColorNames.DEFAULT_COLORING);
1301
        Coloring coloring = as == null ? null : Coloring.fromAttributeSet(as);
1302
        Color newC = null;
1303
        if (coloring != null) {
1304
            newC = coloring.getBackColor();
1305
        }
1306
        bgColor = newC == null ? defaultBackground() : newC;
1301
        if (!bgColor.equals(oldC)) {
1307
        if (!bgColor.equals(oldC)) {
1302
            EventQueue.invokeLater(new Runnable() {
1308
            EventQueue.invokeLater(new Runnable() {
1303
1309

Return to bug 216364