Naughty Program Manipulator

    scrollbar-style

    4.0.1 • Public • Published

    Scrollbar Style Build Status

    This package detects the preferred scroller style for Atom on OS X using the +preferredScrollerStyle method on NSScroller. For compatibility, this library always returns "legacy" on Windows and Linux.

    const scrollbarStyle = require('scrollbar-style')
    
    const style = scrollbarStyle.getPreferredScrollbarStyle()
    console.log(style) // ==> 'legacy' or 'overlay'
    
    scrollbarStyle.onDidChangePreferredScrollbarStyle((newStyle) => {
      console.log('style changed', newStyle)
    })

    Keywords

    none

    Install

    npm i scrollbar-style

    DownloadsWeekly Downloads

    184

    Version

    4.0.1

    License

    ISC

    Unpacked Size

    8.63 kB

    Total Files

    9

    Last publish

    Collaborators

    • benogle
    • nathansobo
    • kevinsawicki
    • zcbenz
    • atom-team
    • kashef