Skip to content

Commit

Permalink
Merge pull request #13005 from Ashnidh/expandSamplerTooltip
Browse files Browse the repository at this point in the history
Added tooltip for expand/collapse samplers button.
  • Loading branch information
ronso0 authored Mar 27, 2024
2 parents 8326ecd + b51e46a commit c80f802
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions res/skins/Deere/sampler_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

<Template src="skin:hide_show_button.xml">
<SetVariable name="object_name">SamplerRowExpandButton</SetVariable>
<SetVariable name="TooltipId">expand_samplers</SetVariable>
<SetVariable name="control">[Skin],sampler_row_<Variable name="row"/>_expanded</SetVariable>
</Template>

Expand Down
2 changes: 1 addition & 1 deletion res/skins/LateNight/samplers/sampler_expand_button.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Layout>stacked</Layout>
<Children>
<PushButton>
<TooltipId>show_samplers</TooltipId>
<TooltipId>expand_samplers</TooltipId>
<ObjectName>SamplerExpandOverlay</ObjectName>
<Size>16f,36me</Size>
<NumberStates>2</NumberStates>
Expand Down
4 changes: 2 additions & 2 deletions res/skins/Shade/samplerrow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<Layout>horizontal</Layout>
<Children>
<PushButton>
<TooltipId>show_samplers</TooltipId>
<TooltipId>expand_samplers</TooltipId>
<NumberStates>2</NumberStates>
<State>
<Number>0</Number>
Expand Down Expand Up @@ -158,7 +158,7 @@
<BackPath>style/style_bg_sampler_right.png</BackPath>
<Children>
<PushButton>
<TooltipId>show_samplers</TooltipId>
<TooltipId>expand_samplers</TooltipId>
<NumberStates>2</NumberStates>
<State>
<Number>0</Number>
Expand Down
1 change: 1 addition & 0 deletions res/skins/Tango/mic_aux_sampler/sampler_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Variables:
<WidgetGroup><Size>1min,3f</Size></WidgetGroup>
<Template src="skins:Tango/controls/button_2state_persist.xml">
<SetVariable name="ObjectName">SamplersMiniMaxi</SetVariable>
<SetVariable name="TooltipId">expand_samplers</SetVariable>
<SetVariable name="Size">20f,30me</SetVariable>
<SetVariable name="ConfigKey">[Skin],sampler_row_<Variable name="row"/>_expanded</SetVariable>
</Template>
Expand Down
4 changes: 4 additions & 0 deletions src/skin/legacy/tooltips.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,10 @@ void Tooltips::addStandardTooltips() {
<< tr("Record Mix")
<< tr("Toggle mix recording.");

add("expand_samplers")
<< tr("Expand/Collapse Samplers")
<< tr("Toggle expanded samplers view.");

// Status displays and toggle buttons
add("recording_duration")
<< tr("Recording Duration")
Expand Down

0 comments on commit c80f802

Please sign in to comment.