@@ -62,7 +62,6 @@ export class CardView extends CardViewBase {
62
62
applyShapeScheme ( ) {
63
63
if ( this . scheme ) {
64
64
this . scheme . shapeScheme = this . shapeScheme ;
65
- console . log ( 'applyShapeScheme' ) ;
66
65
this . nativeViewProtected . applyThemeWithScheme ( this . scheme ) ;
67
66
}
68
67
}
@@ -90,11 +89,11 @@ export class CardView extends CardViewBase {
90
89
// it will change for everyone else
91
90
this . shapeScheme = MDCShapeScheme . new ( ) ;
92
91
const shapeScheme = themer . getShape ( this . shape ) ;
93
- this . shapeScheme . smallComponentShape = shapeScheme . smallComponentShape . copy ( ) ;
92
+ this . shapeScheme . mediumComponentShape = shapeScheme . smallComponentShape . copy ( ) ;
94
93
} else {
95
94
this . shapeScheme = MDCShapeScheme . new ( ) ;
96
95
const shapeCategory = MDCShapeCategory . new ( ) ;
97
- this . shapeScheme . smallComponentShape = shapeCategory ;
96
+ this . shapeScheme . mediumComponentShape = shapeCategory ;
98
97
}
99
98
}
100
99
return this . shapeScheme ;
@@ -104,36 +103,36 @@ export class CardView extends CardViewBase {
104
103
const shapeScheme = this . getShapeScheme ( ) ;
105
104
const current = shapeScheme . smallComponentShape . bottomLeftCorner ;
106
105
if ( current instanceof MDCCutCornerTreatment ) {
107
- shapeScheme . smallComponentShape . bottomLeftCorner = MDCCornerTreatment . cornerWithCut ( value ) ;
106
+ shapeScheme . mediumComponentShape . bottomLeftCorner = MDCCornerTreatment . cornerWithCut ( value ) ;
108
107
} else {
109
- shapeScheme . smallComponentShape . bottomLeftCorner = MDCCornerTreatment . cornerWithRadius ( value ) ;
108
+ shapeScheme . mediumComponentShape . bottomLeftCorner = MDCCornerTreatment . cornerWithRadius ( value ) ;
110
109
}
111
110
}
112
111
private setBottomRightCornerRadius ( value : number ) {
113
112
const shapeScheme = this . getShapeScheme ( ) ;
114
113
const current = shapeScheme . smallComponentShape . bottomRightCorner ;
115
114
if ( current instanceof MDCCutCornerTreatment ) {
116
- shapeScheme . smallComponentShape . bottomRightCorner = MDCCornerTreatment . cornerWithCut ( value ) ;
115
+ shapeScheme . mediumComponentShape . bottomRightCorner = MDCCornerTreatment . cornerWithCut ( value ) ;
117
116
} else {
118
- shapeScheme . smallComponentShape . bottomRightCorner = MDCCornerTreatment . cornerWithRadius ( value ) ;
117
+ shapeScheme . mediumComponentShape . bottomRightCorner = MDCCornerTreatment . cornerWithRadius ( value ) ;
119
118
}
120
119
}
121
120
private setTopLeftCornerRadius ( value : number ) {
122
121
const shapeScheme = this . getShapeScheme ( ) ;
123
122
const current = shapeScheme . smallComponentShape . topLeftCorner ;
124
123
if ( current instanceof MDCCutCornerTreatment ) {
125
- shapeScheme . smallComponentShape . topLeftCorner = MDCCornerTreatment . cornerWithCut ( value ) ;
124
+ shapeScheme . mediumComponentShape . topLeftCorner = MDCCornerTreatment . cornerWithCut ( value ) ;
126
125
} else {
127
- shapeScheme . smallComponentShape . topLeftCorner = MDCCornerTreatment . cornerWithRadius ( value ) ;
126
+ shapeScheme . mediumComponentShape . topLeftCorner = MDCCornerTreatment . cornerWithRadius ( value ) ;
128
127
}
129
128
}
130
129
private setTopRightCornerRadius ( value : number ) {
131
130
const shapeScheme = this . getShapeScheme ( ) ;
132
131
const current = shapeScheme . smallComponentShape . topRightCorner ;
133
132
if ( current instanceof MDCCutCornerTreatment ) {
134
- shapeScheme . smallComponentShape . topRightCorner = MDCCornerTreatment . cornerWithCut ( value ) ;
133
+ shapeScheme . mediumComponentShape . topRightCorner = MDCCornerTreatment . cornerWithCut ( value ) ;
135
134
} else {
136
- shapeScheme . smallComponentShape . topRightCorner = MDCCornerTreatment . cornerWithRadius ( value ) ;
135
+ shapeScheme . mediumComponentShape . topRightCorner = MDCCornerTreatment . cornerWithRadius ( value ) ;
137
136
}
138
137
}
139
138
// trick to get the same behavior as android (don't disable all children)
0 commit comments