use new caml method for video

This commit is contained in:
leminlimez
2025-03-26 13:29:22 -04:00
parent 88f8aca169
commit fbaf03c83f
16 changed files with 1055 additions and 34 deletions

View File

@@ -4275,9 +4275,21 @@ To work properly, also disable the daemon using the toggle above.</string>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>25</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QToolButton {
min-height: 25px;
border-radius: 5px;
}</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_14">
<property name="topMargin">
<number>0</number>
@@ -4309,14 +4321,14 @@ To work properly, also disable the daemon using the toggle above.</string>
<property name="minimumSize">
<size>
<width>0</width>
<height>35</height>
<height>25</height>
</size>
</property>
<property name="text">
<string> Tendies</string>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<iconset>
<normaloff>:/icon/file-earmark-zip.svg</normaloff>:/icon/file-earmark-zip.svg</iconset>
</property>
<property name="checkable">
@@ -4332,11 +4344,17 @@ To work properly, also disable the daemon using the toggle above.</string>
</item>
<item>
<widget class="QToolButton" name="videoPageBtn">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="text">
<string> Live</string>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<iconset>
<normaloff>:/icon/photo.svg</normaloff>:/icon/photo.svg</iconset>
</property>
<property name="checkable">
@@ -4381,6 +4399,13 @@ To work properly, also disable the daemon using the toggle above.</string>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="pbActionLbl">
<property name="text">
<string>None</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_18">
<property name="orientation">
@@ -4406,7 +4431,7 @@ To work properly, also disable the daemon using the toggle above.</string>
<string> Import Files (.tendies)</string>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<iconset>
<normaloff>:/icon/import.svg</normaloff>:/icon/import.svg</iconset>
</property>
<property name="iconSize">
@@ -4422,13 +4447,6 @@ To work properly, also disable the daemon using the toggle above.</string>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="pbActionLbl">
<property name="text">
<string>None</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_27">
<property name="styleSheet">
@@ -4487,7 +4505,7 @@ To work properly, also disable the daemon using the toggle above.</string>
<string> Clear Collections Wallpapers</string>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<iconset>
<normaloff>:/icon/arrow.clockwise.svg</normaloff>:/icon/arrow.clockwise.svg</iconset>
</property>
<property name="toolButtonStyle">
@@ -4506,7 +4524,7 @@ Warning: This will remove all of your wallpapers and will restrict you from addi
<string> Remove All Wallpapers</string>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<iconset>
<normaloff>:/icon/arrow.clockwise.svg</normaloff>:/icon/arrow.clockwise.svg</iconset>
</property>
<property name="toolButtonStyle">
@@ -4569,7 +4587,7 @@ Warning: This will remove all of your wallpapers and will restrict you from addi
<string> Clear Suggested Photos</string>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<iconset>
<normaloff>:/icon/arrow.clockwise.svg</normaloff>:/icon/arrow.clockwise.svg</iconset>
</property>
<property name="toolButtonStyle">
@@ -4592,6 +4610,13 @@ Warning: This will remove all of your wallpapers and will restrict you from addi
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="caVideoChk">
<property name="text">
<string>Loop (use CoreAnimation method)</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_22">
<property name="orientation">

View File

