Is there a document which lists all textColourID, backgroundColourID’s etc?


#1

I need to create some new textColourID's for new classes - in connection with my custom LookAndFeel object. 

Currently is seems these ids are shown only in the enum declaration for each of the class they are for. Which is a pain if one needs to look at EVERY ColourID  used for every widget class. 

Naturally I dont want any duplicates of Colourid's when using LookAndFeel.setColour()  so is there a page or list somewhere where these ids for ALL objects, buttons, labels etc  are  shown so i can avoid clashes ? 

 


#2

in the absence of a reply have begun collationg one myself

 

so here it is so far: 

 


listboxDS
        backgroundColourId      = 0x1002800 
        outlineColourId         = 0x1002810 
        textColourId            = 0x1002820
 
EditableTextListBoxComponent
        backgroundColourId     = 0x1000280 
        textColourId           = 0x1000281 
        outlineColourId        = 0x1000282 
WindowBase
        backgroundColourId          =   0x1000000
Alertwindow
        backgroundColourId          = 0x1001800 
        textColourId                = 0x1001810 
        outlineColourId             = 0x1001820  
BubbleComponent
        backgroundColourId            = 0x1000af0 
        outlineColourId               = 0x1000af1  
CaretComponent
        caretColourId    = 0x1000204 
CodeEditorComponent
        backgroundColourId          = 0x1004500  
        highlightColourId           = 0x1004502  
        defaultTextColourId         = 0x1004503  
        lineNumberBackgroundId      = 0x1004504  
        lineNumberTextId            = 0x1004505  
ColourSelector
        backgroundColourId              = 0x1007000   
        labelTextColourId               = 0x1007001  
Combobox
        backgroundColourId  = 0x1000b00    
        textColourId        = 0x1000a00   
        outlineColourId     = 0x1000c00   
        buttonColourId      = 0x1000d00  
        arrowColourId       = 0x1000e00 
DirectoryContentsDisplay
        highlightColourId      = 0x1000540 
        textColourId           = 0x1000541 
DocumentWindow
        textColourId             = 0x1005701  
DrawableButton
        textColourId             = 0x1004010 
        textColourOnId           = 0x1004013  
        backgroundColourId       = 0x1004011  
        backgroundOnColourId     = 0x1004012  
                                                 
FileChooserDialogBox
        titleTextColourId      = 0x1000850 
FileSearchPath
        backgroundColourId      = 0x1004100 
GroupComponent
        outlineColourId     = 0x1005400    
        textColourId        = 0x1005410    
HyperlinkButton
        textColourId             = 0x1001f00 
KeyMappingEditorComponent
        backgroundColourId  = 0x100ad00    
        textColourId        = 0x100ad01    
Label
        backgroundColourId     = 0x1000280 
        textColourId           = 0x1000281 
        outlineColourId        = 0x1000282  
LassoComponent
        lassoFillColourId       = 0x1000440 
        lassoOutlineColourId    = 0x1000441 
ListBox
        backgroundColourId      = 0x1002800 
        outlineColourId         = 0x1002810 
        textColourId            = 0x1002820  
PopupMenu
        backgroundColourId             = 0x1000700  
        textColourId                   = 0x1000600  
        headerTextColourId             = 0x1000601  /**< The colour for section header item text (see the
        highlightedBackgroundColourId  = 0x1000900  /**< The colour to fill the background of the currently
        highlightedTextColourId        = 0x1000800  /**< The colour to use for the text of the currently
ProgressBar
        backgroundColourId              = 0x1001900    /**< The background colour behind the bar. */
        foregroundColourId              = 0x1001a00    /**< The colour to use to draw the bar itself. LookAndFeel
Resizablewindow
        backgroundColourId          = 0x1005700  /**< A colour to use to fill the window's background. */
Scrollbar
        backgroundColourId          = 0x1000300    /**< The background colour of the scrollbar. */
        thumbColourId               = 0x1000400    /**< A base colour to use for the thumb. The look and feel will probably use variations on this colour. */
        trackColourId               = 0x1000401     /**< A base colour to use for the slot area of the bar. The look and feel will probably use variations on this colour. */
Slider
        backgroundColourId          = 0x1001200  /**< A colour to use to fill the slider's background. */
        thumbColourId               = 0x1001300  /**< The colour to draw the thumb with. It's up to the look
                                                       and feel class how this is used. */
        trackColourId               = 0x1001310  /**< The colour to draw the groove that the thumb moves along. */
        rotarySliderFillColourId    = 0x1001311  /**< For rotary sliders this colour fills the outer curve. */
        rotarySliderOutlineColourId = 0x1001312  /**< For rotary sliders this colour is used to draw the outer curve's outline. */
        textBoxTextColourId         = 0x1001400  /**< The colour for the text in the text-editor box used for editing the value. */
        textBoxBackgroundColourId   = 0x1001500  /**< The background colour for the text-editor box. */
        textBoxHighlightColourId    = 0x1001600  /**< The text highlight colour for the text-editor box. */
        textBoxOutlineColourId      = 0x1001700   /**< The colour to use for a border around the text-editor box. */
