51 lines
844 B
Markdown
51 lines
844 B
Markdown
## Темы
|
|
|
|
### qt5ct
|
|
|
|
```sh
|
|
apt install qt5ct qt5-style-plugins
|
|
```
|
|
|
|
```sh
|
|
QT_QPA_PLATFORMTHEME=qt5ct xmake run
|
|
```
|
|
|
|
Настройки осуществляются в приложении `qt5ct`
|
|
|
|
### Adwaita
|
|
|
|
Установить пакеты `adwaita-qt` и `adwaita-qt6`.
|
|
|
|
```sh
|
|
apt install adwaita-qt adwaita-qt6
|
|
```
|
|
|
|
Светлая тема
|
|
|
|
```sh
|
|
# Светлая тема
|
|
QT_STYLE_OVERRIDE=adwaita xmake run
|
|
QT_STYLE_OVERRIDE=Adwaita xmake run
|
|
```
|
|
|
|
Тёмная тема
|
|
|
|
```sh
|
|
# Тёмная тема
|
|
QT_STYLE_OVERRIDE=adwaita-dark xmake run
|
|
QT_STYLE_OVERRIDE=Adwaita-dark xmake run
|
|
```
|
|
|
|
## Другое
|
|
|
|
|
|
```cpp
|
|
/**
|
|
* Available platform plugins are:
|
|
* eglfs, linuxfb, minimal, minimalegl, offscreen, vnc,
|
|
* wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb
|
|
*/
|
|
|
|
qsetenv("QT_QPA_PLATFORM", "minimal").
|
|
```
|