Skip to content

Commit dd72ab2

Browse files
committed
update style
1 parent 7a19b41 commit dd72ab2

File tree

17 files changed

+705
-26
lines changed

17 files changed

+705
-26
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
eclipse.preferences.version=1
22
encoding//Resources/Data/Projects/PyQt/Demo/FacePoints.py=utf-8
3+
encoding//Test/BaseApplyStyle.py=utf-8
34
encoding//Test/CustomCursor.py=utf-8
45
encoding//Test/GenerateLanguage.py=utf-8
56
encoding//Test/RunCode.py=utf-8

Resources/Markdown/css/app.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ a {
1010
p, li {
1111
font-size: 20px;
1212
}
13+
.table-striped>tbody>tr:nth-child(odd)>td, .table-striped>tbody>tr:nth-child(odd)>th {
14+
background-color: transparent;
15+
}
1316
.container {
1417
width: 90%;
1518
}
@@ -65,7 +68,7 @@ p, li {
6568
.container1 > div, .container2 > div, .container3 > div {
6669
width: 16px;
6770
height: 16px;
68-
background-color: #67CF22;
71+
background-color: white;
6972

7073
border-radius: 100%;
7174
position: absolute;

Resources/Themes/Dark/style.qss

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ ToolTip > QLabel {
316316
border-bottom-left-radius: 4px;
317317
border-bottom-right-radius: 4px;
318318
}
319+
#widgetSkinBg {
320+
background: rgba(255, 255, 255, 255); /*背景颜色*/
321+
}
319322
#dialogTitlebar > #labelTitle {
320323
color: white;
321324
}
@@ -349,6 +352,80 @@ ToolTip > QLabel {
349352
min-height: 28px;
350353
border-radius: 4px;
351354
}
355+
356+
/*主题选择tab标签*/
357+
#scrollArea, #scrollAreaWidgetContents {
358+
background: transparent;
359+
}
360+
#tabWidgetSkinMain::pane {
361+
border-top: 1px solid rgba(240, 240, 240, 255);
362+
}
363+
#tabWidgetSkinMain > QTabBar::tab {
364+
color: rgb(140, 140, 140);
365+
font-size: 20px;
366+
min-width: 120px;
367+
min-height: 50px;
368+
background: transparent;
369+
}
370+
#tabWidgetSkinMain > QTabBar::tab:hover {
371+
color: black;
372+
}
373+
#tabWidgetSkinMain > QTabBar::tab:selected {
374+
color: rgb(18, 183, 245);
375+
border-bottom: 2px solid rgb(18, 183, 245);
376+
}
377+
378+
/*主题图片tab标签*/
379+
PictureWidget::pane {
380+
border: none;
381+
}
382+
PictureWidget > QTabBar::tab {
383+
color: rgb(140, 140, 140);
384+
font-size: 18px;
385+
min-width: 100px;
386+
min-height: 46px;
387+
background: transparent;
388+
}
389+
PictureWidget > QTabBar::tab:hover {
390+
color: black;
391+
}
392+
PictureWidget > QTabBar::tab:selected {
393+
color: rgb(18, 183, 245);
394+
}
395+
396+
/*主题透明度调整*/
397+
#sliderOpacity::add-page:horizontal {
398+
background-color: transparent;
399+
}
400+
#sliderOpacity::groove:horizontal {
401+
height: 4px;
402+
background-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgba(19, 183, 245, 255), stop:1 rgba(255, 255, 255, 255));
403+
}
404+
#sliderOpacity::handle:horizontal {
405+
width: 20px;
406+
height: 20px;
407+
margin-top: -9px;
408+
margin-bottom: -9px;
409+
border-radius: 10px;
410+
background-color: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5, stop:0.9 rgba(255, 255, 255, 255), stop:1 rgba(19, 183, 245, 255));
411+
}
412+
413+
/*重置默认主题按钮*/
414+
#buttonRestore {
415+
border: 1px solid rgba(216, 218, 219, 255);
416+
background: rgba(255, 255, 255, 255);
417+
font-size: 18px;
418+
min-height: 36px;
419+
padding: 0px 10px;
420+
border-radius: 4px;
421+
}
422+
#buttonRestore:hover {
423+
background: rgba(239, 239, 240, 255);
424+
}
425+
#buttonRestore:pressed {
426+
background: rgba(225, 226, 227, 255);
427+
}
428+
352429
/*滚动条样式*/
353430
QScrollBar:vertical {
354431
background: transparent;

Resources/Themes/Default/style.qss

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ ToolTip > QLabel {
316316
border-bottom-left-radius: 4px;
317317
border-bottom-right-radius: 4px;
318318
}
319+
#widgetSkinBg {
320+
background: rgba(255, 255, 255, 255); /*背景颜色*/
321+
}
319322
#dialogTitlebar > #labelTitle {
320323
color: white;
321324
}
@@ -349,6 +352,80 @@ ToolTip > QLabel {
349352
min-height: 28px;
350353
border-radius: 4px;
351354
}
355+
356+
/*主题选择tab标签*/
357+
#scrollArea, #scrollAreaWidgetContents {
358+
background: transparent;
359+
}
360+
#tabWidgetSkinMain::pane {
361+
border-top: 1px solid rgba(240, 240, 240, 255);
362+
}
363+
#tabWidgetSkinMain > QTabBar::tab {
364+
color: rgb(140, 140, 140);
365+
font-size: 20px;
366+
min-width: 120px;
367+
min-height: 50px;
368+
background: transparent;
369+
}
370+
#tabWidgetSkinMain > QTabBar::tab:hover {
371+
color: black;
372+
}
373+
#tabWidgetSkinMain > QTabBar::tab:selected {
374+
color: rgb(18, 183, 245);
375+
border-bottom: 2px solid rgb(18, 183, 245);
376+
}
377+
378+
/*主题图片tab标签*/
379+
PictureWidget::pane {
380+
border: none;
381+
}
382+
PictureWidget > QTabBar::tab {
383+
color: rgb(140, 140, 140);
384+
font-size: 18px;
385+
min-width: 100px;
386+
min-height: 46px;
387+
background: transparent;
388+
}
389+
PictureWidget > QTabBar::tab:hover {
390+
color: black;
391+
}
392+
PictureWidget > QTabBar::tab:selected {
393+
color: rgb(18, 183, 245);
394+
}
395+
396+
/*主题透明度调整*/
397+
#sliderOpacity::add-page:horizontal {
398+
background-color: transparent;
399+
}
400+
#sliderOpacity::groove:horizontal {
401+
height: 4px;
402+
background-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgba(19, 183, 245, 255), stop:1 rgba(255, 255, 255, 255));
403+
}
404+
#sliderOpacity::handle:horizontal {
405+
width: 20px;
406+
height: 20px;
407+
margin-top: -9px;
408+
margin-bottom: -9px;
409+
border-radius: 10px;
410+
background-color: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5, stop:0.9 rgba(255, 255, 255, 255), stop:1 rgba(19, 183, 245, 255));
411+
}
412+
413+
/*重置默认主题按钮*/
414+
#buttonRestore {
415+
border: 1px solid rgba(216, 218, 219, 255);
416+
background: rgba(255, 255, 255, 255);
417+
font-size: 18px;
418+
min-height: 36px;
419+
padding: 0px 10px;
420+
border-radius: 4px;
421+
}
422+
#buttonRestore:hover {
423+
background: rgba(239, 239, 240, 255);
424+
}
425+
#buttonRestore:pressed {
426+
background: rgba(225, 226, 227, 255);
427+
}
428+
352429
/*滚动条样式*/
353430
QScrollBar:vertical {
354431
background: transparent;
199 KB
Loading
4.83 KB
Loading
6.26 KB
Loading

Resources/Themes/春节/font.ttf

3.97 KB
Binary file not shown.
400 KB
Loading

0 commit comments

Comments
 (0)