Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSColorMBS class.
NSColorMBS.controlAlternatingRowBackgroundColors as NSColorMBS()
Function:
The background colors for alternating content items: such as table view rows, collection view items.
Notes: Available on MacOS 10.3 or newer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Notes: Available on MacOS 10.3 or newer.
NSColorMBS.controlBackgroundColor as NSColorMBS
Function:
Returns the system color used for the background of large controls.
Example:
Notes:
The system color used for the background of large controls such as browsers, table views, and clip views.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.controlBackgroundColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.controlColor as NSColorMBS
Function:
Returns the system color used for the flat surfaces of a control.
Example:
Notes:
The system color used for the flat surfaces of a control. By default, the control color is a pattern color that will draw the ruled lines for the window background, which is the same as returned by windowBackgroundColor.
If you use controlColor assuming that it is a solid, you may have an incorrect appearance. You should use lightGrayColor in its place.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.controlColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
The system color used for the flat surfaces of a control. By default, the control color is a pattern color that will draw the ruled lines for the window background, which is the same as returned by windowBackgroundColor.
If you use controlColor assuming that it is a solid, you may have an incorrect appearance. You should use lightGrayColor in its place.
NSColorMBS.controlDarkShadowColor as NSColorMBS
Function:
Returns the system color used for the dark edge of the shadow dropped from controls.
Example:
Notes:
Of the two dark borders that run along the bottom and right of controls, representing shadows, the color of the outer, darker border.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.controlDarkShadowColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.controlHighlightColor as NSColorMBS
Function:
Returns the system color used for the highlighted bezels of controls.
Example:
Notes:
Of the two light borders that run along the top and left of controls, representing reflections from a light source in the upper left, the color of the inner, duller border.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.controlHighlightColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.controlLightHighlightColor as NSColorMBS
Function:
Returns the system color used for light highlights in controls.
Example:
Notes:
Of the two light borders that run along the top and left of controls, representing reflections from a light source in the upper left, the color of the outer, brighter border.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.controlLightHighlightColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.controlShadowColor as NSColorMBS
Function:
Returns the system color used for the shadows dropped from controls.
Example:
Notes:
Of the two dark borders that run along the bottom and right of controls, representing shadows, the color of the inner, lighter border.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.controlShadowColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.controlTextColor as NSColorMBS
Function:
Returns the system color used for text on controls that aren't disabled.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.controlTextColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.currentControlTint as Integer
Function:
Returns current system control tint.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
NSColorMBS.cyanColor as NSColorMBS
Function:
Returns an NSColor object whose RGB value is 0.0, 1.0, 1.0 and whose alpha value is 1.0.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim c as NSColorMBS = NSColorMBS.cyanColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.darkGrayColor as NSColorMBS
Function:
Returns an NSColor object whose grayscale value is 1/3 and whose alpha value is 1.0.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim c as NSColorMBS = NSColorMBS.darkGrayColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.disabledControlTextColor as NSColorMBS
Function:
Returns the system color used for text on disabled controls.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.disabledControlTextColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.findHighlightColor as NSColorMBS
Function:
Background color of find indicators: the bubbles that show inline search result hits.
Notes: Requires MacOS 10.13 or newer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Notes: Requires MacOS 10.13 or newer.
NSColorMBS.grayColor as NSColorMBS
Function:
Returns an NSColor object whose grayscale value is 0.5 and whose alpha value is 1.0.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim c as NSColorMBS = NSColorMBS.grayColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.greenColor as NSColorMBS
Function:
Returns an NSColor object whose RGB value is 0.0, 1.0, 0.0 and whose alpha value is 1.0.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim c as NSColorMBS = NSColorMBS.greenColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.gridColor as NSColorMBS
Function:
Returns the system color used for the optional gridlines in, for example, a table view.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.gridColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.headerColor as NSColorMBS
Function:
Returns the system color used as the background color for header cells in table views and outline views.
Example:
Notes:
The system color used as the background for header cells in table and outline views.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.headerColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.headerTextColor as NSColorMBS
Function:
Returns the system color used for text in header cells in table views and outline views.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.headerTextColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.highlightColor as NSColorMBS
Function:
Returns the system color that represents the virtual light source on the screen.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.highlightColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.keyboardFocusIndicatorColor as NSColorMBS
Function:
Returns the system color that represents the keyboard focus ring around controls.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.keyboardFocusIndicatorColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.knobColor as NSColorMBS
Function:
Returns the system color used for the flat surface of a slider knob that hasn't been selected.
Example:
Notes:
The knob's beveled edges, which set it in relief, are drawn in highlighted and shadowed versions of the face color. When a knob is selected, its color changes to selectedKnobColor.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Example:
dim c as NSColorMBS = NSColorMBS.knobColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.labelColor as NSColorMBS
Function:
Foreground color for static text and related elements.
Notes: Requires MacOS 10.10 or newer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: Requires MacOS 10.10 or newer.
NSColorMBS.lightGrayColor as NSColorMBS
Function:
Returns an NSColor object whose grayscale value is 2/3 and whose alpha value is 1.0.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim c as NSColorMBS = NSColorMBS.lightGrayColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Some examples using this method:
NSColorMBS.linkColor as NSColorMBS
Function:
Foreground color for standard system links
Notes: Requires MacOS 10.10 or newer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: Requires MacOS 10.10 or newer.
NSColorMBS.magentaColor as NSColorMBS
Function:
Returns an NSColor object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim c as NSColorMBS = NSColorMBS.magentaColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.orangeColor as NSColorMBS
Function:
Returns an NSColor object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim c as NSColorMBS = NSColorMBS.orangeColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Some examples using this method:
NSColorMBS.placeholderTextColor as NSColorMBS
Function:
Foreground color for placeholder text in controls or text views.
Notes: Requires MacOS 10.10 or newer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: Requires MacOS 10.10 or newer.
NSColorMBS.purpleColor as NSColorMBS
Function:
Returns an NSColor object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim c as NSColorMBS = NSColorMBS.purpleColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Some examples using this method:
NSColorMBS.quaternaryLabelColor as NSColorMBS
Function:
Foreground color for large secondary or disabled static text, separators, large glyphs/icons, etc.
Notes: Requires MacOS 10.10 or newer.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: Requires MacOS 10.10 or newer.
NSColorMBS.redColor as NSColorMBS
Function:
Returns an NSColor object whose RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim c as NSColorMBS = NSColorMBS.redColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
The items on this page are in the following plugins: MBS MacBase Plugin.
