Commit 1dd05b31 authored by Felix Paul Kühne's avatar Felix Paul Kühne

playback: further alignment fixes for the position and time UI

parent e0f45326
......@@ -62,7 +62,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<subviews>
<slider opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" value="0.5" minValue="0.0" maxValue="1" id="262" userLabel="Position Slider" customClass="VLCOBSlider">
<rect key="frame" x="5" y="6" width="188" height="29"/>
<rect key="frame" x="2" y="7" width="192" height="29"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<accessibility key="accessibilityConfiguration">
<accessibilityTraits key="traits" none="YES" updatesFrequently="YES"/>
......
......@@ -231,17 +231,27 @@
self.toolbar.tintColor = [UIColor whiteColor];
self.toolbar.barTintColor = [UIColor colorWithWhite:0.f alpha:1.f];
CGRect rect = self.positionSlider.frame;
rect.origin.y = rect.origin.y - 5.;
self.positionSlider.frame = rect;
rect = self.resetVideoFilterButton.frame;
CGRect rect = self.resetVideoFilterButton.frame;
rect.origin.y = rect.origin.y + 5.;
self.resetVideoFilterButton.frame = rect;
rect = self.toolbar.frame;
rect.size.height = rect.size.height + rect.origin.y;
rect.origin.y = 0;
self.toolbar.frame = rect;
rect = self.aspectRatioButton.frame;
rect.size.width -= 19.;
rect.origin.x += 19.;
self.aspectRatioButton.frame = rect;
rect = self.timeDisplay.frame;
rect.origin.x += 19.;
self.timeDisplay.frame = rect;
rect = self.positionSlider.frame;
rect.size.width += 19.;
self.positionSlider.frame = rect;
} else {
CGRect rect = self.positionSlider.frame;
rect.origin.y = rect.origin.y + 3.;
self.positionSlider.frame = rect;
[self.aspectRatioButton setBackgroundImage:[UIImage imageNamed:@"ratioButton"] forState:UIControlStateNormal];
[self.aspectRatioButton setBackgroundImage:[UIImage imageNamed:@"ratioButtonHighlight"] forState:UIControlStateHighlighted];
[self.toolbar setBackgroundImage:[UIImage imageNamed:@"seekbarBg"] forBarMetrics:UIBarMetricsDefault];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment