Commit 7b3d502b authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

macosx: fixed appearance issue within the playback speed widget when using a...

macosx: fixed appearance issue within the playback speed widget when using a RTL language (close #7475)
parent 59c29f5b
...@@ -21,8 +21,9 @@ ...@@ -21,8 +21,9 @@
</object> </object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<integer value="4948"/>
<integer value="21"/> <integer value="21"/>
<integer value="4948"/>
<integer value="4596"/>
</object> </object>
<object class="NSArray" key="IBDocument.PluginDependencies"> <object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
...@@ -4041,14 +4042,14 @@ LCAuLi4</string> ...@@ -4041,14 +4042,14 @@ LCAuLi4</string>
<string key="NSClassName">SUUpdater</string> <string key="NSClassName">SUUpdater</string>
</object> </object>
<object class="NSCustomView" id="560875128"> <object class="NSCustomView" id="560875128">
<nil key="NSNextResponder"/> <reference key="NSNextResponder"/>
<int key="NSvFlags">268</int> <int key="NSvFlags">268</int>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSTextField" id="103751139"> <object class="NSTextField" id="103751139">
<reference key="NSNextResponder" ref="560875128"/> <reference key="NSNextResponder" ref="560875128"/>
<int key="NSvFlags">268</int> <int key="NSvFlags">268</int>
<string key="NSFrame">{{227, 35}, {62.796900000000001, 18}}</string> <string key="NSFrame">{{19, 35}, {270.79689999999999, 18}}</string>
<reference key="NSSuperview" ref="560875128"/> <reference key="NSSuperview" ref="560875128"/>
<bool key="NSEnabled">YES</bool> <bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="385075814"> <object class="NSTextFieldCell" key="NSCell" id="385075814">
...@@ -4164,7 +4165,7 @@ LCAuLi4</string> ...@@ -4164,7 +4165,7 @@ LCAuLi4</string>
<bool key="NSEnabled">YES</bool> <bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="647762012"> <object class="NSTextFieldCell" key="NSCell" id="647762012">
<int key="NSCellFlags">605028416</int> <int key="NSCellFlags">605028416</int>
<int key="NSCellFlags2">272761856</int> <int key="NSCellFlags2">4326400</int>
<string key="NSContents">Slower</string> <string key="NSContents">Slower</string>
<reference key="NSSupport" ref="26"/> <reference key="NSSupport" ref="26"/>
<reference key="NSControlView" ref="421148087"/> <reference key="NSControlView" ref="421148087"/>
...@@ -4195,6 +4196,7 @@ LCAuLi4</string> ...@@ -4195,6 +4196,7 @@ LCAuLi4</string>
</object> </object>
</object> </object>
<string key="NSFrameSize">{307, 53}</string> <string key="NSFrameSize">{307, 53}</string>
<reference key="NSSuperview"/>
<string key="NSClassName">NSView</string> <string key="NSClassName">NSView</string>
</object> </object>
<object class="NSCustomView" id="256817023"> <object class="NSCustomView" id="256817023">
......
...@@ -118,6 +118,15 @@ static VLCMainMenu *_o_sharedInstance = nil; ...@@ -118,6 +118,15 @@ static VLCMainMenu *_o_sharedInstance = nil;
selector: @selector(applicationWillFinishLaunching:) selector: @selector(applicationWillFinishLaunching:)
name: NSApplicationWillFinishLaunchingNotification name: NSApplicationWillFinishLaunchingNotification
object: nil]; object: nil];
/* check whether the user runs OSX with a RTL language */
NSArray* languages = [NSLocale preferredLanguages];
NSString* preferredLanguage = [languages objectAtIndex:0];
if ([NSLocale characterDirectionForLanguage:preferredLanguage] == NSLocaleLanguageDirectionRightToLeft) {
msg_Dbg(VLCIntf, "adapting interface since '%s' is a RTL language", [preferredLanguage UTF8String]);
[o_mi_rate_fld setAlignment: NSLeftTextAlignment];
}
} }
- (void)applicationWillFinishLaunching:(NSNotification *)o_notification - (void)applicationWillFinishLaunching:(NSNotification *)o_notification
......
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