Skip to content

Commit 60aa40a

Browse files
committed
添加自定义组件库字体的功能
1 parent 95a9217 commit 60aa40a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1885
-2193
lines changed

qfluentwidgets/_rc/qss/dark/button.qss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PushButton, ToolButton, ToggleButton, ToggleToolButton {
44
border-top: 1px solid rgba(255, 255, 255, 0.08);
55
border-radius: 5px;
66
color: white;
7-
/* font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC'; */
7+
/* font: 14px --FontFamilies; */
88
padding: 5px 12px 6px 12px;
99
outline: none;
1010
}
@@ -128,7 +128,7 @@ PrimarySplitDropButton {
128128
}
129129

130130
HyperlinkButton {
131-
/* font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC'; */
131+
/* font: 14px --FontFamilies; */
132132
padding: 5px 12px 6px 12px;
133133
color: --ThemeColorPrimary;
134134
border: none;
@@ -166,7 +166,7 @@ RadioButton {
166166
min-height: 24px;
167167
max-height: 24px;
168168
background-color: transparent;
169-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
169+
font: 14px --FontFamilies;
170170
color: white;
171171
}
172172

qfluentwidgets/_rc/qss/dark/calendar_picker.qss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#titleButton {
2-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
2+
font: 14px --FontFamilies;
33
font-weight: 500;
44
color: white;
55
background-color: transparent;
@@ -23,7 +23,7 @@
2323
}
2424

2525
#weekDayLabel {
26-
font: 12px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
26+
font: 12px --FontFamilies;
2727
font-weight: 500;
2828
color: white;
2929
background-color: transparent;
@@ -56,7 +56,7 @@ CalendarPicker {
5656
border-top: 1px solid rgba(255, 255, 255, 0.08);
5757
border-radius: 5px;
5858
color: rgba(255, 255, 255, 0.6063);
59-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
59+
font: 14px --FontFamilies;
6060
padding: 5px 32px 6px 12px;
6161
outline: none;
6262
text-align: left;

qfluentwidgets/_rc/qss/dark/check_box.qss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CheckBox {
22
color: white;
3-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
3+
/* font: 14px --FontFamilies; */
44
spacing: 8px;
55
min-width: 28px;
66
min-height: 22px;

qfluentwidgets/_rc/qss/dark/color_dialog.qss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ QScrollArea {
2727
}
2828

2929
QLabel {
30-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
30+
font: 14px --FontFamilies;
3131
color: white;
3232
background-color: transparent;
3333
border: none;
@@ -92,7 +92,7 @@ QSlider::handle:horizontal:disabled {
9292
border-top: 1px solid rgb(53, 53, 53);
9393
border-radius: 5px;
9494
color: white;
95-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
95+
font: 14px --FontFamilies;
9696
padding: 5px 9px 6px 9px;
9797
outline: none;
9898
}

qfluentwidgets/_rc/qss/dark/combo_box.qss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ComboBox, ModelComboBox {
33
border-radius: 5px;
44
border-top: 1px solid rgba(255, 255, 255, 0.08);
55
padding: 5px 31px 6px 11px;
6-
/* font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC'; */
6+
/* font: 14px --FontFamilies; */
77
color: white;
88
background-color: rgba(255, 255, 255, 0.0605);
99
text-align: left;

qfluentwidgets/_rc/qss/dark/dialog.qss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ QLabel {
2929
}
3030

3131
QLabel#titleLabel {
32-
font: 20px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
32+
font: 20px --FontFamilies;
3333
padding: 0;
3434
}
3535

3636
#contentLabel {
3737
padding: 0;
38-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
38+
font: 14px --FontFamilies;
3939
border: none;
4040
selection-background-color: --ThemeColorPrimary;
4141
selection-color: black;
4242
}
4343

4444
QLabel#windowTitleLabel {
45-
font: 12px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
45+
font: 12px --FontFamilies;
4646
padding: 6px 6px;
4747
background-color: rgb(32, 32, 32);
4848
}
@@ -53,7 +53,7 @@ QLabel#windowTitleLabel {
5353
border-top: 1px solid rgb(53, 53, 53);
5454
border-radius: 5px;
5555
color: white;
56-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
56+
font: 14px --FontFamilies;
5757
padding: 5px 9px 6px 9px;
5858
outline: none;
5959
}

qfluentwidgets/_rc/qss/dark/expand_setting_card.qss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ ExpandSettingCard {
1818

1919

2020
QLabel#titleLabel {
21-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
21+
font: 14px --FontFamilies;
2222
color: white;
2323
padding: 0;
2424
background: transparent;
2525
border: none;
2626
}
2727

2828
QLabel#contentLabel {
29-
font: 11px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
29+
font: 11px --FontFamilies;
3030
color: rgb(208, 208, 208);
3131
padding: 0;
3232
background: transparent;
@@ -39,7 +39,7 @@ QLabel#contentLabel:disabled {
3939
}
4040

4141
FolderItem>QLabel {
42-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
42+
font: 14px --FontFamilies;
4343
}
4444

4545

@@ -49,7 +49,7 @@ QPushButton {
4949
border-top: 1px solid rgba(255, 255, 255, 0.08);
5050
border-radius: 5px;
5151
padding: 5px 36px 5px 36px;
52-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
52+
font: 14px --FontFamilies;
5353
color: white;
5454
outline: none;
5555
}

qfluentwidgets/_rc/qss/dark/fluent_window.qss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ StackedWidget[isTransparent=true] {
1010
FluentTitleBar>QLabel#titleLabel,
1111
SplitTitleBar>QLabel#titleLabel {
1212
background: transparent;
13-
font: 13px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
13+
font: 13px --FontFamilies;
1414
padding: 0 4px;
1515
color: white;
1616
}

qfluentwidgets/_rc/qss/dark/folder_list_dialog.qss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ QLabel {
1515
}
1616

1717
QLabel#titleLabel {
18-
font: 25px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
18+
font: 25px --FontFamilies;
1919
}
2020

2121
QLabel#contentLabel {
22-
font: 18px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
22+
font: 18px --FontFamilies;
2323
}
2424

2525
QPushButton#completeButton {
2626
background-color: rgb(51, 51, 51);
2727
padding: 11px 64px 11px 64px;
28-
font: 19px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
28+
font: 19px --FontFamilies;
2929
border: none;
3030
height: 20px;
3131
width: 55px;

qfluentwidgets/_rc/qss/dark/info_bar.qss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ InfoBar {
55
}
66

77
#titleLabel {
8-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
8+
font: 14px --FontFamilies;
99
font-weight: bold;
1010
color: white;
1111
background-color: transparent;
1212
}
1313

1414
#contentLabel {
15-
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
15+
font: 14px --FontFamilies;
1616
color: white;
1717
background-color: transparent;
1818
}

0 commit comments

Comments
 (0)