Python CSS style sheets color changer
Currently the only feature of this is changing the brightness of color of CSS style sheets.
pip3 install git+https://github.com/yjg30737/python-stylesheets-color-changer.git --upgrade
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 application is pyqt-dark-calculator.
Original
I'll make this darker.
Code Sample
from PyQt5.QtWidgets import QApplication
from pyqt_dark_calculator import Calculator
from python_stylesheets_color_changer import StyleSheetsColorChanger
if __name__ == "__main__":
import sys
app = 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.