#105 Coloured file names in Windows menu

open
nobody
None
5
2004-04-17
2004-04-17
No

This patch colour codes the file names in the windows
menu according to state.
By default the patch uses the following colours
- modified (unsaved) files are red
- read-only files are blue
- otherwise they are black

A set of X resources are used to modify the defaults.
They are documented in the help (do 'make docs' to
update the help files before building the executables).
nedit.coloredWinMenu: True
nedit.defaultWinMenuColor: black
nedit.modifiedWinMenuColor: red
nedit.readOnlyWinMenuColor: blue

Discussion

  • Arne F�rlie

    Arne F�rlie - 2004-04-17

    Version 1 of coloured windows menu patch

     
  • Tony Balinski

    Tony Balinski - 2004-04-19

    Logged In: YES
    user_id=618141

    Works well. And it's a very useful addition, I reckon.

    Small gripe: I'd like to find a way of specifying "no color
    change" or "default color". You can give an invalid color
    name (eg "none") which uses the default foreground menu
    color, but Xm(?) complains to stderr.

    The reason for this request is that I am using CDE, where
    foreground color is black or white according to CDE's setup.
    Now if I could specify (cleanly) "use default" for one of
    these colors, I would only need to set the modified (and
    perhaps readOnly) colors.

    I suppose the reason is that these resources are supposed to
    be colors, not strings: if Xt doesn't read a valid color it
    complains!

    Thanks anyway for an excellent patch!

    Tony

     
  • Arne F�rlie

    Arne F�rlie - 2004-06-02

    Logged In: YES
    user_id=75224

    I implemented a change as you suggested. You can now use a
    colour value of 'default' and no colour change will occur.
    I updated the help text too, could you have a look at it
    to see if it sufficiently clear.

    The patch is now up to date with CVS head of 2004-06-02

    I apologise for the long delay before responding.
    Arne

     
  • Arne F�rlie

    Arne F�rlie - 2004-06-02

    Version 2 with support for 'default' colour

     
  • Tony Balinski

    Tony Balinski - 2004-06-08

    Logged In: YES
    user_id=618141

    Tried the new "default" color name - works great!

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks