Ignore:
Timestamp:
08/09/12 17:09:46 (13 years ago)
Author:
tjcschipper
Message:
  • Modifiers property on LineWithActions? and selectors is gone! Yay! Colour handling now happens through a combination of up to four CSS classes.

    "red/blue/orange/green/purple/etc": These do not do anything in themselves, they just mark a certain element as being of that colour.
    "inheritBgColor": Any element that has this class assigned will adjust its color to the color class of their parents. A 'div.blue' has no colour itself, but a 'div.inheritBgColor' within that div will turn blue. It also adjusts text colour to white.
    "bg": Any element with this property will also take on any colour class assigned to itself. This overrides 'inheritBgColor' if the element has both classes, so you could still make an orange button in a 'blue' container if you wanted. If the element itself does not have a colour class, it will stay transparent. This also adjusts text colour to white.
    "light": This class modifies the inherited/set colour to its lighter version (see RFT Design Sheet). For example, it can be used when placing a blue BlockButton? on an already blue LineWithActions?: adding the light class will differentiate the button from the background.

For examples of how to implement/derive more specific style rules using these classes, see rftButtons.css.

  • Changed all widgets still using the 'modifiers' to assign proper colour classes where necessary. (For instance, changed Selector.js to always set its main buttons to "light".)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/ObjectBox.js

    r359 r396  
    1515            startup: function() {
    1616                this.line1 = new LineWithActionsWidget({
    17                     modifiers: 'green',
    1817                    actions: {
    1918                        "inspectIcon": {
     
    2120                            properties: {
    2221                                blockButton: false,
    23                                 modifiers: "white",
    2422                                icon: "Inspect"
    2523                            }
     
    2826                }).placeAt(this.line1Node);
    2927                this.line2 = new LineWithActionsWidget({
    30                     modifiers: 'green'
    3128                }).placeAt(this.line1Node);
    3229                var line3Actions = this._createLine3Actions();
    3330                this.line3 = new LineWithActionsWidget({
    34                     modifiers: 'green',
    3531                    actions: line3Actions
    3632                }).placeAt(this.line1Node);
     
    5046                            blockButton: true,
    5147                            label: action,
    52                             modifiers: "trans",
    5348                            icon: action.charAt(0).toUpperCase()+action.slice(1)
    5449                        }
     
    7671            }
    7772        });
    78     });
     73});
Note: See TracChangeset for help on using the changeset viewer.