Skip to content

Commit

Permalink
Fix Color properties widget setting (#239)
Browse files Browse the repository at this point in the history
Add stylesheets to properties widgets scroll areas to make scroll area backgrounds transparent

Re #spine-tools/Spine-Toolbox#3012
  • Loading branch information
ptsavol authored Dec 3, 2024
1 parent fdb3829 commit a663224
Show file tree
Hide file tree
Showing 16 changed files with 159 additions and 77 deletions.
13 changes: 8 additions & 5 deletions spine_items/data_connection/ui/data_connection_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################
## Form generated from reading UI file 'data_connection_properties.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
## Created by: Qt User Interface Compiler version 6.7.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand All @@ -27,9 +27,9 @@
QIcon, QImage, QKeySequence, QLinearGradient,
QPainter, QPalette, QPixmap, QRadialGradient,
QTransform)
from PySide6.QtWidgets import (QAbstractItemView, QApplication, QHBoxLayout, QHeaderView,
QScrollArea, QSizePolicy, QSpacerItem, QToolButton,
QVBoxLayout, QWidget)
from PySide6.QtWidgets import (QAbstractItemView, QApplication, QFrame, QHBoxLayout,
QHeaderView, QScrollArea, QSizePolicy, QSpacerItem,
QToolButton, QVBoxLayout, QWidget)

from spine_items.widgets import (DataTreeView, ReferencesTreeView)
from spine_items import resources_icons_rc
Expand All @@ -39,6 +39,8 @@ def setupUi(self, Form):
if not Form.objectName():
Form.setObjectName(u"Form")
Form.resize(274, 438)
Form.setStyleSheet(u"QScrollArea { background: transparent; }\n"
"QScrollArea > QWidget > QWidget { background: transparent; }")
self.action_new_file_reference = QAction(Form)
self.action_new_file_reference.setObjectName(u"action_new_file_reference")
icon = QIcon()
Expand All @@ -53,10 +55,11 @@ def setupUi(self, Form):
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.scrollArea = QScrollArea(Form)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setFrameShape(QFrame.Shape.NoFrame)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 272, 436))
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 274, 438))
self.verticalLayout = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName(u"verticalLayout")
Expand Down
11 changes: 9 additions & 2 deletions spine_items/data_connection/ui/data_connection_properties.ui
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QScrollArea { background: transparent; }
QScrollArea &gt; QWidget &gt; QWidget { background: transparent; }</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>0</number>
Expand All @@ -44,6 +48,9 @@
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
Expand All @@ -52,8 +59,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>272</width>
<height>436</height>
<width>274</width>
<height>438</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
Expand Down
13 changes: 8 additions & 5 deletions spine_items/data_store/ui/data_store_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################
## Form generated from reading UI file 'data_store_properties.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
## Created by: Qt User Interface Compiler version 6.7.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand All @@ -26,9 +26,9 @@
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QGroupBox, QHBoxLayout, QPushButton,
QScrollArea, QSizePolicy, QSpacerItem, QVBoxLayout,
QWidget)
from PySide6.QtWidgets import (QApplication, QFrame, QGroupBox, QHBoxLayout,
QPushButton, QScrollArea, QSizePolicy, QSpacerItem,
QVBoxLayout, QWidget)

from spine_items.widgets import UrlSelectorWidget
from spine_items import resources_icons_rc
Expand All @@ -38,16 +38,19 @@ def setupUi(self, Form):
if not Form.objectName():
Form.setObjectName(u"Form")
Form.resize(369, 337)
Form.setStyleSheet(u"QScrollArea { background: transparent; }\n"
"QScrollArea > QWidget > QWidget { background: transparent; }")
self.verticalLayout_3 = QVBoxLayout(Form)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.scrollArea = QScrollArea(Form)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setFrameShape(QFrame.Shape.NoFrame)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 367, 335))
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 369, 337))
self.verticalLayout = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName(u"verticalLayout")
Expand Down
11 changes: 9 additions & 2 deletions spine_items/data_store/ui/data_store_properties.ui
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QScrollArea { background: transparent; }
QScrollArea &gt; QWidget &gt; QWidget { background: transparent; }</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>0</number>
Expand All @@ -44,6 +48,9 @@
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
Expand All @@ -52,8 +59,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>367</width>
<height>335</height>
<width>369</width>
<height>337</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
Expand Down
13 changes: 8 additions & 5 deletions spine_items/data_transformer/ui/data_transformer_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################
## Form generated from reading UI file 'data_transformer_properties.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
## Created by: Qt User Interface Compiler version 6.7.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand All @@ -26,26 +26,29 @@
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QComboBox, QHBoxLayout, QLabel,
QScrollArea, QSizePolicy, QSpacerItem, QToolButton,
QVBoxLayout, QWidget)
from PySide6.QtWidgets import (QApplication, QComboBox, QFrame, QHBoxLayout,
QLabel, QScrollArea, QSizePolicy, QSpacerItem,
QToolButton, QVBoxLayout, QWidget)
from spine_items import resources_icons_rc

