代码拉取完成,页面将自动刷新
同步操作将从 DoraBear/QFramer 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- coding: utf-8 -*-
# /****************************************************************************
# **
# ** Copyright (C) 2014 dragondjf
# **
# ** QFramer is a frame based on Qt5.3, you will be more efficient with it.
# ** As an Qter,Qt give us a nice coding experience. With user interactive experience(UE)
# ** become more and more important in modern software, deveployers should consider business and UE.
# ** So, QFramer is born. QFramer's goal is to be a mature solution
# ** which you only need to be focus on your business but UE for all Qters.
# **
# ** Version : 0.2.2.0
# ** Author : dragondjf
# ** Website : https://github.com/dragondjf
# ** Project : https://github.com/dragondjf/QCFramer
# ** Blog : http://my.oschina.net/dragondjf/home/?ft=atme
# ** Wiki : https://github.com/dragondjf/QCFramer/wiki
# ** Lincence: LGPL V2
# ** QQ: 465398889
# ** Email: dragondjf@gmail.com, ding465398889@163.com, 465398889@qq.com
# **
# ****************************************************************************/
import os
import sys
import copy
qssFolder = os.sep.join([os.getcwd(), 'skin', 'qss'])
qssTemplatePath = os.sep.join([qssFolder, 'template.qss'])
theme_green = {
'main_background_color': "qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(11, 158, 12, 255), stop:0.5 rgba(150, 220, 120, 255), stop:1 rgba(11, 158, 12, 255))", # 主窗体背景颜色
'main_background_image': "none",
'nav_background_color': "qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(11, 158, 12, 255), stop:1 rgba(150, 220, 120, 255))", # 导航条背景颜色
'main_hover_color': "qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(11, 158, 12, 255), stop:0.5 rgba(150, 220, 120, 255), stop:1 rgba(11, 158, 12, 255))", # 导航条hover背景颜色
'main_select_color': "rgba(11, 158, 12, 255)", # 导航条select背景颜色
'statusBar_background_color': "qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(11, 158, 12, 255), stop:0.5 rgba(150, 220, 120, 255), stop:1 rgba(11, 158, 12, 255))",
'border_separator': "0px solid rgb(0, 206, 161)", # 分割线背景
'Ftitle_color': 'white', # 标题title字体颜色
'Menu_border_left': "5px solid rgb(255, 127, 39)", # 菜单左边界
'AntimationLine_background-color': 'green', # 页面切换时动画进度条的背景颜色
'Label_color': "white", # label字体颜色
'PushButton_color': "white", # 按钮字体颜色
'PushButton_background_color': "rgb(88, 197, 1)", #按钮背景颜色
'PushButton_Pressed_background_color': "rgb(76, 148, 31)",
'PushButton_border_left': "5px solid rgb(255, 127, 39)", #按钮左边界颜色
'PushButton_border_bottom': "0px solid rgb(255, 127, 39)", #按钮下边界颜色
'Combox_background_color': "rgb(0, 0, 64)", #combox背景颜色
'ScrollBar_background_color': "white", #滚动条背景颜色
'ScrollBar_handle_color': "lightgray", #滚动条滚动颜色
'HeadView_background_color': "rgb(21, 206, 109)", # headview背景颜色
'TableTree_background_color': "rgb(88, 197, 1)" # tabtree背景颜色
}
theme_blue = {
'main_background_color': "rgb(51, 79, 91)", # 主窗体背景颜色
'main_background_image': "none",
'nav_background_color': "rgb(43, 152, 188)", # 导航条背景颜色
'main_hover_color': "rgb(27, 118, 150)", # 导航条hover背景颜色
'main_select_color': "rgb(34, 125, 155)", # 导航条select背景颜色
'border_separator': "1px solid rgb(34, 125, 155)", # 分割线背景
'Ftitle_color': 'white', # 标题title字体颜色
'Menu_border_left': "5px solid rgb(255, 127, 39)", # 菜单左边界
'AntimationLine_background-color': 'rgb(255, 127, 39)', # 页面切换时动画进度条的背景颜色
'Label_color': "rgb(53, 153, 135)", # label字体颜色
'PushButton_color': "white", # 按钮字体颜色
'PushButton_background_color': "rgb(43, 65, 77)", #按钮背景颜色
'PushButton_Pressed_background_color': "rgb(50, 77, 92)",
'PushButton_border_left': "5px solid rgb(255, 127, 39)", #按钮左边界颜色
'PushButton_border_bottom': "0px solid rgb(255, 127, 39)", #按钮下边界颜色
'Combox_background_color': "rgb(0, 0, 64)", #combox背景颜色
'ScrollBar_background_color': "white", #滚动条背景颜色
'ScrollBar_handle_color': "rgb(70, 97, 102)", #滚动条滚动颜色
'HeadView_background_color': "rgb(34, 125, 155)", # headview背景颜色
'TableTree_background_color': "rgb(27, 118, 150)" # tabtree背景颜色
}
theme_gradient= {
'main_background_color': "qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(0, 82, 112, 255), stop:0.5 rgba(0, 211, 197, 255), stop:1 rgba(0, 82, 112, 255))", # 主窗体背景颜色
'main_background_image': "none",
'nav_background_color': "qlineargradient(spread:pad, x1:-1, y1:0, x2:1 y2:0, stop:0 rgba(0, 211, 197, 255), stop:1 rgba(0, 82, 112, 255))", # 导航条背景颜色
'main_hover_color': "qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 82, 112, 255), stop:0.5 rgba(0, 211, 197, 255), stop:1 rgba(0, 82, 112, 255))", # 导航条hover背景颜色
'main_select_color': "rgb(0, 82, 112)", # 导航条select背景颜色
'statusBar_background_color': "qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 82, 112, 255), stop:0.5 rgba(0, 211, 197, 255), stop:1 rgba(0, 82, 112, 255))",
'border_separator': "1px solid rgb(0, 82, 112)", # 分割线背景
'Ftitle_color': 'white', # 标题title字体颜色
'Menu_border_left': "5px solid rgba(0, 211, 197, 255)", # 菜单左边界
'AntimationLine_background-color': 'rgba(0, 211, 197, 255)', # 页面切换时动画进度条的背景颜色
'Label_color': "white", # label字体颜色
'PushButton_color': "white", # 按钮字体颜色
'PushButton_background_color': "rgb(43, 65, 77)", #按钮背景颜色
'PushButton_Pressed_background_color': "rgb(50, 77, 92)",
'PushButton_border_left': "5px solid rgba(0, 211, 197, 255)", #按钮左边界颜色
'PushButton_border_bottom': "0px solid rgb(255, 127, 39)", #按钮下边界颜色
'Combox_background_color': "rgb(0, 0, 64)", #combox背景颜色
'ScrollBar_background_color': "white", #滚动条背景颜色
'ScrollBar_handle_color': "rgb(70, 97, 102)", #滚动条滚动颜色
'HeadView_background_color': "rgb(0, 82, 112)", # headview背景颜色
'TableTree_background_color': "rgb(27, 118, 150)" # tabtree背景颜色
}
theme = theme_green
if __name__ == '__main__':
if len(sys.argv) >= 2:
newQssFileName = sys.argv[1]
else:
newQssFileName = "test.qss"
qssOutFileName = os.sep.join([qssFolder, newQssFileName])
with open(qssTemplatePath) as f:
qssContent = f.read()
for key, value in theme.items():
qssContent = qssContent.replace(key, value)
with open(qssOutFileName, 'w') as f:
f.write(qssContent)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。