Browse Source

Fixup calf skin

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
5e670887ff
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 18 additions and 25 deletions
  1. +12
    -19
      resources/ui/carla_plugin_calf.ui
  2. +6
    -6
      source/frontend/carla_skin.py

+ 12
- 19
resources/ui/carla_plugin_calf.ui View File

@@ -41,13 +41,13 @@
<widget class="QWidget" name="w_buttons" native="true">
<property name="minimumSize">
<size>
<width>72</width>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>72</width>
<width>80</width>
<height>16777215</height>
</size>
</property>
@@ -55,7 +55,16 @@
<property name="spacing">
<number>2</number>
</property>
<property name="margin">
<property name="leftMargin">
<number>12</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
@@ -78,22 +87,6 @@
</layout>
</widget>
</item>
<item>
<spacer name="spacer_namesep1">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>6</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="Line" name="line_sep">
<property name="minimumSize">


+ 6
- 6
source/frontend/carla_skin.py View File

@@ -390,9 +390,9 @@ class AbstractPluginSlot(QFrame, PluginEditParentMeta):
self.b_gui.setEnabled(bool(self.fPluginInfo['hints'] & PLUGIN_HAS_CUSTOM_UI))

if isCalfSkin:
self.b_gui.setPixmaps(":/scalable/button_calf2.png",
":/scalable/button_calf2_down.png",
":/scalable/button_calf2_hover.png")
self.b_gui.setPixmaps(":/bitmaps/button_calf2.png",
":/bitmaps/button_calf2_down.png",
":/bitmaps/button_calf2_hover.png")
elif self.fPluginInfo['iconName'] == "distrho" or self.fSkinStyle in ("3bandeq", "3bandsplitter", "pingpongpan", "nekobi"):
self.b_gui.setPixmaps(":/bitmaps/button_distrho-{}.png".format(imageSuffix),
":/bitmaps/button_distrho_down-{}.png".format(imageSuffix),
@@ -1535,9 +1535,9 @@ class PluginSlot_Calf(AbstractPluginSlot):

self.ui.label_active.setFont(self.fButtonFont)

self.ui.b_remove.setPixmaps(":/scalable/button_calf1.png",
":/scalable/button_calf1_down.png",
":/scalable/button_calf1_hover.png")
self.ui.b_remove.setPixmaps(":/bitmaps/button_calf1.png",
":/bitmaps/button_calf1_down.png",
":/bitmaps/button_calf1_hover.png")

self.ui.b_edit.setTopText(self.tr("Edit"), self.fButtonColorOn, self.fButtonFont)
self.ui.b_remove.setTopText(self.tr("Remove"), self.fButtonColorOn, self.fButtonFont)


Loading…
Cancel
Save