Commit c0a728df authored by Jürgen Herrmann's avatar Jürgen Herrmann

moved the darkstyle stuff into it's own python package

parent 6622c49c
0.32
\ No newline at end of file
0.33
\ No newline at end of file
......@@ -3,11 +3,11 @@
more options:
remove ladspa-module-insertion completely from config file
choose pulseaudio master sink
add proper desktop entry in debian package
done:
=====
add proper desktop entry in debian package
react to changes in ladspa-t5-plugins:
added a "magic" number for pulseaudio parametric eq to use in mmap-filenames
other numbers will be used in PaXoverRack...
......
......@@ -3,6 +3,7 @@ import glob
import json
import mmap
import re
import os
import struct
from math import sin, cos, pi, pow, sqrt
......
......@@ -3,7 +3,7 @@ Version: _VERSION_
Section: audio
Priority: optional
Architecture: all
Depends: ladspa-t5-plugins, python3, python3-pyqt5, python3-matplotlib, python3-scipy
Depends: ladspa-t5-plugins, python3, python3-pyqt5, python3-matplotlib, python3-scipy. python3-qt5-t5darkstyle
Maintainer: Jürgen Herrmann (t-5@t-5.eu)
Description: Pulseaudio Parametric Equalizer
A python/qt GUI for managing a fully parametric 3-and equalizer with shelves and insert it into pulseaudio.
Package: pulseaudio-parametric-eq
Version: 0.32
Version: 0.33
Section: audio
Priority: optional
Architecture: all
......
import math
import os
from PAPEq_rc import darkstyle_icons # import resources from this lib. see next line...
darkstyle_icons = darkstyle_icons # make PyCharm shut up about unused import statement
......@@ -16,29 +15,6 @@ FREQUENCY_DEFAULTS = {
"High": 10000,
}
GLOBAL_CSS_COLORS = {
"foreground_color": "#ffffff",
"background_color": "#333333",
"tooltip_background_color": "#ffff77",
"tooltip_border_color": "#cccc55",
"tooltip_color": "#000000",
"selection_background_color": "#006600",
"selection_highlight_color": "#99ff99",
"border_color": "#666666",
"disabled_color": "#bbbbbb",
"edit_background_color": "#000000",
"scroll_background_color": "#000000",
"scroll_foreground_color": "#00aa00",
"button_background_color": "#555555",
}
_f = open(os.path.join(os.path.dirname(__file__), "global.css"))
GLOBAL_CSS = _f.read()
_f.close()
for _key, _value in GLOBAL_CSS_COLORS.items():
_keyWithParentheses = "<%s>" % _key
while _keyWithParentheses in GLOBAL_CSS:
GLOBAL_CSS = GLOBAL_CSS.replace(_keyWithParentheses, _value)
GRAPH_FREQUS = []
_f = 0.001
while _f < math.pi:
......
This diff is collapsed.
......@@ -8,7 +8,7 @@ Main python (startup) file
GIT: https://gitlab.com/t-5/PulseaudioParametricEq.git
"""
from helpers.constants import GLOBAL_CSS
from qt5_t5darkstyle import darkstyle_css
import sys
from PyQt5.QtWidgets import QApplication
from WindowClasses.MainWindow import MainWindow
......@@ -16,7 +16,7 @@ from WindowClasses.MainWindow import MainWindow
def main():
app = QApplication(sys.argv)
app.setStyleSheet(GLOBAL_CSS)
app.setStyleSheet(darkstyle_css())
form = MainWindow()
form.show()
app.exec_()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment