Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zheng Yile
codiaclient
Commits
e320a876
Commit
e320a876
authored
Jun 22, 2021
by
Zheng Yile
Browse files
Modify codiaclientgui/utils.py
parent
5cc38ed7
Changes
1
Hide whitespace changes
Inline
Side-by-side
codiaclientgui/utils.py
View file @
e320a876
...
...
@@ -11,10 +11,15 @@ Palette = {
"gray"
:
QPalette
(),
}
import
sys
if
sys
.
platform
==
'win32'
:
Font
[
'main'
].
setFamily
(
"Microsoft YaHei"
)
elif
sys
.
platform
==
'darwin'
:
Font
[
'main'
].
setFamily
(
"SimSun"
)
else
:
Font
[
'main'
].
setFamily
(
"SimSun"
)
Font
[
'main'
].
setPointSize
(
10
)
if
sys
.
platform
==
'win32'
:
Font
[
'main'
].
setFamily
(
"Microsoft YaHei"
)
Font
[
'main'
].
setPointSize
(
10
)
elif
sys
.
platform
==
'darwin'
:
Font
[
'main'
].
setFamily
(
"Microsoft YaHei"
)
Font
[
'main'
].
setPointSize
(
13
)
else
:
Font
[
'main'
].
setFamily
(
"SimSun"
)
Font
[
'main'
].
setPointSize
(
13
)
greenBrush
=
QBrush
(
QColor
(
80
,
160
,
30
))
greenBrush
.
setStyle
(
Qt
.
SolidPattern
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment