Skip to content

Commit 7e8d957

Browse files
8927689276
authored andcommitted
春节主题
1 parent dd72ab2 commit 7e8d957

File tree

6 files changed

+36
-13
lines changed

6 files changed

+36
-13
lines changed

.settings/org.eclipse.core.resources.prefs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ encoding//Test/CustomCursor.py=utf-8
55
encoding//Test/GenerateLanguage.py=utf-8
66
encoding//Test/RunCode.py=utf-8
77
encoding//Test/SlotsByName.py=utf-8
8+
encoding//Test/TestColorThief.py=utf-8
89
encoding//Test/TestDownProgress.py=utf-8
910
encoding//Test/TestGitTree.py=utf-8
1011
encoding//Test/TestMainwindowStyle.py=utf-8
-144 Bytes
Loading
633 KB
Loading
238 KB
Loading

Resources/Themes/春节/style.qss

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ QLineEdit {
66
/*主窗口*/
77
#widgetMain {
88
border-radius: 4px; /*窗口最外层圆角*/
9-
background: rgba(230, 0, 0, 255); /*背景颜色*/
9+
background: rgba(200, 47, 10, 255); /*背景颜色*/
1010
border-image: url(Resources/Themes/春节/background.jpg); /*背景图片*/
1111
}
1212

@@ -122,7 +122,7 @@ QLineEdit {
122122
max-height: 26px;
123123
border: none;
124124
color: white;
125-
qproperty-bgColor: rgba(230, 0, 0, 255);
125+
qproperty-bgColor: rgba(200, 47, 10, 255);
126126
outline: none;
127127
font-family: "pyqtclient";
128128
qproperty-text: "\5100";
@@ -166,7 +166,7 @@ QLineEdit {
166166
#widgetTools {
167167
min-width: 60px;
168168
max-width: 60px;
169-
background-color: rgba(142, 11, 15, 100);
169+
background-color: rgba(200, 47, 10, 100);
170170
}
171171
/*工具栏中的按钮*/
172172
#buttonGithub, #buttonQQ, #buttonGroup {
@@ -180,7 +180,7 @@ QLineEdit {
180180
outline: none;
181181
font-family: "pyqtclient";
182182
font-size: 20px;
183-
background: rgba(230, 0, 0, 255);
183+
background: rgba(200, 47, 10, 255);
184184
qproperty-shadowColor: rgba(255, 255, 255, 255);
185185
}
186186

@@ -216,7 +216,7 @@ QLineEdit {
216216
max-height: 36px;
217217
border: none;
218218
color: rgba(255, 255, 255, 255);
219-
qproperty-bgColor: rgba(230, 0, 0, 255);
219+
qproperty-bgColor: rgba(200, 47, 10, 255);
220220
outline: none;
221221
font-family: "pyqtclient";
222222
}
@@ -256,13 +256,13 @@ ToolTip > QLabel {
256256

257257
/*登录窗口*/
258258
#widgetLogin {
259-
border: 1px solid rgba(142, 11, 15, 255);
259+
border: 1px solid rgba(200, 47, 10, 255);
260260
border-radius: 4px; /*窗口最外层圆角*/
261-
background: rgba(142, 11, 15, 210); /*背景颜色*/
261+
background: rgba(200, 47, 10, 240); /*背景颜色*/
262262
}
263263
/*激活状态*/
264264
#widgetLogin[_active="true"] {
265-
border: 1px solid rgba(142, 11, 15, 255);
265+
border: 1px solid rgba(200, 47, 10, 255);
266266
}
267267
/*非激活状态*/
268268
#widgetLogin[_active="false"] {
@@ -307,7 +307,7 @@ ToolTip > QLabel {
307307
#widgetDonate, #widgetUpdate, #widgetError, #widgetSkin {
308308
border: 1px solid rgba(200, 200, 200, 255);
309309
border-radius: 4px; /*窗口最外层圆角*/
310-
background: rgba(230, 0, 0, 255); /*背景颜色*/
310+
background: rgba(200, 47, 10, 255); /*背景颜色*/
311311
}
312312
/*捐赠窗口,更新窗口,错误,主题窗口背景*/
313313
#widgetImage, #widgetUpdateBg, #widgetErrorBg, #widgetSkinBg {
@@ -329,7 +329,7 @@ ToolTip > QLabel {
329329
}
330330
/*更新进度条*/
331331
#progressBarUpdate::chunk {
332-
background-color: rgba(230, 0, 0, 255);
332+
background-color: rgba(200, 47, 10, 255);
333333
}
334334

335335
/*pip按钮*/
@@ -339,13 +339,13 @@ ToolTip > QLabel {
339339
min-height: 36px;
340340
max-height: 36px;
341341
border-radius: 4px;
342-
background: rgba(230, 0, 0, 255); /*背景颜色*/
342+
background: rgba(200, 47, 10, 255); /*背景颜色*/
343343
}
344344
#buttonInstall:hover {
345-
background: rgba(230, 0, 0, 150);
345+
background: rgba(200, 47, 10, 150);
346346
}
347347
#buttonInstall:pressed {
348-
background: rgba(230, 0, 0, 200);
348+
background: rgba(200, 47, 10, 200);
349349
}
350350
/*pip输入框*/
351351
#lineEditPip {

Test/TestColorThief.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
from Utils.ColorThief import ColorThief
4+
5+
6+
# Created on 2019年1月29日
7+
# author: Irony
8+
# site: https://github.com/892768447
9+
# email: 892768447@qq.com
10+
# file: Test.TestColorThief
11+
# description:
12+
__Author__ = """By: Irony
13+
QQ: 892768447
14+
Email: 892768447@qq.com"""
15+
__Copyright__ = 'Copyright (c) 2019 Irony'
16+
__Version__ = 1.0
17+
18+
# 获取图片主色调
19+
color_thief = ColorThief(r'C:\Users\89276\Desktop\春节.jpg')
20+
color = color_thief.get_color()
21+
22+
print(color)

0 commit comments

Comments
 (0)