Commit 44cba99b authored by Jürgen Herrmann's avatar Jürgen Herrmann

added own dark style custom css and gfx

parent 60029b9e
0.17
\ No newline at end of file
0.18
\ No newline at end of file
......@@ -24,7 +24,6 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.setupUi(self)
self.setStyleSheet(GLOBAL_CSS)
self._prohibitLineEditUpdates = False
self._disablePresetsComboboxHandler = False
self._loadedPresetName = ""
......@@ -763,7 +762,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
ax2.grid(False)
ax2.set_ylim(-90, 90)
ax2.set_xlim(10, SR / 2)
self._mplFigure.tight_layout(pad=0.15)
self._mplFigure.tight_layout(pad=0)
self._mplCanvas.draw()
......
......@@ -10,4 +10,5 @@ done
echo
cd res
pyrcc4 -py3 -o ../PAPEq_rc/__init__.py PAPEq.qrc
pyrcc4 -py3 -o ../PAPEq_rc/darkstyle_icons.py darkstyle_icons.qrc
cd ..
This diff is collapsed.
......@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'Ui_AboutDialog.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
# Created by: PyQt4 UI code generator 4.12.1
#
# WARNING! All changes made in this file will be lost!
......@@ -32,19 +32,19 @@ class Ui_AboutDialog(object):
AboutDialog.setStyleSheet(_fromUtf8("background-color: #333;"))
self.buttonBox = QtGui.QDialogButtonBox(AboutDialog)
self.buttonBox.setGeometry(QtCore.QRect(30, 340, 341, 32))
self.buttonBox.setStyleSheet(_fromUtf8("background-color: #555; color: white;"))
self.buttonBox.setStyleSheet(_fromUtf8(""))
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
self.buttonBox.setCenterButtons(True)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.label = QtGui.QLabel(AboutDialog)
self.label.setGeometry(QtCore.QRect(10, 240, 381, 21))
self.label.setStyleSheet(_fromUtf8("color: white;"))
self.label.setStyleSheet(_fromUtf8(""))
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName(_fromUtf8("label"))
self.label_2 = QtGui.QLabel(AboutDialog)
self.label_2.setGeometry(QtCore.QRect(40, 260, 321, 21))
self.label_2.setStyleSheet(_fromUtf8("color: white;"))
self.label_2.setStyleSheet(_fromUtf8(""))
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.label_4 = QtGui.QLabel(AboutDialog)
......
......@@ -30,7 +30,7 @@
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: #555; color: white;</string>
<string notr="true"/>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
......@@ -52,7 +52,7 @@
</rect>
</property>
<property name="styleSheet">
<string notr="true">color: white;</string>
<string notr="true"/>
</property>
<property name="text">
<string>Pulseaudio Parametric Equalizer Version $version</string>
......@@ -71,7 +71,7 @@
</rect>
</property>
<property name="styleSheet">
<string notr="true">color: white;</string>
<string notr="true"/>
</property>
<property name="text">
<string>© 2018- Jürgen &quot;T5!&quot; Herrmann</string>
......
This diff is collapsed.
This diff is collapsed.
<RCC>
<qresource prefix="qss_icons">
<file>darkstyle_icons/up_arrow_disabled.png</file>
<file>darkstyle_icons/Hmovetoolbar.png</file>
<file>darkstyle_icons/stylesheet-branch-end.png</file>
<file>darkstyle_icons/branch_closed-on.png</file>
<file>darkstyle_icons/stylesheet-vline.png</file>
<file>darkstyle_icons/branch_closed.png</file>
<file>darkstyle_icons/branch_open-on.png</file>
<file>darkstyle_icons/transparent.png</file>
<file>darkstyle_icons/right_arrow_disabled.png</file>
<file>darkstyle_icons/sizegrip.png</file>
<file>darkstyle_icons/close.png</file>
<file>darkstyle_icons/close-hover.png</file>
<file>darkstyle_icons/close-pressed.png</file>
<file>darkstyle_icons/down_arrow.png</file>
<file>darkstyle_icons/Vmovetoolbar.png</file>
<file>darkstyle_icons/left_arrow.png</file>
<file>darkstyle_icons/stylesheet-branch-more.png</file>
<file>darkstyle_icons/up_arrow.png</file>
<file>darkstyle_icons/right_arrow.png</file>
<file>darkstyle_icons/left_arrow_disabled.png</file>
<file>darkstyle_icons/Hsepartoolbar.png</file>
<file>darkstyle_icons/branch_open.png</file>
<file>darkstyle_icons/Vsepartoolbar.png</file>
<file>darkstyle_icons/down_arrow_disabled.png</file>
<file>darkstyle_icons/undock.png</file>
<file>darkstyle_icons/checkbox_checked_disabled.png</file>
<file>darkstyle_icons/checkbox_checked_focus.png</file>
<file>darkstyle_icons/checkbox_checked.png</file>
<file>darkstyle_icons/checkbox_indeterminate.png</file>
<file>darkstyle_icons/checkbox_indeterminate_focus.png</file>
<file>darkstyle_icons/checkbox_unchecked_disabled.png</file>
<file>darkstyle_icons/checkbox_unchecked_focus.png</file>
<file>darkstyle_icons/checkbox_unchecked.png</file>
<file>darkstyle_icons/radio_checked_disabled.png</file>
<file>darkstyle_icons/radio_checked_focus.png</file>
<file>darkstyle_icons/radio_checked.png</file>
<file>darkstyle_icons/radio_unchecked_disabled.png</file>
<file>darkstyle_icons/radio_unchecked_focus.png</file>
<file>darkstyle_icons/radio_unchecked.png</file>
</qresource>
</RCC>
import math
import os
from PAPEq_rc import darkstyle_icons
CURRENT_VERSION = "0.17"
CURRENT_VERSION = "0.19"
DIALSTEPS = 10000
......@@ -13,38 +15,28 @@ FREQUENCY_DEFAULTS = {
"High": 10000,
}
GLOBAL_CSS = """
background-color: #333;
color: white;
QLabel {
color: white;
}
QInputDialog > QLabel {
color: white;
}
QInputDialog > QLineEdit {
color: white;
}
QInputDialog > QPushButton {
color: white;
background-color: #555;
}
QMessageBox > QLabel {
color: white;
}
QMessageBox > QPushButton {
color: white;
background-color: #555;
}
QToolTip {
border: 1px solid #ff0000;
border-radius: 4px;
padding: 2px;
background: #aaffaa;
color: #000000;
}
"""
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
......
This diff is collapsed.
......@@ -8,6 +8,7 @@ Main python (startup) file
GIT: https://gitlab.com/t-5/PulseaudioParametricEq.git
"""
from helpers.constants import GLOBAL_CSS
from PyQt4 import QtGui
import sys
from WindowClasses.MainWindow import MainWindow
......@@ -15,6 +16,7 @@ from WindowClasses.MainWindow import MainWindow
def main():
app = QtGui.QApplication(sys.argv)
app.setStyleSheet(GLOBAL_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