Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c07294b1
Commit
c07294b1
authored
Nov 29, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: set better colors for playback speed controls (close #12633)
parent
44902c2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
211 additions
and
1860 deletions
+211
-1860
extras/package/macosx/Resources/English.lproj/MainMenu.xib
extras/package/macosx/Resources/English.lproj/MainMenu.xib
+200
-1852
modules/gui/macosx/MainMenu.h
modules/gui/macosx/MainMenu.h
+0
-1
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+11
-7
No files found.
extras/package/macosx/Resources/English.lproj/MainMenu.xib
View file @
c07294b1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
modules/gui/macosx/MainMenu.h
View file @
c07294b1
...
@@ -98,7 +98,6 @@
...
@@ -98,7 +98,6 @@
IBOutlet
NSMenuItem
*
o_mi_rate
;
IBOutlet
NSMenuItem
*
o_mi_rate
;
IBOutlet
NSView
*
o_mi_rate_view
;
IBOutlet
NSView
*
o_mi_rate_view
;
IBOutlet
id
o_mi_rate_lbl
;
IBOutlet
id
o_mi_rate_lbl
;
IBOutlet
id
o_mi_rate_lbl_gray
;
IBOutlet
id
o_mi_rate_slower_lbl
;
IBOutlet
id
o_mi_rate_slower_lbl
;
IBOutlet
id
o_mi_rate_normal_lbl
;
IBOutlet
id
o_mi_rate_normal_lbl
;
IBOutlet
id
o_mi_rate_faster_lbl
;
IBOutlet
id
o_mi_rate_faster_lbl
;
...
...
modules/gui/macosx/MainMenu.m
View file @
c07294b1
...
@@ -137,6 +137,8 @@ static VLCMainMenu *_o_sharedInstance = nil;
...
@@ -137,6 +137,8 @@ static VLCMainMenu *_o_sharedInstance = nil;
msg_Dbg
(
VLCIntf
,
"adapting interface since '%s' is a RTL language"
,
[
preferredLanguage
UTF8String
]);
msg_Dbg
(
VLCIntf
,
"adapting interface since '%s' is a RTL language"
,
[
preferredLanguage
UTF8String
]);
[
o_mi_rate_fld
setAlignment
:
NSLeftTextAlignment
];
[
o_mi_rate_fld
setAlignment
:
NSLeftTextAlignment
];
}
}
[
self
setRateControlsEnabled
:
NO
];
}
}
-
(
void
)
applicationWillFinishLaunching
:(
NSNotification
*
)
o_notification
-
(
void
)
applicationWillFinishLaunching
:(
NSNotification
*
)
o_notification
...
@@ -700,13 +702,15 @@ static VLCMainMenu *_o_sharedInstance = nil;
...
@@ -700,13 +702,15 @@ static VLCMainMenu *_o_sharedInstance = nil;
int
i
=
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
];
int
i
=
[[
VLCCoreInteraction
sharedInstance
]
playbackRate
];
double
speed
=
pow
(
2
,
(
double
)
i
/
17
);
double
speed
=
pow
(
2
,
(
double
)
i
/
17
);
[
o_mi_rate_fld
setStringValue
:
[
NSString
stringWithFormat
:
@"%.2fx"
,
speed
]];
[
o_mi_rate_fld
setStringValue
:
[
NSString
stringWithFormat
:
@"%.2fx"
,
speed
]];
if
(
b_enabled
)
{
[
o_mi_rate_lbl
setHidden
:
NO
];
NSColor
*
o_color
=
b_enabled
?
[
NSColor
controlTextColor
]
:
[
NSColor
disabledControlTextColor
];
[
o_mi_rate_lbl_gray
setHidden
:
YES
];
}
else
{
[
o_mi_rate_lbl
setTextColor
:
o_color
];
[
o_mi_rate_lbl
setHidden
:
YES
];
[
o_mi_rate_slower_lbl
setTextColor
:
o_color
];
[
o_mi_rate_lbl_gray
setHidden
:
NO
];
[
o_mi_rate_normal_lbl
setTextColor
:
o_color
];
}
[
o_mi_rate_faster_lbl
setTextColor
:
o_color
];
[
o_mi_rate_fld
setTextColor
:
o_color
];
[
self
setSubtitleMenuEnabled
:
b_enabled
];
[
self
setSubtitleMenuEnabled
:
b_enabled
];
[
o_pool
release
];
[
o_pool
release
];
}
}
...
...
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