Skip to content

2.0.12 beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@bundyo bundyo released this 03 Sep 12:32
· 147 commits to master since this release

Features

  • Add scss/variables folder with SCSS skin variables for easier import
  • Add variable map for generic variables, accessible with const()
  • Add toggleMode to the API with optional boolean state enforcer, used like this:
    import Theme from 'nativescript-theme-core';

    Theme.toggleMode(); // to toggle between the modes

    // or

    Theme.toggleMode(true);  // to ensure dark mode
    Theme.toggleMode(false); // to ensure light mode

Fixes

  • Fix dark mode for Switches and several other components
  • Fix ActionBar Label title background, fix dark buttons
  • Fix the colorize function to produce better organized code, to work with consts and to properly
    prepend .ns-dark on root classes