8000 Implemented the Quick Action feature from issue #180 by mmulet · Pull Request #330 · sindresorhus/Gifski · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implemented the Quick Action feature from issue #180 #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
225 changes: 225 additions & 0 deletions Gifski.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

This file was deleted.

3 changes: 3 additions & 0 deletions Gifski/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ struct AppMain: App {
SendFeedbackButton()
}
}
Settings {
PreferencesView()
}
}

private func setUpConfig() {
Expand Down
15 changes: 15 additions & 0 deletions Gifski/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,28 @@ enum Constants {
static let loopCountRange = 0...100
}


extension UserDefaults {
static let sharedGroup = UserDefaults(
suiteName: Shared.videoShareGroupIdentifier
) ?? UserDefaults.standard
}

extension Defaults.Keys {
static let outputQuality = Key<Double>("outputQuality", default: 1)
static let outputSpeed = Key<Double>("outputSpeed", default: 1)
static let outputFPS = Key<Int>("outputFPS", default: 10)
static let loopGIF = Key<Bool>("loopGif", default: true)
static let bounceGIF = Key<Bool>("bounceGif", default: false)
static let suppressKeyframeWarning = Key<Bool>("suppressKeyframeWarning", default: false)

static let quickOutputQuality = Key<Double>("quickOutputQuality", default: 0.5, suite: .sharedGroup)
static let quickOutputSpeed = Key<Double>("quickOutputSpeed", default: 1, suite: .sharedGroup)
static let quickOutputFPS = Key<Int>("quickOutputFPS", default: 10, suite: .sharedGroup)
static let quickLoopGIF = Key<Bool>("quickLoopGif", default: true, suite: .sharedGroup)
static let quickLoopCount = Key<Int>("quickLoopCount", default: 0, suite: .sharedGroup)
static let quickBounceGIF = Key<Bool>("quickBounceGif", default: false, suite: .sharedGroup)
static let quickResize = Key<Double>("quickResize", default: 1.0, suite: .sharedGroup)
}

enum Route: Hashable {
Expand Down
Loading
0