class Ui_Form(object):
def setupUi(self, Form):
if not Form.objectName():
Form.setObjectName(u"Form")
Form.resize(212, 91)
Form.setStyleSheet(u"QScrollArea { background: transparent; }\n"
"QScrollArea > QWidget > QWidget { background: transparent; }")
self.verticalLayout = QVBoxLayout(Form)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.scrollArea = QScrollArea(Form)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setFrameShape(QFrame.Shape.NoFrame)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 210, 89))
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 212, 91))
self.verticalLayout_2 = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
Expand Down
11 changes: 9 additions & 2 deletions spine_items/data_transformer/ui/data_transformer_properties.ui
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QScrollArea { background: transparent; }
QScrollArea &gt; QWidget &gt; QWidget { background: transparent; }</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
Expand All @@ -44,6 +48,9 @@
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
Expand All @@ -52,8 +59,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>210</width>
<height>89</height>
<width>212</width>
<height>91</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
Expand Down
7 changes: 5 additions & 2 deletions spine_items/exporter/ui/exporter_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################
## Form generated from reading UI file 'exporter_properties.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
## Created by: Qt User Interface Compiler version 6.7.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand All @@ -36,16 +36,19 @@ def setupUi(self, Form):
if not Form.objectName():
Form.setObjectName(u"Form")
Form.resize(272, 202)
Form.setStyleSheet(u"QScrollArea { background: transparent; }\n"
"QScrollArea > QWidget > QWidget { background: transparent; }")
self.verticalLayout_3 = QVBoxLayout(Form)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.scrollArea = QScrollArea(Form)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setFrameShape(QFrame.Shape.NoFrame)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 270, 200))
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 272, 202))
self.verticalLayout = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName(u"verticalLayout")
Expand Down
11 changes: 9 additions & 2 deletions spine_items/exporter/ui/exporter_properties.ui
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QScrollArea { background: transparent; }
QScrollArea &gt; QWidget &gt; QWidget { background: transparent; }</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>0</number>
Expand All @@ -44,6 +48,9 @@
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
Expand All @@ -52,8 +59,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>270</width>
<height>200</height>
<width>272</width>
<height>202</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
Expand Down
7 changes: 5 additions & 2 deletions spine_items/importer/ui/importer_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################
## Form generated from reading UI file 'importer_properties.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
## Created by: Qt User Interface Compiler version 6.7.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand All @@ -37,16 +37,19 @@ def setupUi(self, Form):
if not Form.objectName():
Form.setObjectName(u"Form")
Form.resize(329, 338)
Form.setStyleSheet(u"QScrollArea { background: transparent; }\n"
"QScrollArea > QWidget > QWidget { background: transparent; }")
self.verticalLayout = QVBoxLayout(Form)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.scrollArea = QScrollArea(Form)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setFrameShape(QFrame.Shape.NoFrame)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 327, 336))
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 329, 338))
self.verticalLayout_3 = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
Expand Down
11 changes: 9 additions & 2 deletions spine_items/importer/ui/importer_properties.ui
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QScrollArea { background: transparent; }
QScrollArea &gt; QWidget &gt; QWidget { background: transparent; }</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
Expand All @@ -44,6 +48,9 @@
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
Expand All @@ -52,8 +59,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>327</width>
<height>336</height>
<width>329</width>
<height>338</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
Expand Down
7 changes: 5 additions & 2 deletions spine_items/merger/ui/merger_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################
## Form generated from reading UI file 'merger_properties.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
## Created by: Qt User Interface Compiler version 6.7.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
Expand All @@ -35,16 +35,19 @@ def setupUi(self, Form):
if not Form.objectName():
Form.setObjectName(u"Form")
Form.resize(323, 228)
Form.setStyleSheet(u"QScrollArea { background: transparent; }\n"
"QScrollArea > QWidget > QWidget { background: transparent; }")
self.verticalLayout_3 = QVBoxLayout(Form)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.scrollArea = QScrollArea(Form)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setFrameShape(QFrame.Shape.NoFrame)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 321, 226))
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 323, 228))
self.verticalLayout = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName(u"verticalLayout")
Expand Down
Loading

0 comments on commit a663224

Please sign in to comment.