Skip to content

An example of a simple Qml gui app that styles with a theme.

Notifications You must be signed in to change notification settings

k4sima/github-style-gui-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


An example of a simple Qml app that styles with a theme.


  • async python backend
  • Custom title bar
  • window drop shadow (test)
  • Custom dialog
  • Dynamic settings (json base)
  • Dynamic color theme (json base)
  • drawer menu (supports left, right, top, bottom)

01

App settings

settings.json

02

Convert resource.qrc to resource.py

pipenv run qrc_convert

Run

pipenv run run

debug mode

pipenv run_debug

Build

build.sh

python -m nuitka \
        --follow-imports \
        --onefile \
        --windows-icon-from-ico=app/resource/icon/app.ico \
        --plugin-enable=pyside6 \
        --include-qt-plugins=platforms,qml,imageformats,tls \
        --include-data-file=app/*.json=./app/ \
        --include-data-file=app/.env=./app/ \
        --include-data-file=app/apple.png=./app/ \
        --include-data-dir=app/qml=./app/qml \
        --include-data-dir=app/backend=./app/backend \
        --include-module=dotenv \
        --output-dir=build/app \
        run.py

or

pipenv run build

Referenced color

primer.style / primitives / colors