Skip to content

Commit

Permalink
Merge pull request #11 from ronso0/Deere-2.1-update2
Browse files Browse the repository at this point in the history
fix highlighted xfader orientation buttons
  • Loading branch information
Be-ing authored Oct 16, 2017
2 parents d8fccba + 1fbe07d commit 6cd5373
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 74 deletions.
4 changes: 3 additions & 1 deletion res/skins/Deere/auxiliary.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
<SetVariable name="left_connection_control"><Variable name="group"/>,pfl</SetVariable>
</Template>

<Template src="skin:crossfader_orientation_button.xml" />
<Template src="skin:crossfader_orientation_button.xml">
<SetVariable name="Unit">Aux</SetVariable>
</Template>

</Children>
</WidgetGroup>
Expand Down
2 changes: 1 addition & 1 deletion res/skins/Deere/crossfader_orientation_button.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Template>
<Template src="skin:left_3state_button.xml">
<SetVariable name="TooltipId">orientation</SetVariable>
<SetVariable name="ObjectName">OrientationButton</SetVariable>
<SetVariable name="ObjectName">OrientationButton<Variable name="Unit"/></SetVariable>
<SetVariable name="MinimumSize"><Variable name="SquareButtonMinimumSize"/></SetVariable>
<SetVariable name="MaximumSize"><Variable name="SquareButtonMaximumSize"/></SetVariable>
<SetVariable name="SizePolicy"><Variable name="SquareButtonSizePolicy"/></SetVariable>
Expand Down
10 changes: 10 additions & 0 deletions res/skins/Deere/effect_rack.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ Container for all the effect units
<SetVariable name="EffectUnit">1</SetVariable>
</Template>

<Template src="skin:spacer_hx.xml">
<SetVariable name="width">4</SetVariable>
<SetVariable name="color">22</SetVariable>
</Template>

<Template src="skin:effect_unit.xml">
<SetVariable name="EffectRack">1</SetVariable>
<SetVariable name="EffectUnit">2</SetVariable>
Expand All @@ -56,6 +61,11 @@ Container for all the effect units
<SetVariable name="EffectUnit">3</SetVariable>
</Template>

<Template src="skin:spacer_hx.xml">
<SetVariable name="width">4</SetVariable>
<SetVariable name="color">22</SetVariable>
</Template>

<Template src="skin:effect_unit.xml">
<SetVariable name="EffectRack">1</SetVariable>
<SetVariable name="EffectUnit">4</SetVariable>
Expand Down
4 changes: 3 additions & 1 deletion res/skins/Deere/mixer_controls_col2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@
<WidgetGroup>
<Layout>horizontal</Layout>
<Children>
<Template src="skin:crossfader_orientation_button.xml" />
<Template src="skin:crossfader_orientation_button.xml">
<SetVariable name="Unit">Deck<Variable name="i"/></SetVariable>
</Template>
</Children>
<Connection>
<ConfigKey>[Master],show_4decks</ConfigKey>
Expand Down
26 changes: 9 additions & 17 deletions res/skins/Deere/mixer_controls_condensed_left.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,17 @@
<WidgetGroup>
<ObjectName>CondensedButtonContainerLeft</ObjectName>
<Size>-1me,25f</Size>
<Layout>horizontal</Layout>
<Layout>vertical</Layout>
<Children>
<Template src="skin:left_3state_button.xml">
<SetVariable name="TooltipId">orientation</SetVariable>
<SetVariable name="ObjectName">OrientationButton</SetVariable>
<SetVariable name="MinimumSize"><Variable name="SquareButtonMinimumSize"/></SetVariable>
<SetVariable name="MaximumSize"><Variable name="SquareButtonMaximumSize"/></SetVariable>
<SetVariable name="SizePolicy"><Variable name="SquareButtonSizePolicy"/></SetVariable>
<SetVariable name="state_0_text"></SetVariable>
<SetVariable name="state_0_pressed">icon/ic_orientation_left_48px.svg</SetVariable>
<SetVariable name="state_0_unpressed">icon/ic_orientation_left_48px.svg</SetVariable>
<SetVariable name="state_1_text"></SetVariable>
<SetVariable name="state_1_pressed">icon/ic_orientation_48px.svg</SetVariable>
<SetVariable name="state_1_unpressed">icon/ic_orientation_48px.svg</SetVariable>
<SetVariable name="state_2_text"></SetVariable>
<SetVariable name="state_2_pressed">icon/ic_orientation_right_48px.svg</SetVariable>
<SetVariable name="state_2_unpressed">icon/ic_orientation_right_48px.svg</SetVariable>
<SetVariable name="left_connection_control"><Variable name="group"/>,orientation</SetVariable>

