Add imaged to readme

This commit is contained in:
Yeison 2020-12-13 16:39:36 -05:00
parent ee2fe18485
commit 00188012ea
2 changed files with 4 additions and 6 deletions

View File

@ -163,7 +163,7 @@ class RuntimeStylesheets(QMainWindow, QtStyleTools):
# self.apply_stylesheet(self.main, 'light_blue.xml') # self.apply_stylesheet(self.main, 'light_blue.xml')
``` ```
![](_images/runtime.gif) ![](https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/runtime.gif)
### Integrate stylesheets in a menu ### Integrate stylesheets in a menu
@ -180,7 +180,7 @@ class RuntimeStylesheets(QMainWindow, QtStyleTools):
self.add_menu_theme(self.main, self.main.menuStyles) self.add_menu_theme(self.main, self.main.menuStyles)
``` ```
![](_images/runtime_menu.gif) ![](https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/runtime_menu.gif)
## Create new themes ## Create new themes
@ -197,6 +197,6 @@ class RuntimeStylesheets(QMainWindow, QtStyleTools):
self.show_dock_theme(self.main) self.show_dock_theme(self.main)
``` ```
![](_images/runtime_dock.gif) ![](https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/runtime_dock.gif)
A full set of examples are available in the [exmaples directory](https://github.com/UN-GCPDS/qt-material/blob/master/examples/runtime/) A full set of examples are available in the [exmaples directory](https://github.com/UN-GCPDS/qt-material/blob/master/examples/runtime/)

View File

@ -3,8 +3,6 @@ import os
with open('../README.md', 'r') as file: with open('../README.md', 'r') as file:
content = file.read() content = file.read()
content = content.replace('_images/dark.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/dark.gif') content = content.replace('_images/', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/')
content = content.replace('_images/light.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/light.gif')
content = content.replace('_images/theme.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/theme.gif')
with open('../README.md', 'w') as file: with open('../README.md', 'w') as file:
file.write(content) file.write(content)