TabbedButtonBar
        tabOutlineColourId              = 0x1005812    /**< The colour to use to draw an outline around the tabs.  */
        tabTextColourId                 = 0x1005813    /**< The colour to use to draw the tab names. If this isn't specified
        frontOutlineColourId            = 0x1005814    /**< The colour to use to draw an outline around the currently-selected tab.  */
        frontTextColourId               = 0x1005815    /**< The colour to use to draw the currently-selected tab name. If
TabbedComponent
        backgroundColourId          = 0x1005800    /**< The colour to fill the background behind the tabs. */
        outlineColourId             = 0x1005801    /**< The colour to use to draw an outline around the content.
TextButton
        buttonColourId                  = 0x1000100  /**< The colour used to fill the button shape (when the button is toggled
        buttonOnColourId                = 0x1000101  /**< The colour used to fill the button shape (when the button is toggled
        textColourOffId                 = 0x1000102  /**< The colour to use for the button's text when the button's toggle state is "off". */
        textColourOnId                  = 0x1000103   /**< The colour to use for the button's text.when the button's toggle state is "on". */
TextEditor
        backgroundColourId       = 0x1000200 /**< The colour to use for the text component's background - this can be
        textColourId             = 0x1000201 /**< The colour that will be used when text is added to the editor. Note
        highlightColourId        = 0x1000202 /**< The colour with which to fill the background of highlighted sections of
        highlightedTextColourId  = 0x1000203 /**< The colour with which to draw the text in highlighted sections. */
        outlineColourId          = 0x1000205 /**< If this is non-transparent it will be used to draw a box around
        focusedOutlineColourId   = 0x1000206 /**< If this is non-transparent it will be used to draw a box around
        shadowColourId           = 0x1000207 /**< If this is non-transparent it'll be used to draw an inner shadow
TextPropertyComponent
        backgroundColourId          = 0x100e401    /**< The colour to fill the background of the text area. */
        textColourId                = 0x100e402    /**< The colour to use for the editable text. */
        outlineColourId             = 0x100e403    /**< The colour to use to draw an outline around the text area. */
ToggleButton
        textColourId                    = 0x1006501   /**< The colour to use for the button's text. */
Toolbar
        backgroundColourId          = 0x1003200  /**< A colour to use to fill the toolbar's background. For
        separatorColourId           = 0x1003210  /**< A colour to use to draw the separator lines. */
        buttonMouseOverBackgroundColourId = 0x1003220  /**< A colour used to paint the background of buttons when the mouse is
        buttonMouseDownBackgroundColourId = 0x1003230  /**< A colour used to paint the background of buttons when the mouse is
        labelTextColourId           = 0x1003240        /**< A colour to use for drawing the text under buttons
        editingModeOutlineColourId  = 0x1003250   /**< A colour to use for an outline around buttons when
Tooltipwindow
        backgroundColourId      = 0x1001b00    /**< The colour to fill the background with. */
        textColourId            = 0x1001c00    /**< The colour to use for the text. */
        outlineColourId         = 0x1001c10     /**< The colour to use to draw an outline around the tooltip. */
Treeview
        backgroundColourId             = 0x1000500 /**< A background colour to fill the component with. */
        linesColourId                  = 0x1000501 /**< The colour to draw the lines with.*/
        dragAndDropIndicatorColourId   = 0x1000502 /**< The colour to use for the drag-and-drop target position indicator. */
        selectedItemBackgroundColourId = 0x1000503  /**< The colour to use to fill the background of any selected items. */


#3

/*

  ==============================================================================

    LooKAndFeelColourConstants FOR XOJO

  ==============================================================================

*/

 

//--- WindowBase

backgroundColourId                  = 0x1000000

 

//--- TextButton

buttonColourId                      = 0x1000100

buttonOnColourId                    = 0x1000101

textColourOffId                     = 0x1000102

textColourOnId                      = 0x1000103

 

//--- TextEditor

backgroundColourId                  = 0x1000200

textColourId                        = 0x1000201

highlightColourId                   = 0x1000202

highlightedTextColourId             = 0x1000203

outlineColourId                     = 0x1000205

focusedOutlineColourId              = 0x1000206

shadowColourId                      = 0x1000207

 

//--- Scrollbar

backgroundColourId                  = 0x1000300

thumbColourId                       = 0x1000400

trackColourId                       = 0x1000401

 

//--- LassoComponent

lassoFillColourId                   = 0x1000440

lassoOutlineColourId                = 0x1000441

 

//--- Treeview

backgroundColourId                  = 0x1000500