<Template src="skin:spacer_vx.xml">
<SetVariable name="height">2</SetVariable>
</Template>

<Template src="skin:crossfader_orientation_button.xml">
<SetVariable name="Unit">Deck<Variable name="i"/></SetVariable>
</Template>

</Children>
</WidgetGroup>
</Children>
Expand Down
26 changes: 9 additions & 17 deletions res/skins/Deere/mixer_controls_condensed_right.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,25 +130,17 @@
<WidgetGroup>
<ObjectName>CondensedButtonContainerRight</ObjectName>
<Size>-1me,25f</Size>
<Layout>horizontal</Layout>
<Layout>vertical</Layout>
<Children>
<Template src="skin:left_3state_button.xml">
<SetVariable name="TooltipId">orientation</SetVariable>
<SetVariable name="ObjectName">OrientationButton</SetVariable>
<SetVariable name="MinimumSize"><Variable name="SquareButtonMinimumSize"/></SetVariable>
<SetVariable name="MaximumSize"><Variable name="SquareButtonMaximumSize"/></SetVariable>
<SetVariable name="SizePolicy"><Variable name="SquareButtonSizePolicy"/></SetVariable>
<SetVariable name="state_0_text"></SetVariable>
<SetVariable name="state_0_pressed">icon/ic_orientation_left_48px.svg</SetVariable>
<SetVariable name="state_0_unpressed">icon/ic_orientation_left_48px.svg</SetVariable>
<SetVariable name="state_1_text"></SetVariable>
<SetVariable name="state_1_pressed">icon/ic_orientation_48px.svg</SetVariable>
<SetVariable name="state_1_unpressed">icon/ic_orientation_48px.svg</SetVariable>
<SetVariable name="state_2_text"></SetVariable>
<SetVariable name="state_2_pressed">icon/ic_orientation_right_48px.svg</SetVariable>
<SetVariable name="state_2_unpressed">icon/ic_orientation_right_48px.svg</SetVariable>
<SetVariable name="left_connection_control"><Variable name="group"/>,orientation</SetVariable>

<Template src="skin:spacer_vx.xml">
<SetVariable name="height">2</SetVariable>
</Template>

<Template src="skin:crossfader_orientation_button.xml">
<SetVariable name="Unit">Deck<Variable name="i"/></SetVariable>
</Template>

</Children>
</WidgetGroup>

Expand Down
18 changes: 2 additions & 16 deletions res/skins/Deere/sampler_controls_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,8 @@
<SetVariable name="right_connection_control"><Variable name="group"/>,beatsync_tempo</SetVariable>
</Template>

<Template src="skin:left_3state_button.xml">
<SetVariable name="TooltipId">orientation</SetVariable>
<SetVariable name="ObjectName">OrientationButton</SetVariable>
<SetVariable name="MinimumSize"><Variable name="SquareButtonMinimumSize"/></SetVariable>
<SetVariable name="MaximumSize"><Variable name="SquareButtonMaximumSize"/></SetVariable>
<SetVariable name="SizePolicy"><Variable name="SquareButtonSizePolicy"/></SetVariable>
<SetVariable name="state_0_text"></SetVariable>
<SetVariable name="state_0_pressed">icon/ic_orientation_left_48px.svg</SetVariable>
<SetVariable name="state_0_unpressed">icon/ic_orientation_left_48px.svg</SetVariable>
<SetVariable name="state_1_text"></SetVariable>
<SetVariable name="state_1_pressed">icon/ic_orientation_48px.svg</SetVariable>
<SetVariable name="state_1_unpressed">icon/ic_orientation_48px.svg</SetVariable>
<SetVariable name="state_2_text"></SetVariable>
<SetVariable name="state_2_pressed">icon/ic_orientation_right_48px.svg</SetVariable>
<SetVariable name="state_2_unpressed">icon/ic_orientation_right_48px.svg</SetVariable>
<SetVariable name="left_connection_control"><Variable name="group"/>,orientation</SetVariable>
<Template src="skin:crossfader_orientation_button.xml">
<SetVariable name="Unit">Sampler</SetVariable>
</Template>

