summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-03 20:39:49 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:52:03 +0100
commit781e4edac5d7d2279a4d31d71a8b6b5218fb259c (patch)
tree443a4fe1775748195e3bf92ae86664f63b622a59 /ios
parentdf9e43c61d018d373786d09b5baf65b1a7457c08 (diff)
Tweak default values of tunables and use larger default step size
It is more interesting to get smaller text in the initial tile. Also, make the tile fit on the screen of an iPad. Change-Id: Ibe4e7f055ec2782a4fd96a3ae585d4630449f0ee
Diffstat (limited to 'ios')
-rw-r--r--ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m6
-rw-r--r--ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h12
2 files changed, 11 insertions, 7 deletions
diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m
index 779b84dd1797..f43dfb8e322b 100644
--- a/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m
+++ b/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m
@@ -21,7 +21,7 @@
@property UIStepper * stepStepper;
@end
-static const CGFloat DEFAULT_STEP_VALUE = 1;
+static const CGFloat DEFAULT_STEP_VALUE = 10;
@implementation MLOTestingTileParameter
@@ -36,6 +36,10 @@ static const CGFloat DEFAULT_STEP_VALUE = 1;
[self initLabel:label];
self.dataStepper = [self stepperWithMinValue:-MAXFLOAT];
self.stepStepper = [self stepperWithMinValue:1];
+ // The step stepper obviously needs a step value of 1,
+ // and an initial value of DEFAULT_STEP_VALUE.
+ self.stepStepper.stepValue = 1;
+ self.stepStepper.value = DEFAULT_STEP_VALUE;
[self initDataTextField];
[self initStepTextField];
}
diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h
index ffbf903b6f5a..3ca92f340ad5 100644
--- a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h
+++ b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h
@@ -9,12 +9,12 @@
#import "MLOViewController.h"
#import "MLOTestingTileSubviewControllerProtocol.h"
-static const CGFloat CONTEXT_WIDTH_DEFAULT = 600;
-static const CGFloat CONTEXT_HEIGHT_DEFAULT = 600;
-static const CGFloat TILE_POS_X_DEFAULT = 500;
-static const CGFloat TILE_POS_Y_DEFAULT = 620;
-static const CGFloat TILE_WIDTH_DEFAULT = 1000;
-static const CGFloat TILE_HEIGHT_DEFAULT = 1020;
+static const CGFloat CONTEXT_WIDTH_DEFAULT = 450;
+static const CGFloat CONTEXT_HEIGHT_DEFAULT = 450;
+static const CGFloat TILE_POS_X_DEFAULT = 400;
+static const CGFloat TILE_POS_Y_DEFAULT = 420;
+static const CGFloat TILE_WIDTH_DEFAULT = 250;
+static const CGFloat TILE_HEIGHT_DEFAULT = 250;
@interface MLOTestingTileParametersViewController : MLOViewController<MLOTestingTileSubviewControllerProtocol>
@property CGFloat contextWidth, contextHeight, tilePosX, tilePosY, tileWidth, tileHeight;