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


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

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


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

@@ -16,12 +16,6 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Frame</string> <string>Frame</string>
</property> </property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
@@ -444,7 +438,7 @@
<number>4</number> <number>4</number>
</property> </property>
<property name="topMargin"> <property name="topMargin">
<number>2</number>
<number>0</number>
</property> </property>
<property name="rightMargin"> <property name="rightMargin">
<number>4</number> <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: if self.w_knobs_left is not None:
parameterCount = self.host.get_parameter_count(self.fPluginId) parameterCount = self.host.get_parameter_count(self.fPluginId)


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

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


paramInfo = self.host.get_parameter_info(self.fPluginId, i) paramInfo = self.host.get_parameter_info(self.fPluginId, i)
@@ -1694,10 +1699,10 @@ class PluginSlot_ZynFX(AbstractPluginSlot):
painter = QPainter(self) painter = QPainter(self)
painter.setBrush(Qt.transparent) 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.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) painter.drawLine(0, 0, self.width(), 0)


AbstractPluginSlot.paintEvent(self, event) AbstractPluginSlot.paintEvent(self, event)


Loading…
Cancel
Save