Skip to content

Commit

Permalink
better "Dark mode" compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaellofgren committed Jun 17, 2020
1 parent fd37c8b commit cd63978
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions RecipeBuilder/Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -765,11 +765,11 @@
<textView drawsBackground="NO" importsGraphics="NO" richText="NO" verticallyResizable="YES" usesFontPanel="YES" selectionGranularity="word" findStyle="bar" allowsUndo="YES" smartInsertDelete="YES" id="DuA-9D-5g6">
<rect key="frame" x="0.0" y="0.0" width="1075" height="955"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
<size key="minSize" width="1075" height="955"/>
<size key="maxSize" width="1090" height="10000000"/>
<color key="insertionPointColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="insertionPointColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</textView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
Expand Down
13 changes: 8 additions & 5 deletions RecipeBuilder/Functions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,13 @@ wholeDocument = (appDelegate().outputTextField.textStorage as NSAttributedString
let warning = NSAlert()
warning.icon = NSImage(named: "Warning")
warning.addButton(withTitle: "OK")
warning.messageText = "Identifier is missing"
warning.messageText = "Identifier is missing in document"
warning.alertStyle = NSAlert.Style.warning
warning.informativeText = """
Add Identifier string to file
"""
Add Identifier key and string to the document for example:
<key>Identifier</key>
<string>com.github.name.download.app</string>
"""
warning.runModal()
return

Expand Down Expand Up @@ -196,6 +198,7 @@ wholeDocument = (appDelegate().outputTextField.textStorage as NSAttributedString
format = ".bigfix."
default:
appDelegate().recipeFormatPopup.selectItem(withTitle: "Recipe format")
format = ""
print("no matching recipe format")
}

Expand Down Expand Up @@ -481,7 +484,7 @@ let jssOutput = """
<key>GROUP_NAME</key>
<string>%NAME%-update-smart</string>
<key>GROUP_TEMPLATE</key>
<string>\(name)-SmartGroupTemplate.xml</string>
<string>SmartGroupTemplate.xml</string>
<key>NAME</key>
<string>\(name)</string>
<key>POLICY_CATEGORY</key>
Expand All @@ -496,7 +499,7 @@ let jssOutput = """
<key>MinimumVersion</key>
<string>0.6.1</string>
<key>ParentRecipe</key>
<string>com.github.dataJAR-recipes.pkg.Coot</string>
<string>INSERT_YOUR_PARENT_RECIPE_HERE</string>
<key>Process</key>
<array>
<dict>
Expand Down
2 changes: 1 addition & 1 deletion RecipeBuilder/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.01</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSApplicationCategoryType</key>
Expand Down

0 comments on commit cd63978

Please sign in to comment.