Commit ac68b13f authored by Marvin Scholz's avatar Marvin Scholz

macosx: Use the new slider for fscontroller volume

This commit will use the new VLCDefaultValueSlider for the
VLSFSPanelController volume slider.
parent d986f8ab
......@@ -81,7 +81,7 @@
<action selector="jumpBackward:" target="-2" id="ft8-Or-fZy"/>
</connections>
</button>
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ihl-7x-5mN">
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ihl-7x-5mN" customClass="VLCDefaultValueSlider">
<rect key="frame" x="50" y="13" width="80" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="2ZX-Ma-yc0"/>
......
......@@ -28,6 +28,7 @@
#import "misc.h"
#import "Windows.h"
#import "VLCDefaultValueSlider.h"
@interface VLCFSPanelController : NSWindowController
......@@ -45,7 +46,7 @@
@property IBOutlet VLCTimeField *elapsedTime;
@property IBOutlet VLCTimeField *remainingOrTotalTime;
@property IBOutlet NSSlider *timeSlider;
@property IBOutlet NSSlider *volumeSlider;
@property IBOutlet VLCDefaultValueSlider *volumeSlider;
@property (assign) IBOutlet NSLayoutConstraint *heightMaxConstraint;
......
......@@ -116,6 +116,7 @@
/* Setup other controls */
[_volumeSlider setMaxValue:[[VLCCoreInteraction sharedInstance] maxVolume]];
[_volumeSlider setIntValue:AOUT_VOLUME_DEFAULT];
[_volumeSlider setDefaultValue:AOUT_VOLUME_DEFAULT];
}
#undef setupButton
......
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