1 Star 0 Fork 0

iounce/PySideJSON

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
icon.py 2.73 KB
一键复制 编辑 原始数据 按行查看 历史
iounce 提交于 2024-08-04 15:47 . PySideJSON--a tool for JSON
# -*- coding: utf-8 -*-
import qtawesome as qta
from PySide6.QtCore import QSize
# generate icons from qtawesome library
class LogoIcon:
@staticmethod
def get_icon():
return qta.icon("mdi.json", color="#2962ff")
@staticmethod
def get_pixmap(size=QSize(24, 24)):
return LogoIcon.get_icon().pixmap(size)
@staticmethod
def get_logo(size):
return qta.icon("mdi.json").pixmap(size)
class MenuIcon:
@staticmethod
def get_close():
return qta.icon("mdi.close")
@staticmethod
def get_min():
return qta.icon("mdi.minus")
@staticmethod
def get_max():
return qta.icon("mdi.window-maximize")
@staticmethod
def get_restore():
return qta.icon("mdi.window-restore")
@staticmethod
def get_more():
return qta.icon("ri.more-2-fill")
@staticmethod
def get_theme():
return qta.icon("msc.symbol-color")
@staticmethod
def get_language():
return qta.icon("ri.global-line")
@staticmethod
def get_chinese():
return qta.icon("ri.emphasis-cn")
@staticmethod
def get_english():
return qta.icon("ri.emphasis")
@staticmethod
def get_feedback():
return qta.icon("ri.feedback-line")
@staticmethod
def get_about():
return qta.icon("mdi6.information-outline")
@staticmethod
def get_pdf2word():
return qta.icon("ri.file-word-fill", color="#3949ab")
@staticmethod
def get_word2pdf():
return qta.icon("ri.file-word-2-fill", color="#3949ab")
@staticmethod
def get_excel2pdf():
return qta.icon("ri.file-excel-2-fill", color="#3949ab")
@staticmethod
def get_ppt2pdf():
return qta.icon("ri.file-ppt-2-fill", color="#3949ab")
@staticmethod
def get_pdf_split():
return qta.icon("mdi.call-split", color="#3949ab")
@staticmethod
def get_pdf_merge():
return qta.icon("mdi.call-merge", color="#3949ab")
class LabelIcon:
@staticmethod
def get_pdf(size):
return qta.icon("mdi.file-pdf").pixmap(size)
@staticmethod
def get_word(size):
return qta.icon("mdi.file-word").pixmap(size)
@staticmethod
def get_excel(size):
return qta.icon("mdi.file-excel").pixmap(size)
@staticmethod
def get_ppt(size):
return qta.icon("mdi.file-powerpoint").pixmap(size)
@staticmethod
def get_file(size):
return qta.icon("mdi.file").pixmap(size)
@staticmethod
def get_folder(size):
return qta.icon("mdi.folder-open-outline").pixmap(size)
@staticmethod
def get_close(size):
return qta.icon("mdi.close").pixmap(size)
@staticmethod
def get_add(size):
return qta.icon("ri.add-fill").pixmap(size)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/iounce_admin/PySideJSON.git
[email protected]:iounce_admin/PySideJSON.git
iounce_admin
PySideJSON
PySideJSON
master

搜索帮助