Skip to content

Commit

Permalink
improve xFader highlight with AutoDJ enabled, sort toolbar indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Oct 21, 2017
1 parent 8004154 commit f8bc651
Show file tree
Hide file tree
Showing 13 changed files with 166 additions and 148 deletions.
File renamed without changes
2 changes: 1 addition & 1 deletion res/skins/Deere/icon/ic_autodj_32px.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions res/skins/Deere/icon/ic_broadcast_0_32px.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions res/skins/Deere/icon/ic_broadcast_1_32px.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions res/skins/Deere/icon/ic_broadcast_3_32px.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions res/skins/Deere/icon/ic_recording_0_32px.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions res/skins/Deere/icon/ic_recording_1_32px.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions res/skins/Deere/icon/ic_recording_3_32px.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 4 additions & 29 deletions res/skins/Deere/mixer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
<Layout>horizontal</Layout>
<SizePolicy>me,min</SizePolicy>
<Children>
<!-- Slider background is highlighted orange if AutoDJ is enabled -->
<WidgetGroup>
<ObjectName>Crossfader</ObjectName>
<SizePolicy>me,min</SizePolicy>
Expand All @@ -215,8 +216,8 @@
<SliderComposed>
<TooltipId>crossfader</TooltipId>
<Size>1me,40f</Size>
<Slider scalemode="STRETCH">slider-horizontal.svg</Slider>
<Handle scalemode="STRETCH_ASPECT">handle-horizontal.svg</Handle>
<Slider scalemode="STRETCH">slider-crossfader.svg</Slider>
<Handle scalemode="STRETCH_ASPECT">handle-crossfader.svg</Handle>
<Horizontal>true</Horizontal>
<Connection>
<ConfigKey>[Master],crossfader</ConfigKey>
Expand All @@ -226,36 +227,10 @@
</Children>
<Connection>
<ConfigKey>[AutoDJ],enabled</ConfigKey>
<BindProperty>visible</BindProperty>
<Transform><Not/></Transform>
<BindProperty>highlight</BindProperty>
</Connection>
</WidgetGroup><!-- Crossfader -->

<!-- Change crossfader background color if AutoDj is active,
https://bugs.launchpad.net/mixxx/+bug/995955 -->
<WidgetGroup>
<ObjectName>CrossfaderAutoDjActive</ObjectName>
<SizePolicy>me,min</SizePolicy>
<Layout>horizontal</Layout>
<Children>
<SliderComposed>
<TooltipId>crossfader</TooltipId>
<Size>1me,40f</Size>
<Slider scalemode="STRETCH">slider-horizontal.svg</Slider>
<Handle scalemode="STRETCH_ASPECT">handle-horizontal.svg</Handle>
<Horizontal>true</Horizontal>
<Connection>
<ConfigKey>[Master],crossfader</ConfigKey>
<EmitOnDownPress>false</EmitOnDownPress>
</Connection>
</SliderComposed>
</Children>
<Connection>
<ConfigKey>[AutoDJ],enabled</ConfigKey>
<BindProperty>visible</BindProperty>
</Connection>
</WidgetGroup><!-- CrossfaderAutoDjActive -->

</Children>
</WidgetGroup>
</Children>
Expand Down
Loading

0 comments on commit f8bc651

Please sign in to comment.