sk-sketch-webview
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -73,2 +73,3 @@ /* 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()) | ||
@@ -79,2 +80,8 @@ if (options.hideTitleBar) { | ||
} | ||
var contentView = panel.contentView() | ||
var titlebarView = contentView.superview().titlebarViewController().view(), | ||
titlebarContainerView = titlebarView.superview(); | ||
titlebarView.setTransparent(true); | ||
titlebarView.setBackgroundColor(titleBgColor); | ||
titlebarContainerView.superview().setBackgroundColor(titleBgColor); | ||
@@ -81,0 +88,0 @@ // Hide minize and zoom buttons |
{ | ||
"name": "sk-sketch-webview", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A sketch module for creating an complex UI with a webview(configurable titlebar)", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43018
7
212