tweak hostSpinner
This commit is contained in:
1 parent
98f73928fa
commit
00491d3bce
1 file changed
+6
-1
@@ -50,13 +50,16 @@
|
|||||||
|
|
||||||
static const float REFRESH_CYCLE = 2.0f;
|
static const float REFRESH_CYCLE = 2.0f;
|
||||||
|
|
||||||
|
- (BOOL)isIPhone{
|
||||||
|
return ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone);
|
||||||
|
}
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(CGRect)frame {
|
- (instancetype)initWithFrame:(CGRect)frame {
|
||||||
self = [super initWithFrame:frame];
|
self = [super initWithFrame:frame];
|
||||||
if (self) {
|
if (self) {
|
||||||
buttonLabelFontSize = 15*_sizeFactor;
|
buttonLabelFontSize = 15*_sizeFactor;
|
||||||
longPressFired = false;
|
longPressFired = false;
|
||||||
computerIconMonitorCenterYOffset = -4.3523*_sizeFactor;
|
computerIconMonitorCenterYOffset = [self isIPhone] ? -3.62*_sizeFactor : -4.175*_sizeFactor;
|
||||||
iconAndButtonSpacing = 37*_sizeFactor;
|
iconAndButtonSpacing = 37*_sizeFactor;
|
||||||
buttonHeight = 39*_sizeFactor;
|
buttonHeight = 39*_sizeFactor;
|
||||||
defaultBlue = [ThemeManager appPrimaryColor];
|
defaultBlue = [ThemeManager appPrimaryColor];
|
||||||
@@ -94,6 +97,8 @@ static const float REFRESH_CYCLE = 2.0f;
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- (instancetype)initWithCoder:(NSCoder *)coder {
|
- (instancetype)initWithCoder:(NSCoder *)coder {
|
||||||
self = [super initWithCoder:coder];
|
self = [super initWithCoder:coder];
|
||||||
if (self) {
|
if (self) {
|
||||||
|
|||||||
Reference in new issue
Block a user