Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bin/DropSlider.adc
Binary file not shown.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ v3.0.5 - Fixed value on handle tooltip
v3.1.0 - libraries/plugins update,
- Share folder removed.
v3.1.1 - Fixed - DOF runtime errors
v3.1.2 - Added colour gradient options to ADC properties and standard.css
17 changes: 15 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<info>
<name>DropSlider</name>
<guid>f523e0b2-8f59-4fd3-9f5f-c67360b43044</guid>
<version>3.1.1</version>
<version>3.1.2</version>
<date>2022-09-29</date>
<description><![CDATA[DropSlider ADC]]></description>
<company>Askia</company>
Expand Down Expand Up @@ -347,9 +347,22 @@
<value><![CDATA[{%= Theme.NeutralColor %}]]></value>
</property>
<property xsi:type="standardProperty" id="baseColourPrimary" name="Base Background Colour" type="color" mode="dynamic" require="false" visible="false" colorFormat="rgb">
<description><![CDATA[Background colour of the base]]></description>
<value><![CDATA[{%= Theme.PrimaryColor %}]]></value>
</property>
<property xsi:type="standardProperty" id="baseColourSecondary" name="Secondary Base Background Colour" type="color" mode="dynamic" require="false" visible="false" colorFormat="rgb">
<description><![CDATA[Background colour of the base]]></description>
<value><![CDATA[{%= Theme.SecondaryColor %}]]></value>
</property>
<property xsi:type="standardProperty" id="sliderBaseGradientDirection" name="Slider Base Gradient Direction" type="string" mode="dynamic" require="false" visible="true">
<description><![CDATA[The direction of the gradient on the base]]></description>
<value><![CDATA[ltr]]></value>
<options>
<option value="" text="No Gradient" />
<option value="ltr" text="Left to Right" />
<option value="rtl" text="Right to Left" />
</options>
</property>
<property xsi:type="standardProperty" id="baseBorderRadius" name="Base Border Radius" type="string" mode="dynamic" require="false" visible="false">
<description><![CDATA[The amount of curve on the base corners]]></description>
<value><![CDATA[{%= Theme.BorderRadius %}]]></value>
Expand Down Expand Up @@ -595,4 +608,4 @@
</property>
</category>
</properties>
</control>
</control>
21 changes: 20 additions & 1 deletion resources/dynamic/standard.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Dim labelBorderThickness =CurrentADC.PropValue("labelBorderThickness")
Dim labelBorderStyle =CurrentADC.PropValue("labelBorderStyle")

Dim baseColourPrimary =CurrentADC.PropValue("baseColourPrimary")
Dim baseColourSecondary =CurrentADC.PropValue("baseColourSecondary")
Dim baseBorderColour =CurrentADC.PropValue("baseBorderColour")
Dim baseBorderThickness =CurrentADC.PropValue("baseBorderThickness")
Dim baseBorderStyle =CurrentADC.PropValue("baseBorderStyle")
Expand Down Expand Up @@ -357,8 +358,26 @@ EndIf
{% Else %}
border: {%= baseBorderThickness%} {%= baseBorderStyle%} rgb({%= baseBorderColour%});
{% EndIF %}

{% IF CurrentADC.PropValue("sliderBaseGradientDirection") <> "" Then %}

background: rgb({%= baseColourPrimary%});
background: -moz-linear-gradient(left, rgb({%= baseColourPrimary%}) 0%, rgb({%= baseColourSecondary%}) 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgb({%= baseColourPrimary%})), color-stop(100%,rgb({%= baseColourSecondary%})));
background: -webkit-linear-gradient(left, rgb({%= baseColourPrimary%}) 0%,rgb({%= baseColourSecondary%}) 100%);
background: -o-linear-gradient(left, rgb({%= baseColourPrimary%}) 0%,rgb({%= baseColourSecondary%}) 100%);
background: -ms-linear-gradient(left, rgb({%= baseColourPrimary%}) 0%,rgb({%= baseColourSecondary%}) 100%);
{% IF CurrentADC.PropValue("sliderBaseGradientDirection") = "ltr" Then %}
background: linear-gradient(to right, rgb({%= baseColourPrimary%}) 0%,rgb({%= baseColourSecondary%}) 100%);
{% Else %}
background: linear-gradient(to left, rgb({%= baseColourPrimary%}) 0%,rgb({%= baseColourSecondary%}) 100%);
{% EndIF %}
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='{%= baseColourPrimary.ToHexa()%}', endColorstr='{%= baseColourSecondary.ToHexa()%}',GradientType=1 );

background: rgb({%= baseColourPrimary%});
{% Else %}
background: rgb({%= baseColourPrimary%});
{% EndIF %}

}

#adc_{%= CurrentADC.InstanceId%} .tooltip {
Expand Down