Skip to content

Commit 44cce6d

Browse files
committed
test: demo app using shapes
1 parent 6be8477 commit 44cce6d

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

demo-vue/app/app.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.mdi {
22
font-family: 'materialdesignicons-webfont', 'Material Design Icons';
33
}
4-
button {
5-
elevation: 2;
6-
}
74

5+
mdbutton,MDFloatingActionButton, MDCardView {
6+
shape: cut;
7+
}
88
// page {
99
// background-color: black;
1010
// }

demo-vue/app/examples/Buttons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ActionBar :title="title">
44
<StackLayout orientation="horizontal" width="100%">
55
<MDButton v-show="isEditing" variant="flat" text="test" @tap="isEditing = !isEditing" />
6-
<MDButton variant="flat" text="save" @tap="isEditing = !isEditing" />
6+
<MDButton text="save" @tap="isEditing = !isEditing" />
77
</StackLayout>
88
<NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="onNavigationButtonTap"></NavigationButton>
99
</ActionBar>

demo-vue/app/examples/TextFields.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
@textChange="onTextChange"
9797
@returnPress="onReturnPress"
9898
digits="0123456789."
99-
strokeColor="red"
10099
margin="10"
101100
/>
102101
<MDTextField

demo-vue/app/main.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// import {Trace} from '@nativescript/core';
32
// Trace.addCategories(Trace.categories.concat(Trace.categories.Layout));
43
// Trace.enable();
@@ -48,10 +47,13 @@ if (isIOS) {
4847
themer.setAccentColor('#ff8a39');
4948
themer.setSecondaryColor('#a830d7');
5049
}
51-
//
52-
import Theme from '@nativescript/theme';
53-
54-
Theme.setMode(Theme.Auto); // Or Theme.Light
50+
themer.createShape('cut', {
51+
cornerFamily: 'cut' as any,
52+
cornerSize: {
53+
value: 0.5,
54+
unit: '%'
55+
}
56+
});
5557
// import { getExamples } from './examples';
5658
import * as views from './views';
5759

@@ -67,7 +69,7 @@ Vue.config.errorHandler = (e, vm, info) => {
6769
console.log('vue error', e, e.stack);
6870
};
6971

70-
Vue.config.warnHandler = function(msg, vm, trace) {
72+
Vue.config.warnHandler = function (msg, vm, trace) {
7173
console.warn('[Vue][Warn]', `[${msg}]`);
7274
// cwarn(msg, trace);
7375
};

0 commit comments

Comments
 (0)