Skip to content

Commit

Permalink
Tango+LateNight: fix fx parameter name alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jan 10, 2023
1 parent 6b5efff commit d639dad
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 58 deletions.
23 changes: 7 additions & 16 deletions res/skins/LateNight/fx/parameter_button.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,16 @@

<WidgetGroup><Size>1min,2f</Size></WidgetGroup>

<WidgetGroup>
<ObjectName>AlignBottom</ObjectName>
<Layout>horizontal</Layout>
<EffectButtonParameterName>
<ObjectName>FxButtonLabel</ObjectName>
<SizePolicy>me,f</SizePolicy>
<MinimumSize>40,10</MinimumSize>
<MaximumSize>58,10</MaximumSize>
<Children>
<WidgetGroup><Size>1me,0min</Size></WidgetGroup>
<EffectButtonParameterName>
<ObjectName>FxButtonLabel</ObjectName>
<EffectUnitGroup><Variable name="FxUnitGroup"/></EffectUnitGroup>
<Effect><Variable name="FxNum"/></Effect>
<EffectButtonParameter><Variable name="FxParameter"/></EffectButtonParameter>
<Alignment>center</Alignment>
</EffectButtonParameterName>
<WidgetGroup><Size>1me,0min</Size></WidgetGroup>
</Children>
</WidgetGroup>

<EffectUnitGroup><Variable name="FxUnitGroup"/></EffectUnitGroup>
<Effect><Variable name="FxNum"/></Effect>
<EffectButtonParameter><Variable name="FxParameter"/></EffectButtonParameter>
<Alignment>center</Alignment>
</EffectButtonParameterName>

</Children>
<Connection>
Expand Down
26 changes: 9 additions & 17 deletions res/skins/LateNight/fx/parameter_knob.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,17 @@
</Children>
</WidgetGroup>

<WidgetGroup>
<ObjectName>AlignBottom</ObjectName>
<Layout>horizontal</Layout>
<EffectParameterName>
<ObjectName>FxKnobLabel</ObjectName>
<SizePolicy>me,f</SizePolicy>
<MinimumSize>40,10</MinimumSize>
<MaximumSize>58,10</MaximumSize>
<Children>
<WidgetGroup><Size>1me,0min</Size></WidgetGroup>
<EffectParameterName>
<ObjectName>FxKnobLabel</ObjectName>
<EffectRack>1</EffectRack>
<EffectUnit><Variable name="FxUnit"/></EffectUnit>
<Effect><Variable name="FxNum"/></Effect>
<EffectParameter><Variable name="FxParameter"/></EffectParameter>
<Alignment>center</Alignment>
</EffectParameterName>
<WidgetGroup><Size>1me,0min</Size></WidgetGroup>
</Children>
</WidgetGroup>
<MaximumSize>60,10</MaximumSize>
<EffectRack>1</EffectRack>
<EffectUnit><Variable name="FxUnit"/></EffectUnit>
<Effect><Variable name="FxNum"/></Effect>
<EffectParameter><Variable name="FxParameter"/></EffectParameter>
<Elide>right</Elide>
</EffectParameterName>

<WidgetGroup>
<ObjectName>FxLinkButtons</ObjectName>
Expand Down
8 changes: 1 addition & 7 deletions res/skins/LateNight/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ WSearchLineEdit::item:selected,
#LatencyLabel {
font-size: 10px;
text-align: center;
qproperty-alignment: AlignCenter;
}

WPushButton,
Expand Down Expand Up @@ -285,13 +286,6 @@ WRecordingDuration {
text-align: right;
}

#KnobLabel,
#FxKnobLabel,
#FxButtonLabel {
qproperty-alignment: 'AlignLeft | AlignVCenter';
}


WTrackTableViewHeader::item {
/* Don't set a font size to pick up the system font size. */
border-bottom: 1px solid #000;
Expand Down
25 changes: 8 additions & 17 deletions res/skins/Tango/fx/parameter_knob.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,26 +51,17 @@ Variables:
</Children>
</WidgetGroup>

<WidgetGroup><!-- Name of parameter -->
<EffectParameterName>
<ObjectName>FxParameterKnobName</ObjectName>
<MinimumSize>42,12</MinimumSize>
<MaximumSize>51,12</MaximumSize>
<SizePolicy>me,f</SizePolicy>
<Layout>horizontal</Layout>
<Children>
<!-- To keep text centered it's in an container with spacers on the left/right -->
<WidgetGroup><SizePolicy>me,min</SizePolicy></WidgetGroup>
<EffectParameterName>
<ObjectName>FxParameterKnobName</ObjectName>
<Size>-1min,12f</Size>
<EffectRack><Variable name="FxRack"/></EffectRack>
<EffectUnit><Variable name="FxUnit"/></EffectUnit>
<Effect><Variable name="FxNum"/></Effect>
<EffectParameter><Variable name="FxParameter"/></EffectParameter>
<Alignment>left</Alignment>
</EffectParameterName>
<WidgetGroup><SizePolicy>me,min</SizePolicy></WidgetGroup>
</Children>
</WidgetGroup>
<EffectRack><Variable name="FxRack"/></EffectRack>
<EffectUnit><Variable name="FxUnit"/></EffectUnit>
<Effect><Variable name="FxNum"/></Effect>
<EffectParameter><Variable name="FxParameter"/></EffectParameter>
<Elide>right</Elide>
</EffectParameterName>
</Children>
</WidgetGroup><!-- Parameter knob + parameter name -->

Expand Down
2 changes: 1 addition & 1 deletion res/skins/Tango/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ decks, samplers, mic, aux, fx */
margin-right: 1px;
}
#FxParameterKnobName {
qproperty-alignment: 'AlignLeft | AlignTop';
qproperty-alignment: 'AlignHCenter | AlignTop';
font-size: 10px/10px;
font-weight: bold;
color: #999999;
Expand Down

0 comments on commit d639dad

Please sign in to comment.