Skip to content

Commit

Permalink
Merge pull request #20 from NickIliev/drawer
Browse files Browse the repository at this point in the history
fix: drawer transperancy
  • Loading branch information
NickIliev authored Oct 7, 2019
2 parents af1f535 + ce12885 commit 9fa26c6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<RadSideDrawer (loaded)="onRadLoaded($event)">
<RadSideDrawer (loaded)="onRadLoaded($event)" backgroundColor="transparent">
<ScrollView tkDrawerContent backgroundColor="transparent">

<StackLayout class="sidedrawer-content">
Expand Down
15 changes: 8 additions & 7 deletions app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ import { isAndroid, isIOS } from "tns-core-modules/platform";
import { Button } from "tns-core-modules/ui/button";
import { EventData } from "tns-core-modules/data/observable";
import { translateViewByXandYwithDurationAndCurve } from "./shared/animations-helper";
import { Color } from "tns-core-modules/color";

declare let TKSideDrawerShadowModeHostview: any;
// declare let TKSideDrawerBlurTypeNone: any;
// declare let TKSolidFill: any;
declare let TKSideDrawerBlurTypeNone: any;
declare let TKSolidFill: any;

@Component({
selector: "cosmos-app",
Expand Down Expand Up @@ -59,13 +60,13 @@ export class AppComponent implements OnInit, AfterViewInit {
if (isIOS) {
/* Make RadSidweDrawer transparent on iOS */
let tkDrawer = drawer.nativeViewProtected.defaultSideDrawer;

tkDrawer.style.shadowMode = TKSideDrawerShadowModeHostview;
// tkDrawer.style.shadowOffset = CGSizeMake(-2, -0.5);
// tkDrawer.style.shadowRadius = 50;
// tkDrawer.fill = TKSolidFill.solidFillWithColor(new Color(0,0,0,0).ios)
// tkDrawer.style.blurType = TKSideDrawerBlurTypeNone;
tkDrawer.style.shadowOffset = CGSizeMake(-2, -0.5);
tkDrawer.style.shadowRadius = 50;
tkDrawer.fill = TKSolidFill.solidFillWithColor(new Color(0,0,0,0).ios)
tkDrawer.style.blurType = TKSideDrawerBlurTypeNone;
}

}

ngOnInit() {
Expand Down
2 changes: 1 addition & 1 deletion firebase.nativescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"remote_config": false,
"performance_monitoring": false,
"messaging": true,
"crashlytics": false,
"crashlytics": true,
"crash_reporting": false,
"storage": false,
"functions": false,
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"nativescript": {
"id": "org.nativescript.curiosity",
"tns-android": {
"version": "6.1.2"
},
"tns-ios": {
"version": "6.1.1"
}
},
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ module.exports = env => {
hmr, // --env.hmr,
unitTesting, // --env.unitTesting
verbose, // --env.verbose
snapshotInDocker, // --env.snapshotInDocker
skipSnapshotTools // --env.skipSnapshotTools
} = env;

const isAnySourceMapEnabled = !!sourceMap || !!hiddenSourceMap;
Expand Down Expand Up @@ -308,6 +310,8 @@ module.exports = env => {
],
projectRoot,
webpackConfig: config,
snapshotInDocker,
skipSnapshotTools
}));
}

Expand Down

0 comments on commit 9fa26c6

Please sign in to comment.