All Projects → hustlei → Qssstylesheeteditor

hustlei / Qssstylesheeteditor

Licence: gpl-3.0
Editor for qt stylesheet (qss). Real-time preview, and user can define varibles in qss.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Qssstylesheeteditor

Notepanda
📃 A simple cross-platform notepad. Based on Qt and C++.
Stars: ✭ 134 (-62.36%)
Mutual labels:  editor, qt
Qui
【此项目作者为刘典武,不是我自己的原创项目,望周知。也请大家不要骚扰刘典武。】一个用Qt开发的用来生成QSS文件的小程序,附简单Demo,主程序本身也可以看作一个很好的Demo。
Stars: ✭ 168 (-52.81%)
Mutual labels:  qt, skin
Idaskins
Advanced skinning plugin for IDA Pro
Stars: ✭ 832 (+133.71%)
Mutual labels:  skin, stylesheet
Unitydarkskin
Switcher of UI theme in Unity Editor (light -> dark) (.NET, WPF)
Stars: ✭ 466 (+30.9%)
Mutual labels:  editor, skin
Xpiks
Cross-Platform Image Keywording Software for microstock photographers and illustrators
Stars: ✭ 81 (-77.25%)
Mutual labels:  editor, qt
Tiled
Flexible level editor
Stars: ✭ 8,411 (+2262.64%)
Mutual labels:  editor, qt
Heimer
Heimer is a simple cross-platform mind map, diagram, and note-taking tool written in Qt.
Stars: ✭ 380 (+6.74%)
Mutual labels:  editor, qt
Versatile
A simple 3D model editor based on simple quads and a sprite set.
Stars: ✭ 132 (-62.92%)
Mutual labels:  editor, qt
Qss
Qt Style Sheets Library With Custom TitleBar!!!
Stars: ✭ 61 (-82.87%)
Mutual labels:  qt, stylesheet
Darkmatter
The notebook-style Common Lisp environment
Stars: ✭ 336 (-5.62%)
Mutual labels:  editor
Qss
QT Style Sheets templates
Stars: ✭ 344 (-3.37%)
Mutual labels:  qt
Vue Designer
Vue component design tool
Stars: ✭ 333 (-6.46%)
Mutual labels:  editor
Qilin App
Fully hackable text editor developed for exact sciences with built-in KaTeX and AsciiMath support. Extensible via plugins and themes. Exportable as HTML, PDF and GFM.
Stars: ✭ 336 (-5.62%)
Mutual labels:  editor
Cppwebframework
​The C++ Web Framework (CWF) is a MVC web framework, Open Source, under MIT License, using C++ with Qt to be used in the development of web applications.
Stars: ✭ 348 (-2.25%)
Mutual labels:  qt
Mbpmid2010 gpufix
MBPMid2010_GPUFix is an utility program that allows to fix MacBook Pro (15-inch, Mid 2010) intermittent black screen or loss of video. The algorithm is based on a solution provided by user fabioroberto on MacRumors forums.
Stars: ✭ 334 (-6.18%)
Mutual labels:  qt
Jqview
simplest possible native GUI for inspecting JSON objects with jq
Stars: ✭ 355 (-0.28%)
Mutual labels:  qt
Hyper Editor
A backend independent visual composer for web.
Stars: ✭ 332 (-6.74%)
Mutual labels:  editor
Hplayer
A multi-screen player using Qt + FFmpeg.
Stars: ✭ 330 (-7.3%)
Mutual labels:  qt
Coteditor
Lightweight Plain-Text Editor for macOS
Stars: ✭ 4,129 (+1059.83%)
Mutual labels:  editor
Qtox
qTox is a chat, voice, video, and file transfer IM client using the encrypted peer-to-peer Tox protocol.
Stars: ✭ 3,843 (+979.49%)
Mutual labels:  qt

English | 简体中文

QssStylesheetEditor

Build Status Codacy Badge Coverage Status Platform:win|osx|linux


QssStylesheetEditor is a powerful qt stylesheet(QSS) editor. Real-time preview, automatically completion, and user can define custom variables.

Now I want to change a new name for QssStylesheetEditor, welcome everyone to vote: https://github.com/hustlei/QssStylesheetEditor/issues/4

screenshot

GUI(v1.5) screeshot

Features

  • Qss code highlight and code folding
  • Automatic completion
  • In-time preview
  • Almost all of the qtwidgets can be previewed
  • Customize variables and reference in Qss
  • Change variable color through color dialog box
  • Reference image by relative path
  • Reference image in resource files
  • Switch different system themes (xp, vista etc.)
  • Internationalization
    • Now Chinese and English translations are available

Platform

  • Windows (maybe won't run on xp)
  • macOS
  • Linux
  • UNIX

Usage

Follow the steps as below, or install the binary installation package:

  1. download QssStylesheetEditor-1.6-py3-none-any.whl
  2. run pip install QssStylesheetEditor-1.6-py3-none-any.whl install QssStylesheetEditor
  3. run qsseditor or QssStylesheetEditor the app will started

If you are windows 64bit user, binary package and installer is available now.

Alternatively, manually install the package is ok too

  1. install python3: following http://python.org/
  2. install dependencies:
    • preimport: pip install preimport
    • tomlconfig: pip install tomlconfig
    • CodeEditor: pip install CodeEditor
  3. download and unzip package:
  4. Run QssStylesheetEditor:
    • double click qsseditor.pyw
    • or run python qsseditor.pyw

Using custom variable

In QssStylesheetEditor, users can define and use custom variables in QSS.

Using following statement to define new variable:

/*example of custom variable definition*/
$background = #fff;  /* define var with name "background" */
$text = red; /* define var with name "text" */

A variable definition end with a ";".

Reference defined variable as following:

/* example of custom variable reference */
QWidget
{
    color: $text; /* reference variable text*/
    background-color: $background; /* reference variable background*/
}

Users can export the code to qss file without vars by the "File>Export" menu.

Variable Color pick dialog

When a variable is defined in QssStylesheetEditor, the variable will be automatically displayed in the color pannel. You can click the color button to select the variable color through the color pick-up box.

If an undefined variable is referenced, it will be automatically recognized and displayed in the color panel too.

Image reference path

When images are use in the qss code, if the url is relative, QssStylesheetEditor will find the image file in the folder where the qss code file is.

background-image: url("img/close.png");
/* the img folder must be in the same directory of the qss code file*/

image in resource file

If your image files is converted to resource file by pyrcc5(pyrcc5 xxx.qrc -o xxxresource.py).

You can reference images in the resource file as following:

background-image: url(":/img/close.png");

QssStylesheetEditor will search the resource file filename.py(filename must be same of qss file) in the directory of the currently opened qss stylesheet code file and loads it automatically.

screenshot

AutoComplete
AutoComplete
QssStylesheetEditor on macOS
Gui on macOS
QssStylesheetEditor GUI V1.2
v1.2
QssStylesheetEditor GUI V1.0
v1.0

License

You can use this software for free in open source projects that are licensed under the GPL. but there is an exception: if you only use it to generate qss file for commercial product, the product's source code can be shipped with whatever license you want.

If you don't want to open your code up to the public, you can purchase a commercial license for USD 10 per developer, and also should purchase a commercial license for PyQt5.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].