diff --git a/.gitignore b/.gitignore
index ab8bd582..b1d511e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ extension/toolbar/bundle.min.js
extension/toolbar/bundle.css
extension/build
extension/tuts
+VisBug/VisBug.xcodeproj/project.xcworkspace/xcuserdata/argyle.xcuserdatad/UserInterfaceState.xcuserstate
diff --git a/VisBug/VisBug Extension/Info.plist b/VisBug/VisBug Extension/Info.plist
new file mode 100644
index 00000000..ac132339
--- /dev/null
+++ b/VisBug/VisBug Extension/Info.plist
@@ -0,0 +1,33 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ VisBug Extension
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ $(PRODUCT_BUNDLE_PACKAGE_TYPE)
+ CFBundleShortVersionString
+ $(MARKETING_VERSION)
+ CFBundleVersion
+ $(CURRENT_PROJECT_VERSION)
+ LSMinimumSystemVersion
+ $(MACOSX_DEPLOYMENT_TARGET)
+ NSExtension
+
+ NSExtensionPointIdentifier
+ com.apple.Safari.web-extension
+ NSExtensionPrincipalClass
+ $(PRODUCT_MODULE_NAME).SafariWebExtensionHandler
+
+
+
diff --git a/VisBug/VisBug Extension/SafariWebExtensionHandler.swift b/VisBug/VisBug Extension/SafariWebExtensionHandler.swift
new file mode 100644
index 00000000..c8fa150b
--- /dev/null
+++ b/VisBug/VisBug Extension/SafariWebExtensionHandler.swift
@@ -0,0 +1,26 @@
+//
+// SafariWebExtensionHandler.swift
+// VisBug Extension
+//
+// Created by Adam Argyle on 11/2/20.
+//
+
+import SafariServices
+import os.log
+
+let SFExtensionMessageKey = "message"
+
+class SafariWebExtensionHandler: NSObject, NSExtensionRequestHandling {
+
+ func beginRequest(with context: NSExtensionContext) {
+ let item = context.inputItems[0] as! NSExtensionItem
+ let message = item.userInfo?[SFExtensionMessageKey]
+ os_log(.default, "Received message from browser.runtime.sendNativeMessage: %@", message as! CVarArg)
+
+ let response = NSExtensionItem()
+ response.userInfo = [ SFExtensionMessageKey: [ "Response to": message ] ]
+
+ context.completeRequest(returningItems: [response], completionHandler: nil)
+ }
+
+}
diff --git a/VisBug/VisBug Extension/VisBug_Extension.entitlements b/VisBug/VisBug Extension/VisBug_Extension.entitlements
new file mode 100644
index 00000000..f2ef3ae0
--- /dev/null
+++ b/VisBug/VisBug Extension/VisBug_Extension.entitlements
@@ -0,0 +1,10 @@
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.files.user-selected.read-only
+
+
+
diff --git a/VisBug/VisBug.xcodeproj/project.pbxproj b/VisBug/VisBug.xcodeproj/project.pbxproj
new file mode 100644
index 00000000..80bb5ce8
--- /dev/null
+++ b/VisBug/VisBug.xcodeproj/project.pbxproj
@@ -0,0 +1,536 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 50;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 8EBF95822550B10A007B8136 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EBF95812550B10A007B8136 /* AppDelegate.swift */; };
+ 8EBF95852550B10A007B8136 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8EBF95832550B10A007B8136 /* Main.storyboard */; };
+ 8EBF95872550B10A007B8136 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EBF95862550B10A007B8136 /* ViewController.swift */; };
+ 8EBF95892550B10B007B8136 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8EBF95882550B10B007B8136 /* Assets.xcassets */; };
+ 8EBF95902550B10B007B8136 /* VisBug Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 8EBF958F2550B10B007B8136 /* VisBug Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
+ 8EBF95952550B10B007B8136 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EBF95942550B10B007B8136 /* Cocoa.framework */; };
+ 8EBF95982550B10B007B8136 /* SafariWebExtensionHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EBF95972550B10B007B8136 /* SafariWebExtensionHandler.swift */; };
+ 8EBF95AC2550B10C007B8136 /* visbug.js in Resources */ = {isa = PBXBuildFile; fileRef = 8EBF95A52550B10C007B8136 /* visbug.js */; };
+ 8EBF95AD2550B10C007B8136 /* toolbar in Resources */ = {isa = PBXBuildFile; fileRef = 8EBF95A62550B10C007B8136 /* toolbar */; };
+ 8EBF95AE2550B10C007B8136 /* contextmenu in Resources */ = {isa = PBXBuildFile; fileRef = 8EBF95A72550B10C007B8136 /* contextmenu */; };
+ 8EBF95AF2550B10C007B8136 /* icons in Resources */ = {isa = PBXBuildFile; fileRef = 8EBF95A82550B10C007B8136 /* icons */; };
+ 8EBF95B02550B10C007B8136 /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 8EBF95A92550B10C007B8136 /* manifest.json */; };
+ 8EBF95B12550B10C007B8136 /* build in Resources */ = {isa = PBXBuildFile; fileRef = 8EBF95AA2550B10C007B8136 /* build */; };
+ 8EBF95B22550B10C007B8136 /* tuts in Resources */ = {isa = PBXBuildFile; fileRef = 8EBF95AB2550B10C007B8136 /* tuts */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 8EBF95912550B10B007B8136 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 8EBF95752550B10A007B8136 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 8EBF958E2550B10B007B8136;
+ remoteInfo = "VisBug Extension";
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 8EBF95A02550B10B007B8136 /* Embed App Extensions */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 13;
+ files = (
+ 8EBF95902550B10B007B8136 /* VisBug Extension.appex in Embed App Extensions */,
+ );
+ name = "Embed App Extensions";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 8EBF957D2550B10A007B8136 /* VisBug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VisBug.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 8EBF95802550B10A007B8136 /* VisBug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = VisBug.entitlements; sourceTree = ""; };
+ 8EBF95812550B10A007B8136 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 8EBF95842550B10A007B8136 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 8EBF95862550B10A007B8136 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
+ 8EBF95882550B10B007B8136 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 8EBF958A2550B10B007B8136 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 8EBF958F2550B10B007B8136 /* VisBug Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "VisBug Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 8EBF95942550B10B007B8136 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
+ 8EBF95972550B10B007B8136 /* SafariWebExtensionHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SafariWebExtensionHandler.swift; sourceTree = ""; };
+ 8EBF95992550B10B007B8136 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 8EBF959A2550B10B007B8136 /* VisBug_Extension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = VisBug_Extension.entitlements; sourceTree = ""; };
+ 8EBF95A52550B10C007B8136 /* visbug.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = visbug.js; path = ../../extension/visbug.js; sourceTree = ""; };
+ 8EBF95A62550B10C007B8136 /* toolbar */ = {isa = PBXFileReference; lastKnownFileType = folder; name = toolbar; path = ../../extension/toolbar; sourceTree = ""; };
+ 8EBF95A72550B10C007B8136 /* contextmenu */ = {isa = PBXFileReference; lastKnownFileType = folder; name = contextmenu; path = ../../extension/contextmenu; sourceTree = ""; };
+ 8EBF95A82550B10C007B8136 /* icons */ = {isa = PBXFileReference; lastKnownFileType = folder; name = icons; path = ../../extension/icons; sourceTree = ""; };
+ 8EBF95A92550B10C007B8136 /* manifest.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; name = manifest.json; path = ../../extension/manifest.json; sourceTree = ""; };
+ 8EBF95AA2550B10C007B8136 /* build */ = {isa = PBXFileReference; lastKnownFileType = folder; name = build; path = ../../extension/build; sourceTree = ""; };
+ 8EBF95AB2550B10C007B8136 /* tuts */ = {isa = PBXFileReference; lastKnownFileType = folder; name = tuts; path = ../../extension/tuts; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 8EBF957A2550B10A007B8136 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 8EBF958C2550B10B007B8136 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8EBF95952550B10B007B8136 /* Cocoa.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 8EBF95742550B10A007B8136 = {
+ isa = PBXGroup;
+ children = (
+ 8EBF957F2550B10A007B8136 /* VisBug */,
+ 8EBF95962550B10B007B8136 /* VisBug Extension */,
+ 8EBF95932550B10B007B8136 /* Frameworks */,
+ 8EBF957E2550B10A007B8136 /* Products */,
+ );
+ indentWidth = 2;
+ sourceTree = "";
+ tabWidth = 2;
+ };
+ 8EBF957E2550B10A007B8136 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 8EBF957D2550B10A007B8136 /* VisBug.app */,
+ 8EBF958F2550B10B007B8136 /* VisBug Extension.appex */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 8EBF957F2550B10A007B8136 /* VisBug */ = {
+ isa = PBXGroup;
+ children = (
+ 8EBF95802550B10A007B8136 /* VisBug.entitlements */,
+ 8EBF95812550B10A007B8136 /* AppDelegate.swift */,
+ 8EBF95832550B10A007B8136 /* Main.storyboard */,
+ 8EBF95862550B10A007B8136 /* ViewController.swift */,
+ 8EBF95882550B10B007B8136 /* Assets.xcassets */,
+ 8EBF958A2550B10B007B8136 /* Info.plist */,
+ );
+ path = VisBug;
+ sourceTree = "";
+ };
+ 8EBF95932550B10B007B8136 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 8EBF95942550B10B007B8136 /* Cocoa.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+ 8EBF95962550B10B007B8136 /* VisBug Extension */ = {
+ isa = PBXGroup;
+ children = (
+ 8EBF95A42550B10C007B8136 /* Resources */,
+ 8EBF95972550B10B007B8136 /* SafariWebExtensionHandler.swift */,
+ 8EBF95992550B10B007B8136 /* Info.plist */,
+ 8EBF959A2550B10B007B8136 /* VisBug_Extension.entitlements */,
+ );
+ path = "VisBug Extension";
+ sourceTree = "";
+ };
+ 8EBF95A42550B10C007B8136 /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 8EBF95A52550B10C007B8136 /* visbug.js */,
+ 8EBF95A62550B10C007B8136 /* toolbar */,
+ 8EBF95A72550B10C007B8136 /* contextmenu */,
+ 8EBF95A82550B10C007B8136 /* icons */,
+ 8EBF95A92550B10C007B8136 /* manifest.json */,
+ 8EBF95AA2550B10C007B8136 /* build */,
+ 8EBF95AB2550B10C007B8136 /* tuts */,
+ );
+ name = Resources;
+ path = "VisBug Extension";
+ sourceTree = SOURCE_ROOT;
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 8EBF957C2550B10A007B8136 /* VisBug */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 8EBF95A12550B10B007B8136 /* Build configuration list for PBXNativeTarget "VisBug" */;
+ buildPhases = (
+ 8EBF95792550B10A007B8136 /* Sources */,
+ 8EBF957A2550B10A007B8136 /* Frameworks */,
+ 8EBF957B2550B10A007B8136 /* Resources */,
+ 8EBF95A02550B10B007B8136 /* Embed App Extensions */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 8EBF95922550B10B007B8136 /* PBXTargetDependency */,
+ );
+ name = VisBug;
+ productName = VisBug;
+ productReference = 8EBF957D2550B10A007B8136 /* VisBug.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 8EBF958E2550B10B007B8136 /* VisBug Extension */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 8EBF959D2550B10B007B8136 /* Build configuration list for PBXNativeTarget "VisBug Extension" */;
+ buildPhases = (
+ 8EBF958B2550B10B007B8136 /* Sources */,
+ 8EBF958C2550B10B007B8136 /* Frameworks */,
+ 8EBF958D2550B10B007B8136 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "VisBug Extension";
+ productName = "VisBug Extension";
+ productReference = 8EBF958F2550B10B007B8136 /* VisBug Extension.appex */;
+ productType = "com.apple.product-type.app-extension";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 8EBF95752550B10A007B8136 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastSwiftUpdateCheck = 1220;
+ LastUpgradeCheck = 1220;
+ TargetAttributes = {
+ 8EBF957C2550B10A007B8136 = {
+ CreatedOnToolsVersion = 12.2;
+ };
+ 8EBF958E2550B10B007B8136 = {
+ CreatedOnToolsVersion = 12.2;
+ };
+ };
+ };
+ buildConfigurationList = 8EBF95782550B10A007B8136 /* Build configuration list for PBXProject "VisBug" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 8EBF95742550B10A007B8136;
+ productRefGroup = 8EBF957E2550B10A007B8136 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 8EBF957C2550B10A007B8136 /* VisBug */,
+ 8EBF958E2550B10B007B8136 /* VisBug Extension */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 8EBF957B2550B10A007B8136 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8EBF95892550B10B007B8136 /* Assets.xcassets in Resources */,
+ 8EBF95852550B10A007B8136 /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 8EBF958D2550B10B007B8136 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8EBF95AE2550B10C007B8136 /* contextmenu in Resources */,
+ 8EBF95AF2550B10C007B8136 /* icons in Resources */,
+ 8EBF95B22550B10C007B8136 /* tuts in Resources */,
+ 8EBF95B02550B10C007B8136 /* manifest.json in Resources */,
+ 8EBF95B12550B10C007B8136 /* build in Resources */,
+ 8EBF95AD2550B10C007B8136 /* toolbar in Resources */,
+ 8EBF95AC2550B10C007B8136 /* visbug.js in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 8EBF95792550B10A007B8136 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8EBF95872550B10A007B8136 /* ViewController.swift in Sources */,
+ 8EBF95822550B10A007B8136 /* AppDelegate.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 8EBF958B2550B10B007B8136 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8EBF95982550B10B007B8136 /* SafariWebExtensionHandler.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 8EBF95922550B10B007B8136 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 8EBF958E2550B10B007B8136 /* VisBug Extension */;
+ targetProxy = 8EBF95912550B10B007B8136 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 8EBF95832550B10A007B8136 /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 8EBF95842550B10A007B8136 /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 8EBF959B2550B10B007B8136 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.15;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 8EBF959C2550B10B007B8136 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.15;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ };
+ name = Release;
+ };
+ 8EBF959E2550B10B007B8136 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_ENTITLEMENTS = "VisBug Extension/VisBug_Extension.entitlements";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 2;
+ INFOPLIST_FILE = "VisBug Extension/Info.plist";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@executable_path/../../../../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MARKETING_VERSION = 0.3.0;
+ PRODUCT_BUNDLE_IDENTIFIER = argyleink.VisBug.Extension;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ SWIFT_VERSION = 5.0;
+ };
+ name = Debug;
+ };
+ 8EBF959F2550B10B007B8136 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_ENTITLEMENTS = "VisBug Extension/VisBug_Extension.entitlements";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 2;
+ INFOPLIST_FILE = "VisBug Extension/Info.plist";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@executable_path/../../../../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MARKETING_VERSION = 0.3.0;
+ PRODUCT_BUNDLE_IDENTIFIER = argyleink.VisBug.Extension;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ SWIFT_VERSION = 5.0;
+ };
+ name = Release;
+ };
+ 8EBF95A22550B10B007B8136 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = VisBug/VisBug.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ CURRENT_PROJECT_VERSION = 2;
+ INFOPLIST_FILE = VisBug/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MARKETING_VERSION = 0.3.0;
+ PRODUCT_BUNDLE_IDENTIFIER = argyleink.VisBug;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Debug;
+ };
+ 8EBF95A32550B10B007B8136 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = VisBug/VisBug.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ CURRENT_PROJECT_VERSION = 2;
+ INFOPLIST_FILE = VisBug/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ MARKETING_VERSION = 0.3.0;
+ PRODUCT_BUNDLE_IDENTIFIER = argyleink.VisBug;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 8EBF95782550B10A007B8136 /* Build configuration list for PBXProject "VisBug" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 8EBF959B2550B10B007B8136 /* Debug */,
+ 8EBF959C2550B10B007B8136 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 8EBF959D2550B10B007B8136 /* Build configuration list for PBXNativeTarget "VisBug Extension" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 8EBF959E2550B10B007B8136 /* Debug */,
+ 8EBF959F2550B10B007B8136 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 8EBF95A12550B10B007B8136 /* Build configuration list for PBXNativeTarget "VisBug" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 8EBF95A22550B10B007B8136 /* Debug */,
+ 8EBF95A32550B10B007B8136 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 8EBF95752550B10A007B8136 /* Project object */;
+}
diff --git a/VisBug/VisBug.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/VisBug/VisBug.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..919434a6
--- /dev/null
+++ b/VisBug/VisBug.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/VisBug/VisBug.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/VisBug/VisBug.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 00000000..18d98100
--- /dev/null
+++ b/VisBug/VisBug.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/VisBug/VisBug.xcodeproj/xcshareddata/xcschemes/VisBug.xcscheme b/VisBug/VisBug.xcodeproj/xcshareddata/xcschemes/VisBug.xcscheme
new file mode 100644
index 00000000..c4364810
--- /dev/null
+++ b/VisBug/VisBug.xcodeproj/xcshareddata/xcschemes/VisBug.xcscheme
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/VisBug/VisBug.xcodeproj/xcuserdata/argyle.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/VisBug/VisBug.xcodeproj/xcuserdata/argyle.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
new file mode 100644
index 00000000..59ae58ba
--- /dev/null
+++ b/VisBug/VisBug.xcodeproj/xcuserdata/argyle.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
diff --git a/VisBug/VisBug.xcodeproj/xcuserdata/argyle.xcuserdatad/xcschemes/xcschememanagement.plist b/VisBug/VisBug.xcodeproj/xcuserdata/argyle.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 00000000..97cc493d
--- /dev/null
+++ b/VisBug/VisBug.xcodeproj/xcuserdata/argyle.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,27 @@
+
+
+
+
+ SchemeUserState
+
+ VisBug Extension.xcscheme_^#shared#^_
+
+ orderHint
+ 1
+
+ VisBug.xcscheme_^#shared#^_
+
+ orderHint
+ 0
+
+
+ SuppressBuildableAutocreation
+
+ 8EBF957C2550B10A007B8136
+
+ primary
+
+
+
+
+
diff --git a/VisBug/VisBug/AppDelegate.swift b/VisBug/VisBug/AppDelegate.swift
new file mode 100644
index 00000000..bc9a67fa
--- /dev/null
+++ b/VisBug/VisBug/AppDelegate.swift
@@ -0,0 +1,21 @@
+//
+// AppDelegate.swift
+// VisBug
+//
+// Created by Adam Argyle on 11/3/20.
+//
+
+import Cocoa
+
+@NSApplicationMain
+class AppDelegate: NSObject, NSApplicationDelegate {
+
+ func applicationDidFinishLaunching(_ aNotification: Notification) {
+ // Insert code here to initialize your application
+ }
+
+ func applicationWillTerminate(_ aNotification: Notification) {
+ // Insert code here to tear down your application
+ }
+
+}
diff --git a/VisBug/VisBug/Assets.xcassets/AccentColor.colorset/Contents.json b/VisBug/VisBug/Assets.xcassets/AccentColor.colorset/Contents.json
new file mode 100644
index 00000000..762a0487
--- /dev/null
+++ b/VisBug/VisBug/Assets.xcassets/AccentColor.colorset/Contents.json
@@ -0,0 +1,20 @@
+{
+ "colors" : [
+ {
+ "color" : {
+ "color-space" : "display-p3",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "1.000",
+ "green" : "0.000",
+ "red" : "1.000"
+ }
+ },
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/Contents.json b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..57e1894c
--- /dev/null
+++ b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,64 @@
+{
+ "images" : [
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "16x16"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "16x16"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "32x32"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "32x32"
+ },
+ {
+ "filename" : "VisBug1x-2.png",
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "128x128"
+ },
+ {
+ "filename" : "VisBug2x-4.png",
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "128x128"
+ },
+ {
+ "filename" : "VisBug1x-1.png",
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "256x256"
+ },
+ {
+ "filename" : "VisBug2x-1.png",
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "256x256"
+ },
+ {
+ "filename" : "VisBug1x.png",
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "512x512"
+ },
+ {
+ "filename" : "VisBug2x.png",
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "512x512"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug1x-1.png b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug1x-1.png
new file mode 100644
index 00000000..d41ab68e
Binary files /dev/null and b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug1x-1.png differ
diff --git a/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug1x-2.png b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug1x-2.png
new file mode 100644
index 00000000..7796e50c
Binary files /dev/null and b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug1x-2.png differ
diff --git a/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug1x.png b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug1x.png
new file mode 100644
index 00000000..ce7a27fc
Binary files /dev/null and b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug1x.png differ
diff --git a/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug2x-1.png b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug2x-1.png
new file mode 100644
index 00000000..529c2ffb
Binary files /dev/null and b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug2x-1.png differ
diff --git a/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug2x-4.png b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug2x-4.png
new file mode 100644
index 00000000..580a7d99
Binary files /dev/null and b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug2x-4.png differ
diff --git a/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug2x.png b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug2x.png
new file mode 100644
index 00000000..e3f79f27
Binary files /dev/null and b/VisBug/VisBug/Assets.xcassets/AppIcon.appiconset/VisBug2x.png differ
diff --git a/VisBug/VisBug/Assets.xcassets/Contents.json b/VisBug/VisBug/Assets.xcassets/Contents.json
new file mode 100644
index 00000000..73c00596
--- /dev/null
+++ b/VisBug/VisBug/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/VisBug/VisBug/Base.lproj/Main.storyboard b/VisBug/VisBug/Base.lproj/Main.storyboard
new file mode 100644
index 00000000..ad15cb70
--- /dev/null
+++ b/VisBug/VisBug/Base.lproj/Main.storyboard
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/VisBug/VisBug/Info.plist b/VisBug/VisBug/Info.plist
new file mode 100644
index 00000000..8a664504
--- /dev/null
+++ b/VisBug/VisBug/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIconFile
+
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ $(PRODUCT_BUNDLE_PACKAGE_TYPE)
+ CFBundleShortVersionString
+ $(MARKETING_VERSION)
+ CFBundleVersion
+ $(CURRENT_PROJECT_VERSION)
+ LSApplicationCategoryType
+ public.app-category.developer-tools
+ LSMinimumSystemVersion
+ $(MACOSX_DEPLOYMENT_TARGET)
+ NSMainStoryboardFile
+ Main
+ NSPrincipalClass
+ NSApplication
+
+
diff --git a/VisBug/VisBug/ViewController.swift b/VisBug/VisBug/ViewController.swift
new file mode 100644
index 00000000..165f0b71
--- /dev/null
+++ b/VisBug/VisBug/ViewController.swift
@@ -0,0 +1,51 @@
+//
+// ViewController.swift
+// VisBug
+//
+// Created by Adam Argyle on 11/2/20.
+//
+
+import Cocoa
+import SafariServices.SFSafariApplication
+import SafariServices.SFSafariExtensionManager
+
+let appName = "VisBug"
+let extensionBundleIdentifier = "argyleink.VisBug.Extension"
+
+class ViewController: NSViewController {
+
+ @IBOutlet var appNameLabel: NSTextField!
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+ self.appNameLabel.stringValue = appName
+ SFSafariExtensionManager.getStateOfSafariExtension(withIdentifier: extensionBundleIdentifier) { (state, error) in
+ guard let state = state, error == nil else {
+ // Insert code to inform the user that something went wrong.
+ return
+ }
+
+ DispatchQueue.main.async {
+ if (state.isEnabled) {
+ self.appNameLabel.stringValue = "\(appName)'s extension is currently on."
+ } else {
+ self.appNameLabel.stringValue = "\(appName)'s extension is currently off. You can turn it on in Safari Extensions preferences."
+ }
+ }
+ }
+ }
+
+ @IBAction func openSafariExtensionPreferences(_ sender: AnyObject?) {
+ SFSafariApplication.showPreferencesForExtension(withIdentifier: extensionBundleIdentifier) { error in
+ guard error == nil else {
+ // Insert code to inform the user that something went wrong.
+ return
+ }
+
+ DispatchQueue.main.async {
+ NSApplication.shared.terminate(nil)
+ }
+ }
+ }
+
+}
diff --git a/VisBug/VisBug/VisBug.entitlements b/VisBug/VisBug/VisBug.entitlements
new file mode 100644
index 00000000..f2ef3ae0
--- /dev/null
+++ b/VisBug/VisBug/VisBug.entitlements
@@ -0,0 +1,10 @@
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.files.user-selected.read-only
+
+
+
diff --git a/app/components/_variables.css b/app/components/_variables.css
index d1818ca5..00a88edf 100644
--- a/app/components/_variables.css
+++ b/app/components/_variables.css
@@ -1,7 +1,9 @@
:host {
--theme-bg: hsl(0 0% 100%);
- --theme-bd: hsl(0 0% 100% / .8);
- --theme-bd-2: hsl(0 0% 100% / .9);
+ --theme-bd: hsl(0 0% 100% / var(--theme-bd-opacity));
+ --theme-bd-2: hsl(0 0% 100% / var(--theme-bd-2-opacity));
+ --theme-bd-opacity: 1;
+ --theme-bd-2-opacity: 1;
--theme-color: hotpink;
--theme-blue: hsl(188 90% 45%);
--theme-purple: hsl(267 100% 58%);
@@ -20,12 +22,17 @@
@media (prefers-color-scheme: dark) {
--theme-bg: hsl(0 0% 10%);
- --theme-bd: hsl(0 0% 10% / .8);
- --theme-bd-2: hsl(0 0% 10% / .9);
+ --theme-bd: hsl(0 0% 10% / var(--theme-bd-opacity));
+ --theme-bd-2: hsl(0 0% 10% / var(--theme-bd-2-opacity));
--theme-text_color: hsl(0 0% 90%);
--theme-icon_color: hsl(0 0% 80%);
--theme-icon_hover-bg: hsl(0 0% 15%);
--theme-icon_active-bg: hsl(0 0% 20%);
}
+
+ @supports (backdrop-filter: blur(5px)) {
+ --theme-bd-opacity: .8;
+ --theme-bd-2-opacity: .9;
+ }
}
diff --git a/app/components/selection/hover.element.js b/app/components/selection/hover.element.js
index 856076e2..5786517b 100644
--- a/app/components/selection/hover.element.js
+++ b/app/components/selection/hover.element.js
@@ -14,9 +14,11 @@ export class Hover extends Handles {
this.style.setProperty('--position', isFixed ? 'fixed' : 'absolute')
return `
-
+