Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
1dd05b31
Commit
1dd05b31
authored
Dec 16, 2013
by
Felix Paul Kühne
Browse files
playback: further alignment fixes for the position and time UI
parent
e0f45326
Changes
2
Hide whitespace changes
Inline
Side-by-side
Resources/VLCMovieViewController~iphone.xib
View file @
1dd05b31
...
...
@@ -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=
"1
88
"
height=
"29"
/>
<rect
key=
"frame"
x=
"
2
"
y=
"
7
"
width=
"1
92
"
height=
"29"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<accessibility
key=
"accessibilityConfiguration"
>
<accessibilityTraits
key=
"traits"
none=
"YES"
updatesFrequently=
"YES"
/>
...
...
Sources/VLCMovieViewController.m
View file @
1dd05b31
...
...
@@ -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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment