mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
hide ipad models on phones/iphone models on ipads
This commit is contained in:
@@ -155,6 +155,12 @@ class DeviceManager:
|
||||
else:
|
||||
return self.data_singleton.current_device.uuid
|
||||
|
||||
def get_current_device_model(self) -> str:
|
||||
if self.data_singleton.current_device == None:
|
||||
return ""
|
||||
else:
|
||||
return self.data_singleton.current_device.model
|
||||
|
||||
def get_current_device_supported(self) -> bool:
|
||||
if self.data_singleton.current_device == None:
|
||||
return False
|
||||
|
||||
@@ -219,6 +219,22 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
self.ui.devicePicker.setCurrentIndex(0)
|
||||
self.change_selected_device(0)
|
||||
|
||||
def setup_spoofedModelDrp_models(self):
|
||||
# hide all the models first
|
||||
for i in range(1, len(tweaks["SpoofModel"].value)):
|
||||
try:
|
||||
self.ui.spoofedModelDrp.removeItem(i)
|
||||
except:
|
||||
pass
|
||||
# indexes 1-6 for iPhones, 7-(len(values) - 1) for iPads
|
||||
spoof_drp_options = ["iPhone 15 Pro (iPhone16,1)", "iPhone 15 Pro Max (iPhone16,2)", "iPhone 16 (iPhone17,3)", "iPhone 16 Plus (iPhone17,4)", "iPhone 16 Pro (iPhone17,1)", "iPhone 16 Pro Max (iPhone17,2)", "iPad Mini (A17 Pro) (W) (iPad16,1)", "iPad Mini (A17 Pro) (C) (iPad16,2)", "iPad Pro (13-inch) (M4) (W) (iPad16,5)", "iPad Pro (13-inch) (M4) (C) (iPad16,6)", "iPad Pro (11-inch) (M4) (W) (iPad16,3)", "iPad Pro (11-inch) (M4) (C) (iPad16,4)", "iPad Pro (12.9-inch) (M2) (W) (iPad14,5)", "iPad Pro (12.9-inch) (M2) (C) (iPad14,6)", "iPad Pro (11-inch) (M2) (W) (iPad14,3)", "iPad Pro (11-inch) (M2) (C) (iPad14,4)", "iPad Air (13-inch) (M2) (W) (iPad14,10)", "iPad Air (13-inch) (M2) (C) (iPad14,11)", "iPad Air (11-inch) (M2) (W) (iPad14,8)", "iPad Air (11-inch) (M2) (C) (iPad14,9)", "iPad Pro (11-inch) (M1) (W) (iPad13,4)", "iPad Pro (11-inch) (M1) (C) (iPad13,5)", "iPad Pro (12.9-inch) (M1) (W) (iPad13,8)", "iPad Pro (12.9-inch) (M1) (C) (iPad13,9)", "iPad Air (M1) (W) (iPad13,16)", "iPad Air (M1) (C) (iPad13,17)"]
|
||||
if self.device_manager.get_current_device_model().startswith("iPhone"):
|
||||
# re-enable iPhone spoof models
|
||||
self.ui.spoofedModelDrp.addItems(spoof_drp_options[:6])
|
||||
else:
|
||||
# re-enable iPad spoof models
|
||||
self.ui.spoofedModelDrp.addItems(spoof_drp_options[6:])
|
||||
|
||||
def change_selected_device(self, index):
|
||||
if len(self.device_manager.devices) > 0:
|
||||
self.device_manager.set_current_device(index=index)
|
||||
@@ -278,6 +294,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
# hide the ai content if not on
|
||||
if device_ver >= Version("18.1") and not tweaks["AIGestalt"].enabled:
|
||||
self.ui.aiEnablerContent.hide()
|
||||
self.setup_spoofedModelDrp_models()
|
||||
else:
|
||||
self.device_manager.set_current_device(index=None)
|
||||
|
||||
@@ -572,9 +589,14 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
tweaks["AIEligibility"].set_language_code(text)
|
||||
|
||||
def on_spoofedModelDrp_activated(self, index: int):
|
||||
tweaks["SpoofModel"].set_selected_option(index)
|
||||
tweaks["SpoofHardware"].set_selected_option(index)
|
||||
tweaks["SpoofCPU"].set_selected_option(index)
|
||||
idx_to_apply = index
|
||||
if index > 0 and not self.device_manager.get_current_device_model().startswith("iPhone"):
|
||||
# offset the index for ipads
|
||||
idx_to_apply += 7
|
||||
tweaks["SpoofModel"].set_selected_option(idx_to_apply)
|
||||
print(tweaks["SpoofModel"].value[tweaks["SpoofModel"].selected_option])
|
||||
tweaks["SpoofHardware"].set_selected_option(idx_to_apply)
|
||||
tweaks["SpoofCPU"].set_selected_option(idx_to_apply)
|
||||
|
||||
|
||||
## SPRINGBOARD OPTIONS PAGE
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
################################################################################
|
||||
## Form generated from reading UI file 'mainwindow.ui'
|
||||
##
|
||||
## Created by: Qt User Interface Compiler version 6.8.0
|
||||
## Created by: Qt User Interface Compiler version 6.6.3
|
||||
##
|
||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
################################################################################
|
||||
@@ -190,7 +190,7 @@ class Ui_Nugget(object):
|
||||
" border-bottom-right-radius: 0px;\n"
|
||||
"}")
|
||||
icon = QIcon()
|
||||
icon.addFile(u":/icon/phone.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon.addFile(u":/icon/phone.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.toolButton_6.setIcon(icon)
|
||||
|
||||
self.horizontalLayout_15.addWidget(self.toolButton_6)
|
||||
@@ -244,7 +244,7 @@ class Ui_Nugget(object):
|
||||
" border-radius: 0px;\n"
|
||||
"}")
|
||||
icon1 = QIcon()
|
||||
icon1.addFile(u":/icon/arrow-clockwise.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon1.addFile(u":/icon/arrow-clockwise.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.refreshBtn.setIcon(icon1)
|
||||
self.refreshBtn.setCheckable(False)
|
||||
self.refreshBtn.setToolButtonStyle(Qt.ToolButtonIconOnly)
|
||||
@@ -297,7 +297,7 @@ class Ui_Nugget(object):
|
||||
sizePolicy2.setHeightForWidth(self.homePageBtn.sizePolicy().hasHeightForWidth())
|
||||
self.homePageBtn.setSizePolicy(sizePolicy2)
|
||||
icon2 = QIcon()
|
||||
icon2.addFile(u":/icon/house.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon2.addFile(u":/icon/house.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.homePageBtn.setIcon(icon2)
|
||||
self.homePageBtn.setCheckable(True)
|
||||
self.homePageBtn.setChecked(True)
|
||||
@@ -312,7 +312,7 @@ class Ui_Nugget(object):
|
||||
sizePolicy2.setHeightForWidth(self.explorePageBtn.sizePolicy().hasHeightForWidth())
|
||||
self.explorePageBtn.setSizePolicy(sizePolicy2)
|
||||
icon3 = QIcon()
|
||||
icon3.addFile(u":/icon/compass.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon3.addFile(u":/icon/compass.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.explorePageBtn.setIcon(icon3)
|
||||
self.explorePageBtn.setCheckable(True)
|
||||
self.explorePageBtn.setAutoExclusive(True)
|
||||
@@ -325,7 +325,7 @@ class Ui_Nugget(object):
|
||||
sizePolicy2.setHeightForWidth(self.locSimPageBtn.sizePolicy().hasHeightForWidth())
|
||||
self.locSimPageBtn.setSizePolicy(sizePolicy2)
|
||||
icon4 = QIcon()
|
||||
icon4.addFile(u":/icon/geo-alt.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon4.addFile(u":/icon/geo-alt.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.locSimPageBtn.setIcon(icon4)
|
||||
self.locSimPageBtn.setCheckable(True)
|
||||
self.locSimPageBtn.setAutoExclusive(True)
|
||||
@@ -339,7 +339,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.sidebarDiv1.setFrameShadow(QFrame.Plain)
|
||||
self.sidebarDiv1.setFrameShape(QFrame.Shape.HLine)
|
||||
self.sidebarDiv1.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout.addWidget(self.sidebarDiv1)
|
||||
|
||||
@@ -348,7 +348,7 @@ class Ui_Nugget(object):
|
||||
sizePolicy2.setHeightForWidth(self.gestaltPageBtn.sizePolicy().hasHeightForWidth())
|
||||
self.gestaltPageBtn.setSizePolicy(sizePolicy2)
|
||||
icon5 = QIcon()
|
||||
icon5.addFile(u":/icon/iphone-island.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon5.addFile(u":/icon/iphone-island.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.gestaltPageBtn.setIcon(icon5)
|
||||
self.gestaltPageBtn.setIconSize(QSize(24, 28))
|
||||
self.gestaltPageBtn.setCheckable(True)
|
||||
@@ -366,7 +366,7 @@ class Ui_Nugget(object):
|
||||
font.setFamilies([u".AppleSystemUIFont"])
|
||||
self.featureFlagsPageBtn.setFont(font)
|
||||
icon6 = QIcon()
|
||||
icon6.addFile(u":/icon/flag.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon6.addFile(u":/icon/flag.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.featureFlagsPageBtn.setIcon(icon6)
|
||||
self.featureFlagsPageBtn.setCheckable(True)
|
||||
self.featureFlagsPageBtn.setAutoExclusive(True)
|
||||
@@ -390,7 +390,7 @@ class Ui_Nugget(object):
|
||||
sizePolicy2.setHeightForWidth(self.springboardOptionsPageBtn.sizePolicy().hasHeightForWidth())
|
||||
self.springboardOptionsPageBtn.setSizePolicy(sizePolicy2)
|
||||
icon7 = QIcon()
|
||||
icon7.addFile(u":/icon/app-indicator.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon7.addFile(u":/icon/app-indicator.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.springboardOptionsPageBtn.setIcon(icon7)
|
||||
self.springboardOptionsPageBtn.setCheckable(True)
|
||||
self.springboardOptionsPageBtn.setAutoExclusive(True)
|
||||
@@ -403,7 +403,7 @@ class Ui_Nugget(object):
|
||||
sizePolicy2.setHeightForWidth(self.internalOptionsPageBtn.sizePolicy().hasHeightForWidth())
|
||||
self.internalOptionsPageBtn.setSizePolicy(sizePolicy2)
|
||||
icon8 = QIcon()
|
||||
icon8.addFile(u":/icon/hdd.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon8.addFile(u":/icon/hdd.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.internalOptionsPageBtn.setIcon(icon8)
|
||||
self.internalOptionsPageBtn.setCheckable(True)
|
||||
self.internalOptionsPageBtn.setAutoExclusive(True)
|
||||
@@ -417,7 +417,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.sidebarDiv2.setFrameShadow(QFrame.Plain)
|
||||
self.sidebarDiv2.setFrameShape(QFrame.Shape.HLine)
|
||||
self.sidebarDiv2.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout.addWidget(self.sidebarDiv2)
|
||||
|
||||
@@ -426,7 +426,7 @@ class Ui_Nugget(object):
|
||||
sizePolicy2.setHeightForWidth(self.applyPageBtn.sizePolicy().hasHeightForWidth())
|
||||
self.applyPageBtn.setSizePolicy(sizePolicy2)
|
||||
icon9 = QIcon()
|
||||
icon9.addFile(u":/icon/check-circle.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon9.addFile(u":/icon/check-circle.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.applyPageBtn.setIcon(icon9)
|
||||
self.applyPageBtn.setCheckable(True)
|
||||
self.applyPageBtn.setAutoExclusive(True)
|
||||
@@ -439,7 +439,7 @@ class Ui_Nugget(object):
|
||||
sizePolicy2.setHeightForWidth(self.settingsPageBtn.sizePolicy().hasHeightForWidth())
|
||||
self.settingsPageBtn.setSizePolicy(sizePolicy2)
|
||||
icon10 = QIcon()
|
||||
icon10.addFile(u":/icon/gear.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon10.addFile(u":/icon/gear.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.settingsPageBtn.setIcon(icon10)
|
||||
self.settingsPageBtn.setCheckable(True)
|
||||
self.settingsPageBtn.setAutoExclusive(True)
|
||||
@@ -509,7 +509,7 @@ class Ui_Nugget(object):
|
||||
|
||||
self.phoneVersionLbl = QLabel(self.verticalWidget)
|
||||
self.phoneVersionLbl.setObjectName(u"phoneVersionLbl")
|
||||
self.phoneVersionLbl.setCursor(QCursor(Qt.CursorShape.PointingHandCursor))
|
||||
self.phoneVersionLbl.setCursor(QCursor(Qt.PointingHandCursor))
|
||||
self.phoneVersionLbl.setTextFormat(Qt.RichText)
|
||||
self.phoneVersionLbl.setOpenExternalLinks(False)
|
||||
|
||||
@@ -531,7 +531,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_4.setFrameShadow(QFrame.Plain)
|
||||
self.line_4.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_4.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_2.addWidget(self.line_4)
|
||||
|
||||
@@ -552,7 +552,7 @@ class Ui_Nugget(object):
|
||||
" padding: 0px;\n"
|
||||
"}")
|
||||
icon11 = QIcon()
|
||||
icon11.addFile(u":/credits/big_nugget.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon11.addFile(u":/credits/big_nugget.png", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.bigNuggetBtn.setIcon(icon11)
|
||||
self.bigNuggetBtn.setIconSize(QSize(150, 200))
|
||||
|
||||
@@ -589,7 +589,7 @@ class Ui_Nugget(object):
|
||||
self.discordBtn = QToolButton(self.verticalWidget1)
|
||||
self.discordBtn.setObjectName(u"discordBtn")
|
||||
icon12 = QIcon()
|
||||
icon12.addFile(u":/icon/discord.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon12.addFile(u":/icon/discord.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.discordBtn.setIcon(icon12)
|
||||
self.discordBtn.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
|
||||
@@ -598,7 +598,7 @@ class Ui_Nugget(object):
|
||||
self.starOnGithubBtn = QToolButton(self.verticalWidget1)
|
||||
self.starOnGithubBtn.setObjectName(u"starOnGithubBtn")
|
||||
icon13 = QIcon()
|
||||
icon13.addFile(u":/icon/star.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon13.addFile(u":/icon/star.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.starOnGithubBtn.setIcon(icon13)
|
||||
self.starOnGithubBtn.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
|
||||
@@ -642,7 +642,7 @@ class Ui_Nugget(object):
|
||||
" background: none;\n"
|
||||
"}")
|
||||
icon14 = QIcon()
|
||||
icon14.addFile(u":/credits/LeminLimez.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon14.addFile(u":/credits/LeminLimez.png", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.leminBtn.setIcon(icon14)
|
||||
self.leminBtn.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
|
||||
@@ -662,7 +662,7 @@ class Ui_Nugget(object):
|
||||
" color: #FFFFFF;\n"
|
||||
"}")
|
||||
icon15 = QIcon()
|
||||
icon15.addFile(u":/icon/twitter.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon15.addFile(u":/icon/twitter.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.leminTwitterBtn.setIcon(icon15)
|
||||
|
||||
self.horizontalLayout_6.addWidget(self.leminTwitterBtn)
|
||||
@@ -681,7 +681,7 @@ class Ui_Nugget(object):
|
||||
" color: #FFFFFF;\n"
|
||||
"}")
|
||||
icon16 = QIcon()
|
||||
icon16.addFile(u":/icon/github.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon16.addFile(u":/icon/github.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.leminGithubBtn.setIcon(icon16)
|
||||
|
||||
self.horizontalLayout_6.addWidget(self.leminGithubBtn)
|
||||
@@ -701,7 +701,7 @@ class Ui_Nugget(object):
|
||||
" color: #FFFFFF;\n"
|
||||
"}")
|
||||
icon17 = QIcon()
|
||||
icon17.addFile(u":/icon/currency-dollar.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon17.addFile(u":/icon/currency-dollar.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.leminKoFiBtn.setIcon(icon17)
|
||||
|
||||
self.horizontalLayout_6.addWidget(self.leminKoFiBtn)
|
||||
@@ -934,7 +934,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_8.setFrameShadow(QFrame.Plain)
|
||||
self.line_8.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_8.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_4.addWidget(self.line_8)
|
||||
|
||||
@@ -1062,7 +1062,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_7.setFrameShadow(QFrame.Plain)
|
||||
self.line_7.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_7.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_8.addWidget(self.line_7)
|
||||
|
||||
@@ -1107,7 +1107,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_9.setFrameShadow(QFrame.Plain)
|
||||
self.line_9.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_9.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_8.addWidget(self.line_9)
|
||||
|
||||
@@ -1127,7 +1127,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_10.setFrameShadow(QFrame.Plain)
|
||||
self.line_10.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_10.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_8.addWidget(self.line_10)
|
||||
|
||||
@@ -1147,7 +1147,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_22.setFrameShadow(QFrame.Plain)
|
||||
self.line_22.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_22.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_8.addWidget(self.line_22)
|
||||
|
||||
@@ -1164,7 +1164,7 @@ class Ui_Nugget(object):
|
||||
self.addGestaltKeyBtn.setObjectName(u"addGestaltKeyBtn")
|
||||
self.addGestaltKeyBtn.setEnabled(True)
|
||||
icon18 = QIcon()
|
||||
icon18.addFile(u":/icon/plus.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon18.addFile(u":/icon/plus.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.addGestaltKeyBtn.setIcon(icon18)
|
||||
self.addGestaltKeyBtn.setCheckable(False)
|
||||
self.addGestaltKeyBtn.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
@@ -1185,7 +1185,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_23.setFrameShadow(QFrame.Plain)
|
||||
self.line_23.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_23.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_8.addWidget(self.line_23)
|
||||
|
||||
@@ -1271,7 +1271,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_12.setFrameShadow(QFrame.Plain)
|
||||
self.line_12.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_12.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_14.addWidget(self.line_12)
|
||||
|
||||
@@ -1298,7 +1298,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.div.setFrameShadow(QFrame.Plain)
|
||||
self.div.setFrameShape(QFrame.Shape.HLine)
|
||||
self.div.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_13.addWidget(self.div)
|
||||
|
||||
@@ -1377,7 +1377,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_13.setFrameShadow(QFrame.Plain)
|
||||
self.line_13.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_13.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_17.addWidget(self.line_13)
|
||||
|
||||
@@ -1459,7 +1459,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_16.setFrameShadow(QFrame.Plain)
|
||||
self.line_16.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_16.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_36.addWidget(self.line_16)
|
||||
|
||||
@@ -1487,11 +1487,6 @@ class Ui_Nugget(object):
|
||||
|
||||
self.verticalLayout_34.addWidget(self.eligFileChk)
|
||||
|
||||
self.experimentalChk = QCheckBox(self.aiEnablerContent)
|
||||
self.experimentalChk.setObjectName(u"experimentalChk")
|
||||
|
||||
self.verticalLayout_34.addWidget(self.experimentalChk)
|
||||
|
||||
self.languageLbl = QLabel(self.aiEnablerContent)
|
||||
self.languageLbl.setObjectName(u"languageLbl")
|
||||
|
||||
@@ -1508,7 +1503,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_21.setFrameShadow(QFrame.Plain)
|
||||
self.line_21.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_21.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_34.addWidget(self.line_21)
|
||||
|
||||
@@ -1660,7 +1655,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_11.setFrameShadow(QFrame.Plain)
|
||||
self.line_11.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_11.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_10.addWidget(self.line_11)
|
||||
|
||||
@@ -1687,7 +1682,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_6.setFrameShadow(QFrame.Plain)
|
||||
self.line_6.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_6.setFrameShape(QFrame.HLine)
|
||||
|
||||
self._2.addWidget(self.line_6)
|
||||
|
||||
@@ -1786,7 +1781,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_121.setFrameShadow(QFrame.Plain)
|
||||
self.line_121.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_121.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_141.addWidget(self.line_121)
|
||||
|
||||
@@ -1813,7 +1808,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.div1.setFrameShadow(QFrame.Plain)
|
||||
self.div1.setFrameShape(QFrame.Shape.HLine)
|
||||
self.div1.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_131.addWidget(self.div1)
|
||||
|
||||
@@ -1848,7 +1843,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_17.setFrameShadow(QFrame.Plain)
|
||||
self.line_17.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_17.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_131.addWidget(self.line_17)
|
||||
|
||||
@@ -1868,7 +1863,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_18.setFrameShadow(QFrame.Plain)
|
||||
self.line_18.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_18.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_131.addWidget(self.line_18)
|
||||
|
||||
@@ -1893,7 +1888,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_19.setFrameShadow(QFrame.Plain)
|
||||
self.line_19.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_19.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_131.addWidget(self.line_19)
|
||||
|
||||
@@ -1978,7 +1973,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_5.setFrameShadow(QFrame.Plain)
|
||||
self.line_5.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_5.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_24.addWidget(self.line_5)
|
||||
|
||||
@@ -2004,7 +1999,7 @@ class Ui_Nugget(object):
|
||||
self.chooseGestaltBtn = QToolButton(self.verticalWidget2)
|
||||
self.chooseGestaltBtn.setObjectName(u"chooseGestaltBtn")
|
||||
icon19 = QIcon()
|
||||
icon19.addFile(u":/icon/folder.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon19.addFile(u":/icon/folder.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.chooseGestaltBtn.setIcon(icon19)
|
||||
self.chooseGestaltBtn.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
|
||||
@@ -2135,7 +2130,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_111.setFrameShadow(QFrame.Plain)
|
||||
self.line_111.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_111.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_101.addWidget(self.line_111)
|
||||
|
||||
@@ -2166,7 +2161,8 @@ class Ui_Nugget(object):
|
||||
|
||||
self.supervisionChk = QCheckBox(self.settingsPageContent)
|
||||
self.supervisionChk.setObjectName(u"supervisionChk")
|
||||
self.supervisionChk.setChecked(True)
|
||||
self.supervisionChk.setEnabled(True)
|
||||
self.supervisionChk.setChecked(False)
|
||||
|
||||
self._21.addWidget(self.supervisionChk)
|
||||
|
||||
@@ -2190,7 +2186,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_20.setFrameShadow(QFrame.Plain)
|
||||
self.line_20.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_20.setFrameShape(QFrame.HLine)
|
||||
|
||||
self._21.addWidget(self.line_20)
|
||||
|
||||
@@ -2276,7 +2272,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_2.setFrameShadow(QFrame.Plain)
|
||||
self.line_2.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_2.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_28.addWidget(self.line_2)
|
||||
|
||||
@@ -2377,7 +2373,7 @@ class Ui_Nugget(object):
|
||||
" border-radius: 0px;\n"
|
||||
"}")
|
||||
icon20 = QIcon()
|
||||
icon20.addFile(u":/icon/pencil.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon20.addFile(u":/icon/pencil.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.toolButton_12.setIcon(icon20)
|
||||
self.toolButton_12.setIconSize(QSize(25, 25))
|
||||
|
||||
@@ -2416,7 +2412,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_14.setFrameShadow(QFrame.Plain)
|
||||
self.line_14.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_14.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_20.addWidget(self.line_14)
|
||||
|
||||
@@ -2440,7 +2436,7 @@ class Ui_Nugget(object):
|
||||
self.importOperationBtn.setObjectName(u"importOperationBtn")
|
||||
self.importOperationBtn.setEnabled(True)
|
||||
icon21 = QIcon()
|
||||
icon21.addFile(u":/icon/import.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon21.addFile(u":/icon/import.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.importOperationBtn.setIcon(icon21)
|
||||
self.importOperationBtn.setIconSize(QSize(20, 20))
|
||||
self.importOperationBtn.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
@@ -2537,7 +2533,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_3.setFrameShadow(QFrame.Plain)
|
||||
self.line_3.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_3.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_31.addWidget(self.line_3)
|
||||
|
||||
@@ -2617,7 +2613,7 @@ class Ui_Nugget(object):
|
||||
self.importThemeZipBtn = QToolButton(self.horizontalWidget7)
|
||||
self.importThemeZipBtn.setObjectName(u"importThemeZipBtn")
|
||||
icon22 = QIcon()
|
||||
icon22.addFile(u":/icon/file-earmark-zip.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
||||
icon22.addFile(u":/icon/file-earmark-zip.svg", QSize(), QIcon.Normal, QIcon.Off)
|
||||
self.importThemeZipBtn.setIcon(icon22)
|
||||
|
||||
self.horizontalLayout_26.addWidget(self.importThemeZipBtn)
|
||||
@@ -2634,7 +2630,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_15.setFrameShadow(QFrame.Plain)
|
||||
self.line_15.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line_15.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_23.addWidget(self.line_15)
|
||||
|
||||
@@ -2655,7 +2651,7 @@ class Ui_Nugget(object):
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line.setFrameShadow(QFrame.Plain)
|
||||
self.line.setFrameShape(QFrame.Shape.HLine)
|
||||
self.line.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_22.addWidget(self.line)
|
||||
|
||||
@@ -2730,30 +2726,30 @@ class Ui_Nugget(object):
|
||||
|
||||
def retranslateUi(self, Nugget):
|
||||
Nugget.setWindowTitle(QCoreApplication.translate("Nugget", u"Nugget", None))
|
||||
self.centralwidget.setProperty(u"cls", QCoreApplication.translate("Nugget", u"central", None))
|
||||
self.centralwidget.setProperty("cls", QCoreApplication.translate("Nugget", u"central", None))
|
||||
self.devicePicker.setPlaceholderText(QCoreApplication.translate("Nugget", u"None", None))
|
||||
self.refreshBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"btn", None))
|
||||
self.refreshBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"btn", None))
|
||||
self.titleBar.setText(QCoreApplication.translate("Nugget", u"Nugget", None))
|
||||
self.homePageBtn.setText(QCoreApplication.translate("Nugget", u" Home", None))
|
||||
self.homePageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.homePageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.explorePageBtn.setText(QCoreApplication.translate("Nugget", u" Explore", None))
|
||||
self.explorePageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.explorePageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.locSimPageBtn.setText(QCoreApplication.translate("Nugget", u" Location Simulation", None))
|
||||
self.locSimPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.locSimPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.gestaltPageBtn.setText(QCoreApplication.translate("Nugget", u" Mobile Gestalt", None))
|
||||
self.gestaltPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.gestaltPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.featureFlagsPageBtn.setText(QCoreApplication.translate("Nugget", u" Feature Flags", None))
|
||||
self.featureFlagsPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.featureFlagsPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.euEnablerPageBtn.setText(QCoreApplication.translate("Nugget", u" Eligibility", None))
|
||||
self.euEnablerPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.euEnablerPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.springboardOptionsPageBtn.setText(QCoreApplication.translate("Nugget", u" Springboard Options", None))
|
||||
self.springboardOptionsPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.springboardOptionsPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.internalOptionsPageBtn.setText(QCoreApplication.translate("Nugget", u" Internal Options", None))
|
||||
self.internalOptionsPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.internalOptionsPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.applyPageBtn.setText(QCoreApplication.translate("Nugget", u" Apply", None))
|
||||
self.applyPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.applyPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.settingsPageBtn.setText(QCoreApplication.translate("Nugget", u" Settings", None))
|
||||
self.settingsPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.settingsPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||
self.phoneNameLbl.setText(QCoreApplication.translate("Nugget", u"Phone", None))
|
||||
self.phoneVersionLbl.setText(QCoreApplication.translate("Nugget", u"<a style=\"text-decoration:none; color: white\" href=\"#\">Version</a>", None))
|
||||
self.bigNuggetBtn.setText(QCoreApplication.translate("Nugget", u"...", None))
|
||||
@@ -2775,7 +2771,7 @@ class Ui_Nugget(object):
|
||||
self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None))
|
||||
self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None))
|
||||
self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None))
|
||||
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.0.1", None))
|
||||
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.1 (beta 1)", None))
|
||||
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
|
||||
self.mgaWarningLbl.setText(QCoreApplication.translate("Nugget", u"! You will need a MobileGestalt file for this feature. Please select it in the Apply page !", None))
|
||||
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
|
||||
@@ -2826,8 +2822,7 @@ class Ui_Nugget(object):
|
||||
self.regionCodeTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Region Code (Default: US)", None))
|
||||
self.mgaWarningLbl2.setText(QCoreApplication.translate("Nugget", u"! You will need a MobileGestalt file for this feature. Please select it in the Apply page !", None))
|
||||
self.enableAIChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Intelligence (for Unsupported Devices)", None))
|
||||
self.eligFileChk.setText(QCoreApplication.translate("Nugget", u"Enable Eligibility File (test)", None))
|
||||
self.experimentalChk.setText(QCoreApplication.translate("Nugget", u"Experimental Toggle", None))
|
||||
self.eligFileChk.setText(QCoreApplication.translate("Nugget", u"Enable Eligibility File", None))
|
||||
self.languageLbl.setText(QCoreApplication.translate("Nugget", u"Language Code (not needed for English)", None))
|
||||
self.languageTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Language Code (i.e. en)", None))
|
||||
self.aiInfoLabel.setText(QCoreApplication.translate("Nugget", u"In order to download the AI models, you must spoof your device model. However, this may break \n"
|
||||
|
||||
Reference in New Issue
Block a user