sk-sketch-webview
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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", |
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
42917