@@ -99,34 +99,54 @@ - (void)layoutSubviews {
99
99
// TODO(iangordon): Handle BiDi layouts
100
100
}
101
101
102
+ - (UIColor *)onTintColor {
103
+ return _thumbTrack.primaryColor ;
104
+ }
105
+
102
106
- (void )setOnTintColor : (UIColor *)onTintColor {
103
107
if (onTintColor == nil ) {
104
108
onTintColor = [[self class ] defaultOnTintColor ];
105
109
}
106
110
_thumbTrack.primaryColor = onTintColor;
107
111
}
108
112
113
+ - (UIColor *)offThumbColor {
114
+ return _thumbTrack.thumbOffColor ;
115
+ }
116
+
109
117
- (void )setOffThumbColor : (UIColor *)offThumbColor {
110
118
if (offThumbColor == nil ) {
111
119
offThumbColor = [[self class ] defaultOffThumbColor ];
112
120
}
113
121
_thumbTrack.thumbOffColor = offThumbColor;
114
122
}
115
123
124
+ - (UIColor *)disabledThumbColor {
125
+ return _thumbTrack.thumbDisabledColor ;
126
+ }
127
+
116
128
- (void )setDisabledThumbColor : (UIColor *)disabledThumbColor {
117
129
if (disabledThumbColor == nil ) {
118
130
disabledThumbColor = [MDCSwitch defaultDisabledThumbColor ];
119
131
}
120
132
_thumbTrack.thumbDisabledColor = disabledThumbColor;
121
133
}
122
134
135
+ - (UIColor *)offTrackColor {
136
+ return _thumbTrack.trackOffColor ;
137
+ }
138
+
123
139
- (void )setOffTrackColor : (UIColor *)offTrackColor {
124
140
if (offTrackColor == nil ) {
125
141
offTrackColor = [MDCSwitch defaultOffTrackColor ];
126
142
}
127
143
_thumbTrack.trackOffColor = offTrackColor;
128
144
}
129
145
146
+ - (UIColor *)disabledTrackColor {
147
+ return _thumbTrack.trackDisabledColor ;
148
+ }
149
+
130
150
- (void )setDisabledTrackColor : (UIColor *)disabledTrackColor {
131
151
if (disabledTrackColor == nil ) {
132
152
disabledTrackColor = [MDCSwitch defaultDisabledTrackColor ];
0 commit comments