Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
20484554
Commit
20484554
authored
Jul 03, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed time slider alignment issue
Pointed by Damien
parent
f836a238
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
modules/gui/macosx/misc.h
modules/gui/macosx/misc.h
+1
-0
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+9
-3
No files found.
modules/gui/macosx/misc.h
View file @
20484554
...
@@ -134,6 +134,7 @@
...
@@ -134,6 +134,7 @@
{
{
NSImage
*
o_knob_img
;
NSImage
*
o_knob_img
;
NSRect
img_rect
;
NSRect
img_rect
;
BOOL
b_dark
;
}
}
-
(
CGFloat
)
knobPosition
;
-
(
CGFloat
)
knobPosition
;
...
...
modules/gui/macosx/misc.m
View file @
20484554
...
@@ -607,10 +607,13 @@ void _drawFrameInRect(NSRect frameRect)
...
@@ -607,10 +607,13 @@ void _drawFrameInRect(NSRect frameRect)
-
(
void
)
awakeFromNib
-
(
void
)
awakeFromNib
{
{
if
(
config_GetInt
(
VLCIntf
,
"macosx-interfacestyle"
))
if
(
config_GetInt
(
VLCIntf
,
"macosx-interfacestyle"
))
{
o_knob_img
=
[
NSImage
imageNamed
:
@"progression-knob_dark"
];
o_knob_img
=
[
NSImage
imageNamed
:
@"progression-knob_dark"
];
else
b_dark
=
YES
;
}
else
{
o_knob_img
=
[
NSImage
imageNamed
:
@"progression-knob"
];
o_knob_img
=
[
NSImage
imageNamed
:
@"progression-knob"
];
b_dark
=
NO
;
}
img_rect
.
size
=
[
o_knob_img
size
];
img_rect
.
size
=
[
o_knob_img
size
];
img_rect
.
origin
.
x
=
img_rect
.
origin
.
y
=
0
;
img_rect
.
origin
.
x
=
img_rect
.
origin
.
y
=
0
;
}
}
...
@@ -648,6 +651,9 @@ void _drawFrameInRect(NSRect frameRect)
...
@@ -648,6 +651,9 @@ void _drawFrameInRect(NSRect frameRect)
[[
NSGraphicsContext
currentContext
]
restoreGraphicsState
];
[[
NSGraphicsContext
currentContext
]
restoreGraphicsState
];
NSRect
knobRect
=
[[
self
cell
]
knobRectFlipped
:
NO
];
NSRect
knobRect
=
[[
self
cell
]
knobRectFlipped
:
NO
];
if
(
b_dark
)
knobRect
.
origin
.
y
+=
2
;
else
knobRect
.
origin
.
y
+=
1
;
knobRect
.
origin
.
y
+=
1
;
[
self
drawKnobInRect
:
knobRect
];
[
self
drawKnobInRect
:
knobRect
];
}
}
...
...
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