Browse Source

More UI tweaks

tags/1.9.6
falkTX 9 years ago
parent
commit
b990ae979c
4 changed files with 13 additions and 20 deletions
  1. +4
    -4
      resources/ui/carla_plugin_basic_fx.ui
  2. +0
    -6
      resources/ui/carla_plugin_calf.ui
  3. +1
    -7
      resources/ui/carla_plugin_zynfx.ui
  4. +8
    -3
      source/carla_skin.py

+ 4
- 4
resources/ui/carla_plugin_basic_fx.ui View File

@@ -270,13 +270,13 @@
<widget class="DigitalPeakMeter" name="peak_in" native="true">
<property name="minimumSize">
<size>
<width>80</width>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>80</width>
<width>100</width>
<height>16777215</height>
</size>
</property>
@@ -286,13 +286,13 @@
<widget class="DigitalPeakMeter" name="peak_out" native="true">
<property name="minimumSize">
<size>
<width>80</width>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>80</width>
<width>100</width>
<height>16777215</height>
</size>
</property>


+ 0
- 6
resources/ui/carla_plugin_calf.ui View File

@@ -16,12 +16,6 @@
<property name="windowTitle">
<string>Frame</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>


+ 1
- 7
resources/ui/carla_plugin_zynfx.ui View File

@@ -16,12 +16,6 @@
<property name="windowTitle">
<string>Frame</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
@@ -444,7 +438,7 @@
<number>4</number>
</property>
<property name="topMargin">
<number>2</number>
<number>0</number>
</property>
<property name="rightMargin">
<number>4</number>


+ 8
- 3
source/carla_skin.py View File

@@ -535,9 +535,14 @@ class AbstractPluginSlot(QFrame, PluginEditParentMeta):
if self.w_knobs_left is not None:
parameterCount = self.host.get_parameter_count(self.fPluginId)

if "calf" in self.fSkinStyle:
maxWidgets = 7
else:
maxWidgets = 8

index = 0
for i in range(parameterCount):
if index >= 8:
if index >= maxWidgets:
break

paramInfo = self.host.get_parameter_info(self.fPluginId, i)
@@ -1694,10 +1699,10 @@ class PluginSlot_ZynFX(AbstractPluginSlot):
painter = QPainter(self)
painter.setBrush(Qt.transparent)

painter.setPen(QPen(QColor(60, 60, 60), 1))
painter.setPen(QPen(QColor(50, 50, 50), 1))
painter.drawRect(0, 1, self.width()-1, self.height()-3)

painter.setPen(QPen(QColor(94, 94, 94), 1))
painter.setPen(QPen(QColor(64, 64, 64), 1))
painter.drawLine(0, 0, self.width(), 0)

AbstractPluginSlot.paintEvent(self, event)


Loading…
Cancel
Save