SearchBar

public class SearchBar : ConfigurationSlice

The Search bar theme.

  • Declaration

    Swift

    public static let basePath = "searchBar"
  • The Search window border width.

    Declaration

    Swift

    public static let borderWidth = floatKey("border|width", 0.0)
  • The Search window border color.

    Declaration

    Swift

    public static let borderColor = colorKey("border|color", NSColor.clear)
  • The Search window corner radius.

    Declaration

    Swift

    public static let cornerRadius = floatKey("border|cornerRadius", 5.0)
  • The Search window material.
    Allowed values: light, dark, mediumLight, ultraDark.

    Declaration

    Swift

    public static let material = stringKey("material", "ultraDark")
  • The query text color.

    Declaration

    Swift

    public static let queryText = colorKey("query|text", NSColor.white)
  • The query placeholder text color.

    Declaration

    Swift

    public static let queryPlaceholderText = colorKey("query|placeholderText", forwardFrom: queryText)
  • Row separator visibility.

    Declaration

    Swift

    public static let showRowSeparator = boolKey("rowSeparator|show", true)
  • Row separator color.

    Declaration

    Swift

    public static let rowSeparatorColor = colorKey("rowSeparator|color", NSColor.darkGray)
  • The result item text color.

    Declaration

    Swift

    public static let resultsText = colorKey("results|text", NSColor.black)
  • The result item subtitle text color.

    Declaration

    Swift

    public static let resultsSubtitle = colorKey("results|subtitle", forwardFrom: resultsText)
  • The result item selection color.

    Declaration

    Swift

    public static let resultsSelection = colorKey("results|selection", NSColor.gray)