diff --git a/apps/demo/nativescript.config.ts b/apps/demo/nativescript.config.ts index c0001c37e..11e5fb0ea 100644 --- a/apps/demo/nativescript.config.ts +++ b/apps/demo/nativescript.config.ts @@ -8,10 +8,6 @@ export default { markingMode: 'none', discardUncaughtJsExceptions: false, }, - // Light like the Android app theme (Theme.AppCompat.Light), whatever the desktop uses - linux: { - appearance: 'light', - }, appPath: 'src', ios: { discardUncaughtJsExceptions: false, diff --git a/apps/demo/src/app.scss b/apps/demo/src/app.scss index b1163cc3b..5663d637f 100644 --- a/apps/demo/src/app.scss +++ b/apps/demo/src/app.scss @@ -1,6 +1,40 @@ @import 'nativescript-theme-core/scss/light'; @import 'nativescript-theme-core/scss/index'; +// Follow the system theme: core sets .ns-dark on the root view (theme-core's dark skin colors). +.ns-dark { + .page { + background-color: #303030; + color: #fff; + } + + .action-bar { + background-color: #303030; + color: #fff; + } +} + +// canvas-html: the card drawn into the canvas. +.drawable-card { + background-color: #fff; + border-radius: 16; + padding: 20; +} + +.drawable-card-note { + color: #666; +} + +.ns-dark { + .drawable-card { + background-color: #2b2b2b; + } + + .drawable-card-note { + color: #b3b3b3; + } +} + .gameover { font-weight: bold; text-transform: uppercase; diff --git a/apps/demo/src/plugin-demos/canvas-html.xml b/apps/demo/src/plugin-demos/canvas-html.xml index 5758b258e..2c60b9fa1 100644 --- a/apps/demo/src/plugin-demos/canvas-html.xml +++ b/apps/demo/src/plugin-demos/canvas-html.xml @@ -4,9 +4,9 @@ - +