diff --git a/Makefile b/Makefile index 2b372c4..e7bdcff 100644 --- a/Makefile +++ b/Makefile @@ -28,20 +28,20 @@ help: clean: clean-build ## remove all build, test, coverage and Python artifacts clean-build: ## remove build artifacts - rm -rfv build/ - rm -rfv dist/ - rm -rfv .eggs/ - rm -rfv *.egg-info - rm -rfv *.egg - rm -rfv **/__pycache__ - rm -rfv htmlcov/ - rm -rfv .tox/ - rm -rfv .pytest_cache - rm -fv **.pyo - rm -fv **.pyc - rm -fv .coverage - rm -fv corbertura.xml - rm -fv coverage.xml + rm -rf build/ + rm -rf dist/ + rm -rf .eggs/ + rm -rf *.egg-info + rm -rf *.egg + rm -rf **/__pycache__ + rm -rf htmlcov/ + rm -rf .tox/ + rm -rf .pytest_cache + rm -f **.pyo + rm -f **.pyc + rm -f .coverage + rm -f corbertura.xml + rm -f coverage.xml install: ## install packages pip install --upgrade --no-cache --force-reinstall torrentfileQt QStyler diff --git a/QStyler/styler.py b/QStyler/styler.py index 539752c..bbcd2c2 100644 --- a/QStyler/styler.py +++ b/QStyler/styler.py @@ -28,7 +28,7 @@ from PySide6.QtWidgets import (QApplication, QComboBox, QFileDialog, QHBoxLayout, QLabel, QListWidget, QListWidgetItem, QSlider, QTextEdit, QToolBar, - QVBoxLayout, QWidget, QMessageBox) + QVBoxLayout, QWidget) from QStyler.dialog import NewDialog, RenameDialog from QStyler.utils import (ParsingError, QssParser, apply_stylesheet, get_icon, @@ -394,7 +394,6 @@ def __init__(self, parent=None): def save_sheet(self): """Save the current content of the editor to theme doc.""" - content = self.editor.toPlainText() parser = QssParser(content) results = parser.results diff --git a/QStyler/themes/DarkLime.json b/QStyler/themes/DarkLime.json index 97cc351..8b2050b 100644 --- a/QStyler/themes/DarkLime.json +++ b/QStyler/themes/DarkLime.json @@ -492,73 +492,5 @@ }, "QTableView::item:hover": { "color": "#8cf944" - }, - "QLabel#gamelist_icon_background_color": { - "color": "transparent" - }, - "QLabel#thumbnail_icon_color": { - "color": "#23262d" - }, - "QTextEdit#log_frame": { - "background-color": "#23262d" - }, - "QLabel#log_level_always": { - "color": "#f8f8f8" - }, - "QLabel#log_level_fatal": { - "color": "#ff00ff" - }, - "QLabel#log_level_error": { - "color": "#ff007a" - }, - "QLabel#log_level_todo": { - "color": "#f2d571" - }, - "QLabel#log_level_success": { - "color": "#8cf944" - }, - "QLabel#log_level_warning": { - "color": "#ff6000" - }, - "QLabel#log_level_notice": { - "color": "#FFFFFF" - }, - "QLabel#log_level_trace": { - "color": "#2d3038" - }, - "QLabel#log_stack": { - "color": "#3498d8" - }, - "QTextEdit#tty_frame": { - "background-color": "#23262d" - }, - "QLabel#tty_text": { - "color": "#f8f8f8" - }, - "QLabel#debugger_frame_breakpoint": {}, - "QLabel#debugger_frame_pc": {}, - "QTreeView::branch:has-children:!has-siblings:closed": { - "border-image": "none" - }, - "QTreeView::branch:closed:has-children:has-siblings": { - "border-image": "none" - }, - "QTreeView::branch:open:has-children:!has-siblings": { - "border-image": "none" - }, - "QTreeView::branch:open:has-children:has-siblings": { - "border-image": "none" - }, - "QTreeView::branch:has-children:!has-siblings:closed:hover": { - "border-image": "none" - }, - "QTreeView::branch:closed:has-children:has-siblings:hover": { - "border-image": "none" - }, - "QTreeView::branch:open:has-children:!has-siblings:hover": { - "border-image": "none" - }, - "QTreeView::branch:open:has-children:has-siblings:hover": { - "border-image": "none" } } \ No newline at end of file diff --git a/coverage.xml b/coverage.xml deleted file mode 100644 index cbcbbd7..0000000 --- a/coverage.xml +++ /dev/null @@ -1,1190 +0,0 @@ - - - - - - C:\Users\asp\Documents\Code\repos\QStyler - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/test_window.py b/tests/test_window.py index ca031f7..b21ca5f 100644 --- a/tests/test_window.py +++ b/tests/test_window.py @@ -180,7 +180,7 @@ def test_rename_dialog(app): @pytest.mark.parametrize( - "theme", ["OSX", "KnightRider", "Overcaset", "Terminal", "Bland"] + "theme", ["OSX", "KnightRider", "Overcast", "Terminal", "Bland"] ) def test_toolbar_buttons(app, wind, theme): """Test function for toolbar buttons.""" @@ -209,7 +209,7 @@ def test_toolbar_buttons(app, wind, theme): @pytest.mark.parametrize( - "theme", ["SummerBreeze", "MaterialDarkStyle", "DarkSkyline", "Coastal"] + "theme", ["SummerBreeze", "DarkSkyline", "Coastal"] ) def test_styler_with_theme(app, wind, theme): """Test function for toolbar buttons.""" diff --git a/tox.ini b/tox.ini index 0847096..2525e45 100644 --- a/tox.ini +++ b/tox.ini @@ -7,9 +7,7 @@ envlist = pylint pycodestyle - pydocstyle flake8 - pyroma security format twinecheck @@ -62,26 +60,16 @@ deps = commands = bandit -r -c pyproject.toml QStyler tests -[testenv:pyroma] -basepython = python3 -deps = - pyroma -commands = - pyroma . - -[testenv:pycodestyle] -basepython = python3 -deps = - pycodestyle -commands = - pycodestyle QStyler tests - [testenv:pydocstyle] basepython = python3 deps = + pyroma pydocstyle + pycodestyle commands = pydocstyle QStyler tests + pycodestyle QStyler tests + pyroma . [testenv:pylint] basepython = python3