Browse Source

Replace the label_type with leds for the basics fx skin

tags/1.9.4
falkTX 11 years ago
parent
commit
fc9bb897b5
3 changed files with 104 additions and 4 deletions
  1. +3
    -0
      resources/resources.qrc
  2. +96
    -2
      resources/ui/carla_plugin_basic_fx.ui
  3. +5
    -2
      source/carla_skin.py

+ 3
- 0
resources/resources.qrc View File

@@ -110,6 +110,9 @@

<file>bitmaps/logo_calf.png</file>

<file>bitmaps/padding_left.png</file>
<file>bitmaps/padding_right.png</file>

<file>bitmaps/canvas/frame_node_header.png</file>
<file>bitmaps/canvas/frame_port_bg.png</file>



+ 96
- 2
resources/ui/carla_plugin_basic_fx.ui View File

@@ -2,6 +2,14 @@
<ui version="4.0">
<class>PluginWidget</class>
<widget class="QFrame" name="PluginWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>378</width>
<height>69</height>
</rect>
</property>
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
@@ -184,9 +192,90 @@
</spacer>
</item>
<item>
<widget class="QLabel" name="label_type">
<widget class="LEDButton" name="led_control">
<property name="minimumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="LEDButton" name="led_midi">
<property name="minimumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="text">
<string>TYPE</string>
<string/>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="LEDButton" name="led_audio_in">
<property name="minimumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="LEDButton" name="led_audio_out">
<property name="minimumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
@@ -397,6 +486,11 @@
<header>digitalpeakmeter.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>LEDButton</class>
<extends>QPushButton</extends>
<header>ledbutton.h</header>
</customwidget>
<customwidget>
<class>PixmapButton</class>
<extends>QPushButton</extends>


+ 5
- 2
source/carla_skin.py View File

@@ -709,7 +709,6 @@ class PluginSlot_BasicFX(AbstractPluginSlot):
labelFont.setPointSize(9)

self.ui.label_name.setFont(labelFont)
self.ui.label_type.setFont(labelFont)

r = 40
g = 40
@@ -839,7 +838,11 @@ class PluginSlot_BasicFX(AbstractPluginSlot):
self.b_edit = self.ui.b_edit

self.label_name = self.ui.label_name
self.label_type = self.ui.label_type

self.led_control = self.ui.led_control
self.led_midi = self.ui.led_midi
self.led_audio_in = self.ui.led_audio_in
self.led_audio_out = self.ui.led_audio_out

self.peak_in = self.ui.peak_in
self.peak_out = self.ui.peak_out


Loading…
Cancel
Save