text
stringlengths 1
93.6k
|
|---|
self.button_fix_position.toggled.connect(
|
lambda b: SiGlobal.todo_list.settings_parser.modify("FIXED_POSITION", b))
|
self.button_fix_position.setChecked(SiGlobal.todo_list.settings_parser.options["FIXED_POSITION"])
|
self.fix_position.addWidget(self.button_fix_position)
|
self.fix_position.addPlaceholder(16)
|
# 第三方资源
|
self.third_party_res = SingleSettingOption(self)
|
self.third_party_res.setTitle("第三方资源", "本项目使用了 FlatIcon 提供的图标")
|
self.button_to_flaticon = SiSimpleButton(self)
|
self.button_to_flaticon.setFixedHeight(32)
|
self.button_to_flaticon.attachment().setText("前往 FlatIcon")
|
self.button_to_flaticon.clicked.connect(lambda: os.system("start https://flaticon.com/"))
|
self.button_to_flaticon.adjustSize()
|
self.third_party_res.addWidget(self.button_to_flaticon)
|
self.third_party_res.addPlaceholder(16)
|
# 许可
|
self.license = SingleSettingOption(self)
|
self.license.setTitle("开源许可证", "本项目采用 GNU General Public License v3.0")
|
self.button_license = SiSimpleButton(self)
|
self.button_license.setFixedHeight(32)
|
self.button_license.attachment().setText("在 Github 上查看")
|
self.button_license.clicked.connect(
|
lambda: os.system("start https://github.com/ChinaIceF/My-TODOs/blob/main/LICENSE"))
|
self.button_license.adjustSize()
|
self.license.addWidget(self.button_license)
|
self.license.addPlaceholder(16)
|
# 关于
|
self.about = SingleSettingOption(self)
|
self.about.setTitle("关于此软件", "制作者 霏泠Ice 保留所有权利")
|
about_button_set = SiDenseHContainer(self)
|
about_button_set.setFixedHeight(32)
|
self.button_github = SiSimpleButton(self)
|
self.button_github.setFixedHeight(32)
|
self.button_github.attachment().setText("Github 主页")
|
self.button_github.clicked.connect(lambda: os.system("start https://github.com/ChinaIceF"))
|
self.button_github.adjustSize()
|
self.button_bilibili = SiSimpleButton(self)
|
self.button_bilibili.setFixedHeight(32)
|
self.button_bilibili.attachment().setText("哔哩哔哩 主页")
|
self.button_bilibili.clicked.connect(lambda: os.system("start https://space.bilibili.com/390832893"))
|
self.button_bilibili.adjustSize()
|
about_button_set.addWidget(self.button_github)
|
about_button_set.addWidget(self.button_bilibili)
|
self.about.addWidget(about_button_set)
|
self.about.addPlaceholder(16)
|
# 赞助
|
self.donation = SingleSettingOption(self)
|
self.donation.setTitle("赞助作者", "为爱发电,您的支持是我最大的动力")
|
self.button_donation = SiSimpleButton(self)
|
self.button_donation.setFixedHeight(32)
|
self.button_donation.attachment().setText("在 Github 上扫码赞助")
|
self.button_donation.clicked.connect(lambda: os.system("start https://github.com/ChinaIceF/My-TODOs?tab=readme-ov-file#%E8%B5%9E%E5%8A%A9"))
|
self.button_donation.adjustSize()
|
self.donation.addWidget(self.button_donation)
|
self.donation.addPlaceholder(16)
|
# SiliconUI
|
self.silicon_ui = SiDenseVContainer(self)
|
self.silicon_ui.setAlignCenter(True)
|
self.button_silicon_ui = SiSimpleButton(self)
|
self.button_silicon_ui.attachment().setFont(SiGlobal.siui.fonts["S_NORMAL"])
|
self.button_silicon_ui.attachment().setText("基于 PyQt-SiliconUI 编写")
|
self.button_silicon_ui.adjustSize()
|
self.button_silicon_ui.clicked.connect(lambda: os.system("start https://github.com/ChinaIceF/PyQt-SiliconUI"))
|
self.silicon_ui.addWidget(self.button_silicon_ui)
|
# 添加到body
|
self.body().setAdjustWidgetsSize(True)
|
self.body().addWidget(self.use_dark_mode)
|
self.body().addWidget(self.fix_position)
|
self.body().addWidget(self.third_party_res)
|
self.body().addWidget(self.license)
|
self.body().addWidget(self.about)
|
self.body().addWidget(self.donation)
|
self.body().addWidget(self.silicon_ui)
|
self.body().addPlaceholder(16)
|
def reloadStyleSheet(self):
|
self.setThemeColor(SiGlobal.siui.colors["PANEL_THEME"])
|
super().reloadStyleSheet()
|
self.button_to_flaticon.setColor(SiGlobal.siui.colors["SIMPLE_BUTTON_BG"])
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.