File: generator.py

package info (click to toggle)
qt-material 2.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 33,000 kB
  • sloc: python: 1,153; xml: 261; makefile: 22; sh: 8
file content (24 lines) | stat: -rw-r--r-- 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os

from qt_material import list_themes

themes = list_themes()
themes = [t.replace('.xml', '') for t in themes]

for theme in themes:
    os.system(f'python main.py --pyside6 {theme}')

os.chdir('screenshots')

commands = (
    'convert -delay 100 light_* light.gif',
    'convert -delay 100 dark_* dark.gif',
    # 'rm ../../../docs/source/images/light.gif',
    # 'rm ../../../docs/source/images/dark.gif',
    # 'cp light.gif ../../../docs/source/images/light.gif',
    # 'cp dark.gif ../../../docs/source/images/dark.gif',
    # 'cp theme.png ../../../docs/source/images/theme.png',
)

for command in commands:
    os.system(command)