View Single Post
Old 07-02-2020, 12:35 PM   #156
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,808
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
NickelMenu v0.2.0

This release is the second major feature update for NickelMenu.
  • Breaking change: For simplicity, `nickel_extras:web_browser` has been renamed to nickel_browser. Note that if you aren't providing any additional arguments, you still need to include a `:` (like `menu_item:main:Web Browser:nickel_browser:`).
  • Breaking change: To improve future-proofing so breaking changes won't need to be made in the future and to make the new option for explicit values simpler, the arguments for `nickel_setting` have changed. Instead of only specifying the setting name to toggle, you specify the action (toggle, enable, disable), and then the setting name. For example, instead of using `nickel_setting:invert`, you need to use `nickel_setting:toggle:invert`. This will make it easier to deal with non-boolean settings in the future, or to add additional setting-related functionality.
  • NickelMenu now supports reloading configuration files without a reboot.
  • Automatic reloading for generators are also supported.
  • The configuration parser has been rewritten and is now cleaner and more efficient (this change shouldn't be noticeable in general).
  • Explicit values for nickel_setting are now supported. You can now do things like `nickel_setting:enable:force_wifi` and `nickel_setting:disable:force_wifi`.
  • Custom URLs for `nickel_browser` are now supported.
  • There is a new `modal` option for `nickel_browser` to open it as a pop-up window. This works from any screen, including the web browser itself.
  • You can now add custom CSS stylesheets to all web pages with the `nickel_browser` action.
See the release on GitHub for more details.

Spoiler:
Code:
nickel_browser - one of:
                      - opens the web browser to the default homepage (note that the line should end with a colon even though the argument is blank)
    <url>             - opens the web browser to the specified URL
    <url> <css>       - opens the web browser to the specified URL and injects the specified CSS (which can contain spaces and colons) into all pages
    modal             - opens the web browser to the default homepage as a pop-up window
    modal:<url>       - see above
    modal:<url> <css> - see above
Code:
nickel_setting - <action>:<setting>
    action if one of:
       toggle  - toggles between true/false
       enable  - sets to true
       disable - sets to false
    setting is one of:
      invert      - FeatureSettings.InvertScreen
      lockscreen  - PowerSettings.UnlockEnabled (4.12.12111+)
      screenshots - FeatureSettings.Screenshots
geek1011 is offline   Reply With Quote