Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sk-sketch-webview

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sk-sketch-webview - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

12

lib/index.js

@@ -73,14 +73,14 @@ /* globals NSUUID NSThread NSPanel NSMakeRect NSTexturedBackgroundWindowMask NSTitledWindowMask NSWindowTitleHidden NSClosableWindowMask NSColor NSWindowMiniaturizeButton NSWindowZoomButton NSFloatingWindowLevel WebView COScript NSWindowCloseButton NSFullSizeContentViewWindowMask NSVisualEffectView NSAppearance NSAppearanceNameVibrantLight NSVisualEffectBlendingModeBehindWindow NSLayoutConstraint NSLayoutRelationEqual NSLayoutAttributeLeft NSLayoutAttributeTop NSLayoutAttributeRight NSLayoutAttributeBottom NSResizableWindowMask */

// Titlebar
var titleBgColor = NSColor.colorWithRed_green_blue_alpha(0.98, 0.98, 0.98, 1)
panel.setTitle(options.title || context.plugin.name())
panel.setTitlebarAppearsTransparent(true)
var titleBgColor = NSColor.colorWithRed_green_blue_alpha(0.99, 0.99, 0.99, 1)
if (panel.title) {
panel.setTitle(options.title || context.plugin.name())
}
if (options.hideTitleBar) {
panel.setTitlebarAppearsTransparent(true)
panel.setTitleVisibility(NSWindowTitleHidden)
}
var contentView = panel.contentView()
var titlebarView = contentView.superview().titlebarViewController().view(),
titlebarContainerView = titlebarView.superview();
var titlebarView = contentView.superview().titlebarViewController().view();
titlebarView.setTransparent(true);
titlebarView.setBackgroundColor(titleBgColor);
titlebarContainerView.superview().setBackgroundColor(titleBgColor);

@@ -87,0 +87,0 @@ // Hide minize and zoom buttons

{
"name": "sk-sketch-webview",
"version": "0.0.2",
"version": "0.0.3",
"description": "A sketch module for creating an complex UI with a webview(configurable titlebar)",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc