Add thin mode

This commit is contained in:
Omar Roth
2018-07-26 12:09:29 -05:00
parent 1eedd6ebf9
commit 8764b298ad
6 changed files with 33 additions and 7 deletions

View File

@@ -24,6 +24,7 @@ DEFAULT_USER_PREFERENCES = Preferences.from_json({
"quality" => "hd720",
"volume" => 100,
"dark_mode" => false,
"thin_mode " => false,
"max_results" => 40,
"sort" => "published",
"latest_only" => false,
@@ -145,14 +146,20 @@ class User
})
end
# TODO: Migrate preferences so this will not be nilable
class Preferences
JSON.mapping({
video_loop: Bool,
autoplay: Bool,
speed: Float32,
quality: String,
volume: Int32,
dark_mode: Bool,
video_loop: Bool,
autoplay: Bool,
speed: Float32,
quality: String,
volume: Int32,
dark_mode: Bool,
thin_mode: {
type: Bool,
nilable: true,
default: false,
},
max_results: Int32,
sort: String,
latest_only: Bool,