Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSColorMBS class.
NSColorMBS.scrollBarColor as NSColorMBS
Function:
Returns the system color used for scroll "bars"—that is, for the groove in which a scroller's knob moves.
Example:
Notes:
The system color used for scroll bars.
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.scrollBarColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.scrubberTexturedBackgroundColor as NSColorMBS
Function:
The scrubber texture background color.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 16.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
NSColorMBS.secondaryLabelColor as NSColorMBS
Function:
Foreground color for secondary 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.secondarySelectedControlColor as NSColorMBS
Function:
Returns the system color used in non-key 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.secondarySelectedControlColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.selectedContentBackgroundColor as NSColorMBS
Function:
The background color of selected and emphasized (focused) content: table views rows, collection views, etc.
Notes:
Alias for alternateSelectedControlColor
Requires MacOS 10.14 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:
Alias for alternateSelectedControlColor
Requires MacOS 10.14 or newer.
NSColorMBS.selectedControlColor as NSColorMBS
Function:
Returns the system color used for the face of a selected control.
Example:
Notes:
The system color used for the face of a selected control—a control being dragged or clicked.
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.selectedControlColor
window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.selectedControlTextColor as NSColorMBS
Function:
Returns the system color used for text in a selected control—a control being clicked or dragged.
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.selectedControlTextColor
Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.selectedKnobColor as NSColorMBS
Function:
Returns the system color used for the slider knob when it is selected.
Example:
Notes:
The system color used for a slider knob that is selected—that is, dragged.
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.selectedKnobColor
Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.selectedMenuItemColor as NSColorMBS
Function:
Returns the system color used for the face of selected menu items.
Example:
Notes:
The system color used for selected menu items.
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.selectedMenuItemColor
Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.selectedMenuItemTextColor as NSColorMBS
Function:
Returns the system color used for the text in menu items.
Example:
Notes:
The system color used for text in selected menu items.
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.selectedMenuItemTextColor
Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.selectedTextBackgroundColor as NSColorMBS
Function:
Returns the system color used for the background of selected text.
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.selectedTextBackgroundColor
Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.selectedTextColor as NSColorMBS
Function:
Returns the system color used for selected text.
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.selectedTextColor
Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.separatorColor as NSColorMBS
Function:
Foreground used for separators between sections of content.
Notes:
Not appropriate for use as split view or window chrome dividers.
Requires MacOS 10.14 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:
Not appropriate for use as split view or window chrome dividers.
Requires MacOS 10.14 or newer.
NSColorMBS.shadowColor as NSColorMBS
Function:
Returns the system color that represents the virtual shadows cast by raised objects 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.shadowColor
Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.systemBlueColor as NSColorMBS
Function:
The system blue color.
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.systemBrownColor as NSColorMBS
Function:
The system brown color.
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 | ❌ No | Desktop, Console & Web |
Notes: Requires MacOS 10.10 or newer.
NSColorMBS.systemGrayColor as NSColorMBS
Function:
The system gray color.
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.systemGreenColor as NSColorMBS
Function:
The system green color.
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.systemIndigoColor as NSColorMBS
Function:
The system indigo color.
Notes: Available in MacOS 10.15 or later.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Notes: Available in MacOS 10.15 or later.
NSColorMBS.systemOrangeColor as NSColorMBS
Function:
The system orange color.
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.systemPinkColor as NSColorMBS
Function:
The system pink color.
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.systemPurpleColor as NSColorMBS
Function:
The system purple color.
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.systemRedColor as NSColorMBS
Function:
The system red color.
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.systemTealColor as NSColorMBS
Function:
The system teal color.
Notes: Available in MacOS 10.12 or later.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Drawing | MBS MacBase Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Notes: Available in MacOS 10.12 or later.
NSColorMBS.systemYellowColor as NSColorMBS
Function:
The system yellow color.
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.tertiaryLabelColor as NSColorMBS
Function:
Foreground color for disabled 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.textBackgroundColor as NSColorMBS
Function:
Returns the system color used for the text background.
Example:
Notes:
The system color used for the background of text. When text is selected, its background color changes to the return value of selectedTextBackgroundColor.
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.textBackgroundColor
Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Some examples using this method:
NSColorMBS.textColor as NSColorMBS
Function:
Returns the system color used for text.
Example:
Notes:
The system color used for text. When text is selected, its color changes to the return value of selectedTextColor.
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.textColor
Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.underPageBackgroundColor as NSColorMBS
Function:
Background areas revealed behind documents. This should not be used for drawing, and NSVisualEffectMaterialUnderPageBackground should be used instead.
Notes: Requires MacOS 10.8 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.8 or newer.
NSColorMBS.unemphasizedSelectedContentBackgroundColor as NSColorMBS
Function:
The background color of selected and unemphasized content: table views rows, collection views, etc.
Notes:
Requires MacOS 10.14 or newer.
Alias for secondarySelectedControlColor
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.14 or newer.
Alias for secondarySelectedControlColor
The items on this page are in the following plugins: MBS MacBase Plugin.
