You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# PyQtDarkTheme
2
2
3
-
PyQtDarkTheme applies a flat dark theme to QtWidgets application(PySide and PyQt). There's a light theme too. Color and style balanced from a dark theme for easy viewing in daylight.
3
+
PyQtDarkTheme applies a flat dark theme to QtWidgets application. There's a light theme too. Color balanced from the dark theme for easy viewing in daylight.
4
4
5
5
Check out the [complete documentation](https://pyqtdarktheme.readthedocs.io).
6
6
@@ -20,7 +20,6 @@ Check out the [complete documentation](https://pyqtdarktheme.readthedocs.io).
20
20
21
21
- A flat dark and light theme
22
22
- Support PySide and PyQt
23
-
- Support PyInstaller
24
23
- Sync with OS's theme and accent (Mac, Windows, Linux)
25
24
- Resolve the style differences between Qt versions
26
25
- Provide dark/light theme QPalette
@@ -85,7 +84,7 @@ Further information can be found in our docs:
85
84
### Enable HiDPI
86
85
87
86
```Python
88
-
# enable_hi_dpi() must be called before instantiation of QApplication.
87
+
# enable_hi_dpi() must be called before the instantiation of QApplication.
89
88
qdarktheme.enable_hi_dpi()
90
89
app = QApplication(sys.argv)
91
90
qdarktheme.setup_theme()
@@ -112,14 +111,14 @@ On macOS, qdarktheme also syncs with accent colors.
Copy file name to clipboardExpand all lines: style/README.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Styles
2
2
3
-
This folder contains style data of PyQtDarkTheme. If you have a better idea for this style, edit this folder and create PR.
3
+
This folder contains the style data of PyQtDarkTheme. If you have a better idea for this style, edit this folder and create PR.
4
4
5
5
## How to build style to qdarktheme module
6
6
@@ -10,21 +10,21 @@ You need to run the following command to add the style changes to qdarktheme.
10
10
python -m tools.build_styles
11
11
```
12
12
13
-
If you are using VSCode, you can build style and run example app at the same time by running a `Check style` task.
13
+
When using VSCode, you can build the style resource and show the widget gallery together by running a "Check style" task.
14
14
15
-
Even if you forget to add the style changes, a pre-commit or GitHub actions will automatically build and add them.
15
+
Even if you forget to add the style changes, pre-commit or GitHub actions will automatically build and add them.
16
16
17
17
## Colors
18
18
19
19
Currently, the supporting color format is only hexadecimal notations: #RGB, #RGBA, #RRGGBB, and #RRGGBBAA.
20
20
21
21
## Theme colors
22
22
23
-
Default color maps for dark/light theme is in `colors/themes/{theme_name}.json`.
23
+
Default color maps for dark/light theme are in `colors/themes/{theme_name}.json`.
24
24
25
25
Colors that depend on specific colors like `background>textarea` adjust darkness, lightness and transparency.
26
26
27
-
If you think it's best to use additional theme color id for more highly customizable, you need to edit `colors/themes/{theme_name}.json` and `colors/themes/validate.json` to add color id for specific widgets or components.
27
+
If you think it's best to use additional theme colors id for more highly customizable, you need to edit `colors/themes/{theme_name}.json` and `colors/themes/validate.json` to add color id for specific widgets or components.
28
28
29
29
## Accent colors
30
30
@@ -36,22 +36,22 @@ MacOS features accent colors. qdarktheme can detect these accent colors and set
36
36
37
37
## Icon
38
38
39
-
Currently PyQtDarkTheme uses only svg icons for styling. Svg resources is in `svg/`. Most of the icons use Google [Material Design Icons](https://github.com/google/material-design-icons).
39
+
Currently, PyQtDarkTheme uses only SVG for styling. All SVG icons are in `svg/`. Most of the icons use Google [Material Design Icons](https://github.com/google/material-design-icons).
40
40
41
41
### Material Design Icons
42
42
43
-
This svg icon is automatically downloaded from [material-icons](https://github.com/marella/material-icons), saved in `svg/material` and always kept up-to-date by GitHub actions. You don't need to download icons manually.
44
-
If you want to add new svg of material design icons to this style, add the icon name and style to the `svg/material_design_icons.json` list.
43
+
All SVG icons of Material Design Icons are automatically downloaded from [material-icons](https://github.com/marella/material-icons), saved in `svg/material`, and always kept up-to-date by GitHub actions. You don't need to download icons manually.
44
+
If you want to add new material icons to this style, add the icon name and style to the `svg/material_design_icons.json` list.
45
45
> **Warning**
46
46
>
47
47
> Don't edit `svg/material` manually.
48
48
49
49
### Original Icons
50
50
51
-
The original icons of PyQtDarkTheme is in `svg/original`. You can add and edit this icon manually.
51
+
PyQtDarkTheme also has own SVG icons in `svg/original`. You can add and edit its icons manually.
52
52
> **Warning**
53
53
>
54
-
> PyQtDarkTheme supports simple svg like following code.
54
+
> PyQtDarkTheme supports simple SVG like following code.
@@ -61,7 +61,7 @@ The original icons of PyQtDarkTheme is in `svg/original`. You can add and edit t
61
61
62
62
### Override Qt standard Icons
63
63
64
-
Qt include [standard icons](https://doc.qt.io/qt-6/qstyle.html#StandardPixmap-enum). `qdarktheme.setup_theme` override standard icons to custom icons by using QProxyStyle. You can edit custom icons in `svg/new_standard_icons.json`.
64
+
Qt has standard icons. `qdarktheme.setup_theme` can override its icons to custom icons by using QProxyStyle. You can edit custom icons in `svg/new_standard_icons.json`.
0 commit comments