@@ -2250,7 +2250,12 @@ class Ui_Nugget(object):
sizePolicy5.setVerticalStretch(0)
sizePolicy5.setHeightForWidth(self.pbPagePicker.sizePolicy().hasHeightForWidth())
self.pbPagePicker.setSizePolicy(sizePolicy5)
self.pbPagePicker.setMinimumSize(QSize(0, 30))
self.pbPagePicker.setMinimumSize(QSize(0, 20))
self.pbPagePicker.setMaximumSize(QSize(16777215, 25))
self.pbPagePicker.setStyleSheet(u"QToolButton {\n"
" min-height: 25px;\n"
" border-radius: 5px;\n"
"}")
self.horizontalLayout_14 = QHBoxLayout(self.pbPagePicker)
self.horizontalLayout_14.setObjectName(u"horizontalLayout_14")
self.horizontalLayout_14.setContentsMargins(-1, 0, -1, 0)
@@ -2265,7 +2270,7 @@ class Ui_Nugget(object):
sizePolicy6.setVerticalStretch(0)
sizePolicy6.setHeightForWidth(self.tendiesPageBtn.sizePolicy().hasHeightForWidth())
self.tendiesPageBtn.setSizePolicy(sizePolicy6)
self.tendiesPageBtn.setMinimumSize(QSize(0, 35))
self.tendiesPageBtn.setMinimumSize(QSize(0, 25))
icon22 = QIcon()
icon22.addFile(u":/icon/file-earmark-zip.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
self.tendiesPageBtn.setIcon(icon22)
@@ -2277,6 +2282,7 @@ class Ui_Nugget(object):
self.videoPageBtn = QToolButton(self.pbPagePicker)
self.videoPageBtn.setObjectName(u"videoPageBtn")
self.videoPageBtn.setMinimumSize(QSize(0, 25))
icon23 = QIcon()
icon23.addFile(u":/icon/photo.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
self.videoPageBtn.setIcon(icon23)
@@ -2303,6 +2309,11 @@ class Ui_Nugget(object):
self.horizontalLayout_12 = QHBoxLayout()
self.horizontalLayout_12.setObjectName(u"horizontalLayout_12")
self.horizontalLayout_12.setContentsMargins(-1, -1, -1, 0)
self.pbActionLbl = QLabel(self.pbTendiesPage)
self.pbActionLbl.setObjectName(u"pbActionLbl")
self.horizontalLayout_12.addWidget(self.pbActionLbl)
self.horizontalSpacer_18 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.horizontalLayout_12.addItem(self.horizontalSpacer_18)
@@ -2321,11 +2332,6 @@ class Ui_Nugget(object):
self.verticalLayout_38.addLayout(self.horizontalLayout_12)
self.pbActionLbl = QLabel(self.pbTendiesPage)
self.pbActionLbl.setObjectName(u"pbActionLbl")
self.verticalLayout_38.addWidget(self.pbActionLbl)
self.line_27 = QFrame(self.pbTendiesPage)
self.line_27.setObjectName(u"line_27")
self.line_27.setStyleSheet(u"QFrame {\n"
@@ -2418,6 +2424,11 @@ class Ui_Nugget(object):
self.verticalLayout_39.addLayout(self.horizontalLayout_30)
self.caVideoChk = QCheckBox(self.pbVideoPage)
self.caVideoChk.setObjectName(u"caVideoChk")
self.verticalLayout_39.addWidget(self.caVideoChk)
self.verticalSpacer_22 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalLayout_39.addItem(self.verticalSpacer_22)
@@ -3782,11 +3793,11 @@ class Ui_Nugget(object):
self.pbHelpBtn.setText(QCoreApplication.translate("Nugget", u"...", None))
self.tendiesPageBtn.setText(QCoreApplication.translate("Nugget", u" Tendies", None))
self.videoPageBtn.setText(QCoreApplication.translate("Nugget", u" Live", None))
self.pbActionLbl.setText(QCoreApplication.translate("Nugget", u"None", None))
#if QT_CONFIG(tooltip)
self.importTendiesBtn.setToolTip(QCoreApplication.translate("Nugget", u"Select a wallpaper file with the .tendies extension.", None))
#endif // QT_CONFIG(tooltip)
self.importTendiesBtn.setText(QCoreApplication.translate("Nugget", u" Import Files (.tendies)", None))
self.pbActionLbl.setText(QCoreApplication.translate("Nugget", u"None", None))
#if QT_CONFIG(tooltip)
self.deleteAllDescriptorsBtn.setToolTip(QCoreApplication.translate("Nugget", u"Clears all the wallpapers in the Collections section so that you can import more.", None))
#endif // QT_CONFIG(tooltip)
@@ -3802,6 +3813,7 @@ class Ui_Nugget(object):
self.chooseThumbBtn.setText(QCoreApplication.translate("Nugget", u"Choose Thumbnail (.HEIC)", None))
self.chooseVideoBtn.setText(QCoreApplication.translate("Nugget", u"Choose Video (.MOV)", None))
self.clearSuggestedBtn.setText(QCoreApplication.translate("Nugget", u" Clear Suggested Photos", None))
self.caVideoChk.setText(QCoreApplication.translate("Nugget", u"Loop (use CoreAnimation method)", None))
self.advancedOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Risky Options", None))
self.label_17.setText(QCoreApplication.translate("Nugget", u"Disclaimer:\n"
"\n"

View File

@@ -2250,7 +2250,12 @@ class Ui_Nugget(object):
sizePolicy5.setVerticalStretch(0)
sizePolicy5.setHeightForWidth(self.pbPagePicker.sizePolicy().hasHeightForWidth())
self.pbPagePicker.setSizePolicy(sizePolicy5)
self.pbPagePicker.setMinimumSize(QSize(0, 30))
self.pbPagePicker.setMinimumSize(QSize(0, 20))
self.pbPagePicker.setMaximumSize(QSize(16777215, 25))
self.pbPagePicker.setStyleSheet(u"QToolButton {\n"
" min-height: 25px;\n"
" border-radius: 5px;\n"
"}")
self.horizontalLayout_14 = QHBoxLayout(self.pbPagePicker)
self.horizontalLayout_14.setObjectName(u"horizontalLayout_14")
self.horizontalLayout_14.setContentsMargins(-1, 0, -1, 0)
@@ -2265,7 +2270,7 @@ class Ui_Nugget(object):
sizePolicy6.setVerticalStretch(0)
sizePolicy6.setHeightForWidth(self.tendiesPageBtn.sizePolicy().hasHeightForWidth())
self.tendiesPageBtn.setSizePolicy(sizePolicy6)
self.tendiesPageBtn.setMinimumSize(QSize(0, 35))
self.tendiesPageBtn.setMinimumSize(QSize(0, 25))
icon22 = QIcon()
icon22.addFile(u":/icon/file-earmark-zip.svg", QSize(), QIcon.Normal, QIcon.Off)
self.tendiesPageBtn.setIcon(icon22)
@@ -2277,6 +2282,7 @@ class Ui_Nugget(object):
self.videoPageBtn = QToolButton(self.pbPagePicker)
self.videoPageBtn.setObjectName(u"videoPageBtn")
self.videoPageBtn.setMinimumSize(QSize(0, 25))
icon23 = QIcon()
icon23.addFile(u":/icon/photo.svg", QSize(), QIcon.Normal, QIcon.Off)
self.videoPageBtn.setIcon(icon23)
@@ -2303,6 +2309,11 @@ class Ui_Nugget(object):
self.horizontalLayout_12 = QHBoxLayout()
self.horizontalLayout_12.setObjectName(u"horizontalLayout_12")
self.horizontalLayout_12.setContentsMargins(-1, -1, -1, 0)
self.pbActionLbl = QLabel(self.pbTendiesPage)
self.pbActionLbl.setObjectName(u"pbActionLbl")
self.horizontalLayout_12.addWidget(self.pbActionLbl)
self.horizontalSpacer_18 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.horizontalLayout_12.addItem(self.horizontalSpacer_18)
@@ -2321,11 +2332,6 @@ class Ui_Nugget(object):
self.verticalLayout_38.addLayout(self.horizontalLayout_12)
self.pbActionLbl = QLabel(self.pbTendiesPage)
self.pbActionLbl.setObjectName(u"pbActionLbl")
self.verticalLayout_38.addWidget(self.pbActionLbl)
self.line_27 = QFrame(self.pbTendiesPage)
self.line_27.setObjectName(u"line_27")
self.line_27.setStyleSheet(u"QFrame {\n"
@@ -2418,6 +2424,11 @@ class Ui_Nugget(object):
self.verticalLayout_39.addLayout(self.horizontalLayout_30)
self.caVideoChk = QCheckBox(self.pbVideoPage)
self.caVideoChk.setObjectName(u"caVideoChk")
self.verticalLayout_39.addWidget(self.caVideoChk)
self.verticalSpacer_22 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalLayout_39.addItem(self.verticalSpacer_22)
@@ -3782,11 +3793,11 @@ class Ui_Nugget(object):
self.pbHelpBtn.setText(QCoreApplication.translate("Nugget", u"...", None))
self.tendiesPageBtn.setText(QCoreApplication.translate("Nugget", u" Tendies", None))
self.videoPageBtn.setText(QCoreApplication.translate("Nugget", u" Live", None))
self.pbActionLbl.setText(QCoreApplication.translate("Nugget", u"None", None))
#if QT_CONFIG(tooltip)
self.importTendiesBtn.setToolTip(QCoreApplication.translate("Nugget", u"Select a wallpaper file with the .tendies extension.", None))
#endif // QT_CONFIG(tooltip)
self.importTendiesBtn.setText(QCoreApplication.translate("Nugget", u" Import Files (.tendies)", None))
self.pbActionLbl.setText(QCoreApplication.translate("Nugget", u"None", None))
#if QT_CONFIG(tooltip)
self.deleteAllDescriptorsBtn.setToolTip(QCoreApplication.translate("Nugget", u"Clears all the wallpapers in the Collections section so that you can import more.", None))
#endif // QT_CONFIG(tooltip)
@@ -3802,6 +3813,7 @@ class Ui_Nugget(object):
self.chooseThumbBtn.setText(QCoreApplication.translate("Nugget", u"Choose Thumbnail (.HEIC)", None))
self.chooseVideoBtn.setText(QCoreApplication.translate("Nugget", u"Choose Video (.MOV)", None))
self.clearSuggestedBtn.setText(QCoreApplication.translate("Nugget", u" Clear Suggested Photos", None))
self.caVideoChk.setText(QCoreApplication.translate("Nugget", u"Loop (use CoreAnimation method)", None))
self.advancedOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Risky Options", None))
self.label_17.setText(QCoreApplication.translate("Nugget", u"Disclaimer:\n"
"\n"