https://github.com/yjg30737/python-stylesheets-color-changer
Python CSS style sheets color changer
https://github.com/yjg30737/python-stylesheets-color-changer
css css-changer css-framework python python3 python37 stylesheets
Last synced: 3 months ago
JSON representation
Python CSS style sheets color changer
- Host: GitHub
- URL: https://github.com/yjg30737/python-stylesheets-color-changer
- Owner: yjg30737
- License: mit
- Created: 2022-03-19T00:48:48.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-19T01:38:31.000Z (about 3 years ago)
- Last Synced: 2024-12-29T08:42:11.477Z (5 months ago)
- Topics: css, css-changer, css-framework, python, python3, python37, stylesheets
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-stylesheets-color-changer
Python CSS style sheets color changerCurrently the only feature of this is changing the brightness of color of CSS style sheets.
## Setup
```pip3 install git+https://github.com/yjg30737/python-stylesheets-color-changer.git --upgrade```## Included Packages
* python-color-getter## Class/Method Overview
* ```StyleSheetsColorChanger(stylesheets: str)``` - Constructor. ```stylesheets``` argument accepts the raw css code.
* ```lighter() -> str``` - Make colors lighter. #DDD -> #EEE. Return the raw css code which is lighter than the original.
* ```darker() -> str``` - Make colors darker. #EEE -> #DDD. Return the raw css code which is darker than the original.## Example
Example application is pyqt-dark-calculator.Original

I'll make this darker.
Code Sample
```python
from PyQt5.QtWidgets import QApplication
from pyqt_dark_calculator import Calculator
from python_stylesheets_color_changer import StyleSheetsColorChangerif __name__ == "__main__":
import sysapp = QApplication(sys.argv)
calculator = Calculator()
changer = StyleSheetsColorChanger('darkGrayTheme.css')
css_code = changer.darker()
calculator.setStyleSheet(css_code)
calculator.show()
app.exec_()
```Result

How about make it lighter?

I know that is hard to distinguish. So i'll show you all three of them at once.