nativescript-theme-core
Advanced tools
Comparing version 2.0.11 to 2.0.12
@@ -0,1 +1,28 @@ | ||
<a name="2.0.12 beta"></a> | ||
## [2.0.12 beta](https://github.com/NativeScript/theme/compare/v2.0.11...v2.0.12) (2019-09-03) | ||
### 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: | ||
```javascript | ||
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 | ||
<a name="2.0.11 beta"></a> | ||
@@ -2,0 +29,0 @@ ## [2.0.11 beta](https://github.com/NativeScript/theme/compare/v2.0.10...v2.0.11) (2019-09-01) |
10
index.js
@@ -70,2 +70,12 @@ "use strict"; | ||
static toggleMode(isDark) { | ||
if (isDark === undefined) { | ||
Theme.setMode(Theme.getMode() === Theme.Light ? Theme.Dark : Theme.Light); | ||
return; | ||
} | ||
Theme.setMode(isDark ? Theme.Dark : Theme.Light); | ||
} | ||
static getMode() { | ||
@@ -72,0 +82,0 @@ return Theme.currentMode; |
{ | ||
"name": "nativescript-theme-core", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "Telerik NativeScript Core Theme", | ||
@@ -5,0 +5,0 @@ "author": "Telerik <support@telerik.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237
390983