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.

Bug 255972 - True / False / None unreadable with Dark Metal theme
Summary: True / False / None unreadable with Dark Metal theme
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 8.1
: P3 normal (vote)
Assignee: Jenselme
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-16 13:34 UTC by dkenny
Modified: 2015-10-17 16:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dkenny 2015-10-16 13:34:59 UTC
I run NB dev release with the the Dark Metal theme and Fonts & Colors set
to "Norway Today"

Since installing a recent Python build (a few weeks now) any time I restart
NB, it reverts the False / True / None colours to be very dark so that it's
practically unreadable on my background.

The colour it seems to default to is 0,0,102 - and my background is set to
18,30,49. 

I can change the colour to a brighter colour, but it keeps reverting back
if I restart, and I have to repeat the change again.

I don't see any errors when I do the save, but maybe I'm missing something.

It appears to write to the file:

 %APPDATA%\NetBeans\dev\config\Editors\text\x-python\FontsColors\BlueTheme\org-netbeans-modules-editor-settings-CustomFontsColors-tokenColorings.xml

The content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontscolors PUBLIC "-//NetBeans//DTD Editor Fonts and Colors settings 1.1//EN" "http://www.netbeans.org/dtds/EditorFontsColors-1_1.dtd">
<fontscolors>
    <fontcolor foreColor="ff3366cc" name="BUILTIN_FUNCTION"/>
    <fontcolor foreColor="green" name="TRUE">
        <font style="bold"/>
    </fontcolor>
    <fontcolor foreColor="ff9933cc" name="DECORATOR"/>
    <fontcolor foreColor="green" name="FALSE">
        <font style="bold"/>
    </fontcolor>
    <fontcolor foreColor="green" name="NONE">
        <font style="bold"/>
    </fontcolor>
</fontscolors>

which appears to be OK... 

The NB About details are:
  
Product Version: NetBeans IDE Dev (Build javascript2-frameworks-1566-on-20151002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 8.1 version 6.3 running on amd64; Cp1252; en_IE (nb)
User directory: C:\Users\darrenk\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\darrenk\AppData\Local\NetBeans\Cache\dev

the Python module version is:

 0.150922
Comment 1 Jenselme 2015-10-17 16:59:39 UTC
Hi,

Thanks for your report. I just changed the default colors for the BlueTheme. This appears to have also solved the custom colors that were not reapplied on None, True, False when you restarted netbeans.

You should get the update on the next release of nbpython.

changeset:   18339:4f39b848bd81
bookmark:    main
tag:         tip
user:        Julien Enselme <jenselme@netbeans.org>
date:        Sat Oct 17 18:54:27 2015 +0200
summary:     #255972 Correct default colors of None, True, False, Builtin functions for BlueTheme