<Template src="skin:left_1state_button.xml">
Expand Down
6 changes: 3 additions & 3 deletions res/skins/Deere/spacer_hx.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Description: Spacer.
-->
<Template>
<WidgetGroup>
<ObjectName>Spacer</ObjectName>
<ObjectName>Spacer<Variable name="color"/></ObjectName>
<Layout>horizontal</Layout>
<SizePolicy>min,min</SizePolicy>
<Size><Variable name="width"/></Size>
<MinimumSize><Variable name="width"/></MinimumSize>
<MaximumSize><Variable name="width"/></MaximumSize>
<MinimumSize><Variable name="width"/>,-1</MinimumSize>
<MaximumSize><Variable name="width"/>,-1</MaximumSize>
<Children>
</Children>
</WidgetGroup>
Expand Down
67 changes: 49 additions & 18 deletions res/skins/Deere/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
border-width: 1px 0px;
}

#Spacer22 {
background-color: #222222;
}

#SamplerRow1,
#SamplerRow2,
#SamplerRow3,
Expand Down Expand Up @@ -1352,43 +1356,70 @@ WPushButton[value="2"]:hover {
}

/* Special case "orientation" controls
1 -- center / default (off)
2 -- right
0 -- left
1 -- center / off
2 -- right
*/
#OrientationButton[value="1"] {
/* Default xfader positions:
left decks = left xfader
right decks = right xfader
auxiliary = center */
#OrientationButtonDeck1[value="0"],
#OrientationButtonDeck3[value="0"],
#OrientationButtonDeck2[value="2"],
#OrientationButtonDeck4[value="2"],
#OrientationButtonAux[value="1"],
#OrientationButtonSampler[value="1"] {
color: #D2D2D2;
background-color: #4B4B4B;
border: 1px solid #4B4B4B;
border-radius: 2px;
outline: none;
}

#OrientationButton:hover {
#OrientationButtonDeck1[value="0"]:hover,
#OrientationButtonDeck3[value="0"]:hover,
#OrientationButtonDeck2[value="2"]:hover,
#OrientationButtonDeck4[value="2"]:hover,
#OrientationButtonAux[value="1"]:hover,
#OrientationButtonSampler[value="1"]:hover {
color: #D2D2D2;
background-color: #5F5F5F;
border: 0px solid #5F5F5F;
}

#OrientationButton[value="2"] {
color: #FDFDFD;
background-color: #006596;
border: 0px solid #006596;
}

#OrientationButton[value="2"]:hover {
color: #FDFDFD;
background-color: #0080BE;
border: 0px solid #0080BE;
}

#OrientationButton[value="0"] {
/* Highlight xfader special positions != default */
#OrientationButtonDeck1[value="1"],
#OrientationButtonDeck1[value="2"],
#OrientationButtonDeck3[value="1"],
#OrientationButtonDeck3[value="2"],
#OrientationButtonDeck2[value="0"],
#OrientationButtonDeck2[value="1"],
#OrientationButtonDeck4[value="0"],
#OrientationButtonDeck4[value="1"],
#OrientationButtonAux[value="0"],
#OrientationButtonAux[value="2"],
#OrientationButtonSampler[value="0"],
#OrientationButtonSampler[value="2"] {
color: #FDFDFD;
background-color: #006596;
border: 0px solid #006596;
border-radius: 2px;
outline: none;
}

#OrientationButton[value="0"]:hover {
#OrientationButtonDeck1[value="1"]:hover,
#OrientationButtonDeck1[value="2"]:hover,
#OrientationButtonDeck3[value="1"]:hover,
#OrientationButtonDeck3[value="2"]:hover,
#OrientationButtonDeck2[value="0"]:hover,
#OrientationButtonDeck2[value="1"]:hover,
#OrientationButtonDeck4[value="0"]:hover,
#OrientationButtonDeck4[value="1"]:hover,
#OrientationButtonAux[value="0"]:hover,
#OrientationButtonAux[value="2"]:hover,
#OrientationButtonSampler[value="0"]:hover,
#OrientationButtonSampler[value="2"]:hover {
color: #FDFDFD;
background-color: #0080BE;
border: 0px solid #0080BE;
Expand Down

0 comments on commit 6cd5373

Please sign in to comment.