Metadata-Version: 2.1
Name: qssimport
Version: 1.0.2
Summary: Merge qss files by using @import
Home-page: https://github.com/c385/qssimport
Author: Chris Souza
Author-email: chris.souza3425@gmail.com
License: MIT
Description: # qssimport
        
        qssimport allows you to use multiple qt stylesheet files for a single project by merging those stylesheets into a main qss file. Simply create a base .qss file that defines 1 or more @import statements that point to other stylesheets.
            
        
        ### Installation
            sudo pip install qssimport
        
        ### Usage
        
        - The `base_dir` is the path to the stylesheets
        - The `import_def` file is assumed to be stored in the stylesheets directory
           - `import_def` is file where all of the @imports need to be defined   
        - The `main_stylesheet` is an optional argument that defines the name of the compiled stylesheet.
        if a name is not provided, the program defaults to mainStyle.qss
          
        ```
        from qssimport import stylesheet
        ...
        app = QApplication([])
          my_q_stylesheet = stylesheet.Stylesheet(base_dir='/path/to/stylesheets/',
                                    import_def_file='imports.qss',
                                    main_stylesheet='myStyle.qss')
        app.setStyleSheet(my_q_stylesheet.load_stylesheet())
        ...	   
        ```
        
        ### Example 
        Given the following:
         ###### `import.qss` 
          ```
          @import "lineEdit.qss";
          @import "widget.qss";
          ```
          
          ###### `lineEdit.qss`
          ```
          QLineEdit{color:#FFF;}
          QLineEdit{background:#A06;}
          ```
          ###### `widget.qss`
          ```
          QWidget{background:#434343;}
          QWidget#MyWidget{background:#909090;}
          ```
        ##### The file you specified as `main_stylesheet` will contain all of the lines from `lineEdit.qss` and `widget.qss`  
         ###### `myStyle.qss`
          ```
          QLineEdit{color:#FFF;}
          QLineEdit{background:#A06;}
          QWidget{background:#434343;}
          QWidget#MyWidget{background:#909090;}
          ```
Platform: UNKNOWN
Classifier: Intended Audience :: End Users/Desktop
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.4
Description-Content-Type: text/markdown
