Skip to content

Commit

Permalink
UI. Added "Link" button.
Browse files Browse the repository at this point in the history
  • Loading branch information
bor-T committed Sep 27, 2024
1 parent f76cff2 commit 247e35b
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 154 deletions.
96 changes: 49 additions & 47 deletions res/main/ui/dynamics/expander/multiband/lr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,20 @@

<!-- Text -->
<ui:with ox="0" oy="2" y="0" halign="1" valign="1">
<text x="10" text="graph.units.hz"/>
<text x="20" text="20"/>
<text x="30" text="30"/>
<text x="50" text="50"/>
<text x="100" text="100"/>
<text x="200" text="200"/>
<text x="300" text="300"/>
<text x="500" text="500"/>
<text x="1000" text="graph.values.x_k" text:value="1"/>
<text x="2000" text="graph.values.x_k" text:value="2"/>
<text x="3000" text="graph.values.x_k" text:value="3"/>
<text x="5000" text="graph.values.x_k" text:value="5"/>
<text x="10000" text="graph.values.x_k" text:value="10"/>
<text x="20000" text="graph.values.x_k" text:value="20"/>
<text x="10" text="graph.units.hz"/>
<text x="20" text="20"/>
<text x="30" text="30"/>
<text x="50" text="50"/>
<text x="100" text="100"/>
<text x="200" text="200"/>
<text x="300" text="300"/>
<text x="500" text="500"/>
<text x="1000" text="graph.values.x_k" text:value="1"/>
<text x="2000" text="graph.values.x_k" text:value="2"/>
<text x="3000" text="graph.values.x_k" text:value="3"/>
<text x="5000" text="graph.values.x_k" text:value="5"/>
<text x="10000" text="graph.values.x_k" text:value="10"/>
<text x="20000" text="graph.values.x_k" text:value="20"/>
</ui:with>

<ui:with x="10" halign="1" valign="1">
Expand Down Expand Up @@ -239,37 +239,38 @@
</cell>

<!-- bottom line -->
<align halign="-1" vreduce="true">
<hbox spacing="4" vreduce="true" bg.color="bg_schema" pad.h="6">
<label text="labels.mode:"/>
<combo id="mode" pad.r="8" pad.v="4"/>
<label text="labels.sc_boost:"/>
<combo id="envb" pad.r="8"/>
<shmlink id="link" />
<label text="labels.filters" pad.l="6"/>
<hbox spacing="4" pad.h="6">
<button id="flt_l" text="labels.chan.L_eft" size="22" ui:inject="Button_left"/>
<button id="flt_r" text="labels.chan.R_ight" size="22" ui:inject="Button_right"/>
</hbox>
<hbox spacing="4" vreduce="true" bg.color="bg_schema" pad.h="4">
<label text="labels.mode:"/>
<combo id="mode" pad.r="8" pad.v="4"/>
<label text="labels.sc_boost:"/>
<combo id="envb" pad.r="8"/>
<label text="labels.filters" pad.l="6"/>
<hbox spacing="4" pad.h="6">
<button id="flt_l" text="labels.chan.L_eft" size="22" ui:inject="Button_left"/>
<button id="flt_r" text="labels.chan.R_ight" size="22" ui:inject="Button_right"/>
</hbox>
</align>
<void hexpand="true"/>
<vsep pad.h="2" bg.color="bg" reduce="true"/>
<shmlink id="link"/>
</hbox>
</grid>

<!-- down part -->
<hbox>

<cgroup id="bsel" embed.h=":bsel ilt 2" embed.b=":bsel ilt 2" width.min="855" height.min="424">
<cgroup id="bsel" embed.h=":bsel ilt 2" embed.b=":bsel ilt 2" width.min="855" height.min="447">
<ui:for id="c" first="0" last="1">
<ui:eval id="channel" value="(:c ieq 0) ? 'num_id_L_eft' : 'num_id_R_ight'"/>

<grid rows="13" cols="25" transpose="true">
<grid rows="14" cols="25" transpose="true">
<!-- Labels -->
<label text="labels.band" pad.v="4" bg.color="bg_schema" hreduce="true"/>
<vbox pad.v="4">
<label text="labels.range"/>
<label text="labels.units.:hz"/>
</vbox>
<label text="labels.controls" pad.v="4" bg.color="bg_schema"/>
<label text="labels.sidechain" pad.v="4" bg.color="bg_schema"/>
<cell rows="2" pad.v="4" hreduce="true" pad.h="6">
<label text="labels.sc_preamp_makeup:db_db"/>
</cell>
Expand All @@ -290,12 +291,12 @@
<ui:for id="i" first="0" last="7">
<ui:set id="ch" value="${:i}${(:c ieq 0) ? 'l' : 'r'}"/>

