Skip to content

Commit

Permalink
Distinguish between warnings and errors in Preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Calderolla committed Nov 27, 2016
1 parent 389000f commit 83f5ede
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 1 deletion.
Binary file added Artwork/status_icons.afdesign
Binary file not shown.
22 changes: 22 additions & 0 deletions Resources/App/Assets.xcassets/error.imageset/Contents.json
@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "error.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "error@2x.png"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/App/Assets.xcassets/success.imageset/success.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/App/Assets.xcassets/success.imageset/success@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/App/Assets.xcassets/warning.imageset/warning.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/App/Assets.xcassets/warning.imageset/warning@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Sources/App/PreferencesController.swift
Expand Up @@ -36,7 +36,7 @@ class PreferencesController: NSWindowController {

fileprivate func refreshInvalidInputMarkers() {
torrentsSavePathWarningImageView.image = Defaults.shared.isTorrentsSavePathValid ? #imageLiteral(resourceName: "success") : #imageLiteral(resourceName: "warning")
feedURLWarningImageView.image = Defaults.shared.isFeedURLValid ? #imageLiteral(resourceName: "success") : #imageLiteral(resourceName: "warning")
feedURLWarningImageView.image = Defaults.shared.isFeedURLValid ? #imageLiteral(resourceName: "success") : #imageLiteral(resourceName: "error")
}

deinit {
Expand Down

0 comments on commit 83f5ede

Please sign in to comment.