keystone_ui-preferences 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fefa886f2e66f62352fdefc4e35ccdb094f75bc6239bd400cb49af3dec31c30
4
- data.tar.gz: '09dbb68d7489c63390028910cde735fc98156cc78ce1358425b72009fd9797ec'
3
+ metadata.gz: d49104296c4ab87a70762c5e05c9257d39320610dc7e412f3447b3e626c6935f
4
+ data.tar.gz: 9048db5cfc549e83efc5b53a62772411ce4e84ce3dd6adbf9fcbb39f299c6c0e
5
5
  SHA512:
6
- metadata.gz: 2da20eb0e968d2a270025971fea98ed3fe80e0474fcedb36142ea212e16075b002bed32a57aaa1a1fdcdc137c7bddb2bd774aa74dbf2a7c4e0c9344d7713b37a
7
- data.tar.gz: 96337f947750d95d8d40a06a5657f5fcc56217e972feca3c5246c16994d6a9e77e61c54c02f6f70c97f81c9b1edb125ae5ea029111c720198c61562dd37eafec
6
+ metadata.gz: f894ce79ae1e17c6f136661125edb9f78532ef7336d5a9df09afe29905929bdc1fe6bae5b0973468461bbf3d824237066e1e03efdbc98543a3942e72b905827a
7
+ data.tar.gz: e41c53bd16beed10b80392162093881b3f53cf27d96c7a6f1bce56c97623039aa16a5971e46cc3570bd4e36f94c253207334dc4de6cea2f3fea79b29b09c7ce3
data/README.md CHANGED
@@ -224,7 +224,7 @@ The gem gives keystone_ui the mode through keystone_ui's theme mode supplier, so
224
224
  <html <%= keystone_theme_attributes %>>
225
225
  ```
226
226
 
227
- A visitor who is not signed in gets `default_mode`. A choice made with keystone_ui's theme toggle is kept in a cookie and wins over the saved mode in that browser. Saving in the appearance section clears that cookie, so the saved mode shows on the next page. The clearing runs in settings_hub's `after_settings_change` hook, which the `ComponentPreferences` concern defines, so an app that defines its own `after_settings_change` calls `super` from it.
227
+ A visitor who is not signed in gets `default_mode`. A choice made with keystone_ui's theme toggle is kept in a cookie and wins over the saved mode in that browser. `keystone_theme_mode` returns the same choice, so a layout that marks its page dark from it follows the toggle too. Saving in the appearance section clears that cookie, so the saved mode shows on the next page. The clearing runs in settings_hub's `after_settings_change` hook, which the `ComponentPreferences` concern defines, so an app that defines its own `after_settings_change` calls `super` from it.
228
228
 
229
229
  ## Look
230
230
 
@@ -34,7 +34,7 @@ module KeystoneUi
34
34
  end
35
35
 
36
36
  def keystone_theme_mode
37
- keystone_appearance_choice.mode
37
+ KeystoneUi::ThemeChoice.new(cookies[KeystoneUi::ThemeChoice::COOKIE], supplied: keystone_appearance_choice.mode).mode
38
38
  end
39
39
 
40
40
  def keystone_look
@@ -2,6 +2,6 @@
2
2
 
3
3
  module KeystoneUi
4
4
  module Preferences
5
- VERSION = "0.10.1"
5
+ VERSION = "0.10.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keystone_ui-preferences
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Schneider