<!-- Column 1 -->
<ui:if test=":i ieq 0">
<!-- Separator -->
<cell rows="13"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>
<!-- Column 1 -->
<ui:if test=":i ieq 0">
<!-- Separator -->
<cell rows="14"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>

<ui:with bright="((${i} ieq 0) or :cbe_${ch}) ? 1 : 0.75" bg.bright="((${i} ieq 0) or :cbe_${ch}) ? 1.0 : :const_bg_darken">
<ui:with bright="((${i} ieq 0) or :cbe_${ch}) ? 1 : 0.75" bg.bright="((${i} ieq 0) or :cbe_${ch}) ? 1.0 : :const_bg_darken">

<cell cols="2" bg.color="bg_schema">
<button text="labels.chan.${channel}" text:id="${:i+1}" value="1" editable="false" pointer="arrow" hfill="true" ui:inject="Button_ne_Cycle" height="19" pad.h="6" pad.v="4"/>
Expand All @@ -307,13 +308,13 @@
</vbox>
</cell>
</ui:with>
</ui:if>
</ui:if>

<ui:if test=":i ine 0">
<!-- Separator -->
<cell rows="11"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>
<ui:if test=":i ine 0">
<!-- Separator -->
<cell rows="12"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>

<ui:with bright="((${i} ieq 0) or :cbe_${ch}) ? 1 : 0.75" bg.bright="((${i} ieq 0) or :cbe_${ch}) ? 1.0 : :const_bg_darken">
<ui:with bright="((${i} ieq 0) or :cbe_${ch}) ? 1 : 0.75" bg.bright="((${i} ieq 0) or :cbe_${ch}) ? 1.0 : :const_bg_darken">

<cell cols="2" bg.color="bg_schema">
<button
Expand All @@ -334,9 +335,9 @@
</cell>
<knob id="sf_${ch}" size="16" ssize="3" pad.v="4" scolor="((${i} ieq 0) or :cbe_${ch}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${ch}"/>
</ui:with>
</ui:if>
</ui:if>

<ui:with bright="((${i} ieq 0) or :cbe_${ch}) ? 1 : 0.75" bg.bright="((${i} ieq 0) or :cbe_${ch}) ? 1.0 : :const_bg_darken">
<ui:with bright="((${i} ieq 0) or :cbe_${ch}) ? 1 : 0.75" bg.bright="((${i} ieq 0) or :cbe_${ch}) ? 1.0 : :const_bg_darken">
<cell cols="2" pad.h="6" bg.color="bg_schema">
<grid rows="2" cols="1" hspacing="4" vreduce="true">
<button
Expand All @@ -353,14 +354,15 @@
border.down.hover.color.hue=":hue_${ch}"
pad.v="4"/>
<hbox pad.b="4">
<button id="bs_${ch}" text="labels.chan.S_olo" height="19" hfill="true" ui:inject="Button_green_8"/>

<button id="bm_${ch}" text="labels.chan.M_ute" height="19" hfill="true" ui:inject="Button_red_8" pad.l="4"/>
<button id="bs_${ch}" text="labels.chan.solo" height="19" hfill="true" ui:inject="Button_green_8"/>

<combo id="sce_${ch}" hfill="true" pad.l="4"/>
<button id="bm_${ch}" text="labels.chan.mute" height="19" hfill="true" ui:inject="Button_red_8" pad.l="4"/>
</hbox>
</grid>
</cell>
<cell cols="2" pad.h="6" bg.color="bg_schema">
<combo id="sce_${ch}" fill="true" pad.l="4"/>
</cell>
<knob id="scp_${ch}" size="16" ssize="3" pad.t="4" scolor="((${i} ieq 0) or :cbe_${ch}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${ch}"/>
<value id="scp_${ch}" pad.b="4" width.min="32" detailed="false"/>
<knob id="er_${ch}" size="16" ssize="3" pad.t="4" scolor="((${i} ieq 0) or :cbe_${ch}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${ch}" bg.color="bg_schema"/>
Expand Down Expand Up @@ -427,7 +429,7 @@
<vbox vfill="false" spacing="4" pad.l="6" pad.v="4">
<combo id="scm_${i}l" fill="true"/>
<combo id="scs_${i}l" fill="true"/>
<combo id="sce_${i}l" fill="true" />
<combo id="sce_${i}l" fill="true"/>
</vbox>
</cell>
<knob id="sla_${i}l" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}l"/>
Expand Down Expand Up @@ -456,7 +458,7 @@
<vbox vfill="false" spacing="4" pad.l="6" pad.v="4">
<combo id="scm_${i}r" fill="true"/>
<combo id="scs_${i}r" fill="true"/>
<combo id="sce_${i}r" fill="true" />
<combo id="sce_${i}r" fill="true"/>
</vbox>
</cell>
<knob id="sla_${i}r" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}r"/>
Expand Down
39 changes: 21 additions & 18 deletions res/main/ui/dynamics/expander/multiband/mono.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,30 +222,32 @@
</cell>