linesColourId                       = 0x1000501

dragAndDropIndicatorColourId        = 0x1000502

selectedItemBackgroundColourId      = 0x1000503

 

//--- DirectoryContentsDisplay

highlightColourId                   = 0x1000540

textColourId                        = 0x1000541

 

//--- PopupMenu

textColourId                        = 0x1000600

headerTextColourId                  = 0x1000601

 

backgroundColourId                  = 0x1000700

highlightedTextColourId             = 0x1000800

highlightedBackgroundColourId       = 0x1000900

 

//--- FileChooserDialogBox

titleTextColourId                   = 0x1000850

 

//--- Label

backgroundColourId                  = 0x1000280

textColourId                        = 0x1000281

outlineColourId                     = 0x1000282

 

//--- EditableTextListBoxComponent

backgroundColourId                  = 0x1000290

textColourId                        = 0x1000291

outlineColourId                     = 0x1000292

 

//--- BubbleComponent

backgroundColourId                  = 0x1000af0

outlineColourId                     = 0x1000af1

 

//--- CaretComponent

caretColourId                       = 0x1000204

 

//--- Combobox

backgroundColourId                  = 0x1000b00

textColourId                        = 0x1000a00

outlineColourId                     = 0x1000c00

buttonColourId                      = 0x1000d00

arrowColourId                       = 0x1000e00

 

//--- Slider

backgroundColourId                  = 0x1001200

thumbColourId                       = 0x1001300

trackColourid                       = 0x1001310

 

// RotarySlider

rotarySliderFillColourId            = 0x1001311

rotarySliderOutlineColourId         = 0x1001312

 

 

//--- Resizablewindow

backgroundColourId                  = 0x1005700

 

textBoxTextColourId                 = 0x1001400

textBoxBackgroundColourId           = 0x1001500

textBoxHighlightColourId            = 0x1001600

textBoxOutlineColourId              = 0x1001700

 

//--- Alertwindow

backgroundColourId                  = 0x1001800

textColourId                        = 0x1001810

outlineColourId                     = 0x1001820

 

//--- ProgressBar

backgroundColourId                  = 0x1001900

foregroundColourId                  = 0x1001a00

 

//--- Tooltipwindow

backgroundColourId                  = 0x1001b00

textColourId                        = 0x1001c00

outlineColourId                     = 0x1001c10

 

//--- HyperlinkButton

textColourId                        = 0x1001f00

 

//--- listboxDS

backgroundColourId                  = 0x1002800

outlineColourId                     = 0x1002810

textColourId                        = 0x1002820

 

//--- ListBox

backgroundColourId                  = 0x1002800

outlineColourId                     = 0x1002810

textColourId                        = 0x1002820

 

//--- Toolbar

backgroundColourId                  = 0x1003200

separatorColourId                   = 0x1003210

buttonMouseOverBackgroundColourId   = 0x1003220

buttonMouseDownBackgroundColourId   = 0x1003230

labelTextColourId                   = 0x1003240

editingModeOutlineColourId          = 0x1003250

 

//--- DrawableButton

textColourId                        = 0x1004010

textColourOnId                      = 0x1004013

backgroundColourId                  = 0x1004011

backgroundOnColourId                = 0x1004012

 

//--- FileSearchPath

backgroundColourId                  = 0x1004100

 

//--- CodeEditorComponent

backgroundColourId                  = 0x1004500

highlightColourId                   = 0x1004502

defaultTextColourId                 = 0x1004503

lineNumberBackgroundId              = 0x1004504

lineNumberTextId                    = 0x1004505

 

//--- GroupComponent

outlineColourId                     = 0x1005400

textColourId                        = 0x1005410

 

//--- DocumentWindow

textColourId                        = 0x1005701

 

//--- TabbedComponent

backgroundColourId                  = 0x1005800

outlineColourId                     = 0x1005801

 

//--- TabbedButtonBar

tabOutlineColourId                  = 0x1005812

tabTextColourId                     = 0x1005813

frontOutlineColourId                = 0x1005814

frontTextColourId                   = 0x1005815

 

//--- ToggleButton

textColourId                        = 0x1006501

 

//--- ColourSelector

backgroundColourId                  = 0x1007000

labelTextColourId                   = 0x1007001

 

//--- KeyMappingEditorComponent

backgroundColourId                  = 0x100ad00

textColourId                        = 0x100ad01

 

 

//--- TextPropertyComponent

backgroundColourId                  = 0x100e401

textColourId                        = 0x100e402

outlineColourId                     = 0x100e403

 

 


#4

What I do when picking a value is to guess at a number that seems OK and then grep the codebase for that number to make sure it isn't already used. (Can't really see how having a separate list would help!)


#5

yep - makes sense.  

Although I didnt' know until i did all this whether there was some kind of numbering convention you had adopted that i ought to be adhering to.