<!-- bottom line -->
<align halign="-1" vreduce="true">
<hbox spacing="4" vreduce="true" bg.color="bg_schema" pad.h="6">
<label text="labels.mode:"/>
<combo id="mode" pad.r="8" pad.v="4"/>
<label text="labels.sc_boost:"/>
<combo id="envb" pad.r="8"/>
<shmlink id="link" />
<button id="flt" text="labels.filters" size="22" ui:inject="Button_cyan"/>
</hbox>
</align>
<hbox spacing="4" vreduce="true" bg.color="bg_schema" pad.h="6">
<label text="labels.mode:"/>
<combo id="mode" pad.r="8" pad.v="4"/>
<label text="labels.sc_boost:"/>
<combo id="envb" pad.r="8"/>
<button id="flt" text="labels.filters" size="22" ui:inject="Button_cyan"/>

<void hexpand="true"/>
<vsep pad.h="2" bg.color="bg" reduce="true"/>
<shmlink id="link"/>
</hbox>
</grid>

<!-- down part -->
<hbox>

<cgroup id="bsel" embed.h=":bsel ilt 1" embed.b=":bsel ilt 1" width.min="855" height.min="350">
<grid rows="11" cols="25" transpose="true">
<cgroup id="bsel" embed.h=":bsel ilt 1" embed.b=":bsel ilt 1" width.min="855" height.min="373">
<grid rows="12" cols="25" transpose="true">
<!-- Labels -->
<label text="labels.band" pad.v="4" bg.color="bg_schema" hreduce="true"/>
<vbox pad.v="4">
<label text="labels.range"/>
<label text="labels.units.:hz"/>
</vbox>
<label text="labels.controls" pad.v="4" bg.color="bg_schema"/>
<label text="labels.sidechain" pad.v="4" bg.color="bg_schema"/>
<cell rows="2" pad.v="4" hreduce="true" pad.h="6">
<label text="labels.sc_preamp_makeup:db_db"/>
</cell>
Expand All @@ -266,7 +268,7 @@
<!-- Column 1 -->
<ui:if test=":i ieq 0">
<!-- Separator -->
<cell rows="11"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>
<cell rows="12"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>

<cell cols="2" bg.color="bg_schema">
<button text="labels.chan.num_id" text:id="${:i+1}" value="1" editable="false" pointer="arrow" hfill="true" ui:inject="Button_ne_Cycle" height="19" pad.h="6" pad.v="4"/>
Expand All @@ -281,7 +283,7 @@

<ui:if test=":i ine 0">
<!-- Separator -->
<cell rows="11"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>
<cell rows="12"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>

<cell cols="2" bg.color="bg_schema">
<button
Expand Down Expand Up @@ -319,14 +321,15 @@
border.down.hover.color.hue=":hue_${i}"
pad.v="4"/>
<hbox pad.b="4">
<button id="bs_${i}" text="labels.chan.S_olo" height="19" hfill="true" ui:inject="Button_green_8"/>
<button id="bs_${i}" text="labels.chan.solo" height="19" hfill="true" ui:inject="Button_green_8"/>

<button id="bm_${i}" text="labels.chan.M_ute" height="19" hfill="true" ui:inject="Button_red_8" pad.l="4"/>

<combo id="sce_${i}" fill="true" pad.l="4"/>
<button id="bm_${i}" text="labels.chan.mute" height="19" hfill="true" ui:inject="Button_red_8" pad.l="4"/>
</hbox>
</grid>
</cell>
<cell cols="2" pad.h="6" bg.color="bg_schema">
<combo id="sce_${i}" fill="true" pad.l="4"/>
</cell>
<knob id="scp_${i}" size="16" ssize="3" pad.t="4" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}"/>
<value id="scp_${i}" pad.b="4" width.min="32" detailed="false"/>
<knob id="er_${i}" size="16" ssize="3" pad.t="4" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}" bg.color="bg_schema"/>
Expand Down
Loading

0 comments on commit 247e35b

Please sign in to comment.