Add GFD screen. Also add new themes. Also apply minor modifications

This commit is contained in:
alessandro90
2019-03-24 18:22:06 +01:00
parent 5644c36f52
commit 8c1a6438ec
47 changed files with 1784 additions and 192 deletions

View File

@@ -2,7 +2,7 @@ import os
import sys import sys
from pydub import AudioSegment from pydub import AudioSegment
from pygame import mixer from pygame import mixer
from PyQt5.QtCore import QTimer, QTimer, pyqtSlot, QObject from PyQt5.QtCore import QTimer, pyqtSlot, QObject
import constants import constants
import qtawesome as qta import qtawesome as qta

View File

@@ -5,6 +5,10 @@ class Ftype(object):
FREQ = "freq" FREQ = "freq"
BAND = "band" BAND = "band"
class GfdType(Enum):
FREQ = auto()
LOC = auto()
class ChecksumWhat(Enum): class ChecksumWhat(Enum):
FOLDER = auto() FOLDER = auto()
DB = auto() DB = auto()
@@ -84,6 +88,7 @@ __EHF = __Band(30 * 10**9, 300 * 10**9)
BANDS = (__ELF, __SLF, __ULF, __VLF, __LF, __MF, __HF, __VHF, __UHF, __SHF, __EHF) BANDS = (__ELF, __SLF, __ULF, __VLF, __LF, __MF, __HF, __VHF, __UHF, __SHF, __EHF)
MAX_DIGITS = 3 MAX_DIGITS = 3
RANGE_SEPARATOR = ' ÷ ' RANGE_SEPARATOR = ' ÷ '
GFD_SITE = "http://qrg.globaltuners.com/"
CONVERSION_FACTORS = {"Hz" : 1, CONVERSION_FACTORS = {"Hz" : 1,
"kHz": 1000, "kHz": 1000,
"MHz": 1000000, "MHz": 1000000,

40
main.py
View File

@@ -327,6 +327,11 @@ class MyApp(QMainWindow, Ui_MainWindow):
fun_args = None fun_args = None
) )
# GFD
self.freq_search_gfd_btn.clicked.connect(partial(self.go_to_gfd, constants.GfdType.FREQ))
self.location_search_gfd_btn.clicked.connect(partial(self.go_to_gfd, constants.GfdType.LOC))
self.gfd_line_edit.returnPressed.connect(partial(self.go_to_gfd, constants.GfdType.LOC))
# ########################################################################################## # ##########################################################################################
self.load_db() self.load_db()
@@ -364,26 +369,19 @@ class MyApp(QMainWindow, Ui_MainWindow):
self.show() self.show()
def refresh_range_labels(self): @pyqtSlot()
self.set_acf_interval_label() def go_to_gfd(self, by):
self.set_band_filter_label(self.activate_low_band_filter_btn, query = "/?q="
self.lower_band_spinbox, if by == constants.GfdType.FREQ:
self.lower_band_filter_unit, value_in_mhz = self.freq_gfd.value() * constants.CONVERSION_FACTORS[self.unit_freq_gfd.currentText()] / constants.CONVERSION_FACTORS["MHz"]
self.lower_band_confidence, query += str(value_in_mhz)
self.activate_up_band_filter_btn, elif by == constants.GfdType.LOC:
self.upper_band_spinbox, query += self.gfd_line_edit.text()
self.upper_band_filter_unit, try:
self.upper_band_confidence, webbrowser.open(constants.GFD_SITE + query.lower())
self.band_range_lbl) except:
self.set_band_filter_label(self.activate_low_freq_filter_btn, pass
self.lower_freq_spinbox,
self.lower_freq_filter_unit,
self.lower_freq_confidence,
self.activate_up_freq_filter_btn,
self.upper_freq_spinbox,
self.upper_freq_filter_unit,
self.upper_freq_confidence,
self.freq_range_lbl)
@pyqtSlot(QListWidgetItem) @pyqtSlot(QListWidgetItem)
def remove_if_unselected_modulation(self, item): def remove_if_unselected_modulation(self, item):
@@ -969,4 +967,4 @@ if __name__ == '__main__':
sleep(2) sleep(2)
w = MyApp() w = MyApp()
splash.finish(w) splash.finish(w)
sys.exit(my_app.exec_()) sys.exit(my_app.exec_())

View File

@@ -19,6 +19,10 @@
<property name="windowTitle"> <property name="windowTitle">
<string>ARTEMIS3</string> <string>ARTEMIS3</string>
</property> </property>
<property name="windowIcon">
<iconset>
<normaloff>splash.jpg</normaloff>splash.jpg</iconset>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true"/> <string notr="true"/>
</property> </property>
@@ -174,7 +178,7 @@
<enum>QTabWidget::Rounded</enum> <enum>QTabWidget::Rounded</enum>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>2</number>
</property> </property>
<property name="movable"> <property name="movable">
<bool>true</bool> <bool>true</bool>
@@ -1771,7 +1775,7 @@ p, li { white-space: pre-wrap; }
<string notr="true"/> <string notr="true"/>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>4</number>
</property> </property>
<property name="movable"> <property name="movable">
<bool>true</bool> <bool>true</bool>
@@ -4194,6 +4198,400 @@ Inactive</string>
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="gfd_tab">
<attribute name="title">
<string>GFD</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_19">
<item row="0" column="1" colspan="2">
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QLabel" name="gfd_title_lbl">
<property name="font">
<font>
<pointsize>20</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Search on Global Frequencies Database
www.qrg.globaltuners.com</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>100</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_10">
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Search by</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="2">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>80</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0">
<spacer name="horizontalSpacer_17">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>37</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_27">
<item>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QLabel" name="label_17">
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Frequency</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_26">
<item>
<widget class="QSpinBox" name="freq_gfd">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>100000000</number>
</property>
<property name="value">
<number>100</number>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="unit_freq_gfd">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="currentText">
<string>MHz</string>
</property>
<property name="maxCount">
<number>4</number>
</property>
<property name="duplicatesEnabled">
<bool>false</bool>
</property>
<property name="modelColumn">
<number>0</number>
</property>
<item>
<property name="text">
<string>MHz</string>
</property>
</item>
<item>
<property name="text">
<string>Hz</string>
</property>
</item>
<item>
<property name="text">
<string>kHz</string>
</property>
</item>
<item>
<property name="text">
<string>GHz</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="freq_search_gfd_btn">
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Search</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_16">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QLabel" name="label_18">
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Location/Callsign</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_7">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLineEdit" name="gfd_line_edit">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="location_search_gfd_btn">
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Search</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="2" column="3">
<spacer name="horizontalSpacer_18">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>37</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="1">
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>34</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget> </widget>
</widget> </widget>
</item> </item>

View File

@@ -18,7 +18,7 @@ class ThemeConstants(object):
DEFAULT_ACTIVE_COLOR = "#39eaff" DEFAULT_ACTIVE_COLOR = "#39eaff"
DEFAULT_INACTIVE_COLOR = "#9f9f9f" DEFAULT_INACTIVE_COLOR = "#9f9f9f"
THEME_NOT_FOUND = "Theme not found" THEME_NOT_FOUND = "Theme not found"
MISSING_THEME = "Missing theme in " + FOLDER + " folder." MISSING_THEME = "Missing theme in '" + FOLDER + "' folder."
class Theme(object): class Theme(object):
def __init__(self, parent): def __init__(self, parent):

2
themes/2-dark/colors.txt Normal file
View File

@@ -0,0 +1,2 @@
active=#4da6ff
inactive=#546E7A

View File

@@ -1,239 +1,462 @@
/*************************************
Main Window and Splitters
**************************************/
QWidget:window {
background-color: #232629;
}
QSplitter::handle {
background-color: transparent;
}
/*************************************
Main menu (Bar)
**************************************/
QMenuBar { QMenuBar {
color: rgb(255, 255, 255); background-color: transparent;
color: #AFBDC4;
}
QMenuBar::item {
background-color: transparent;
}
QMenuBar::item:disabled {
color: gray;
} }
QMenuBar::item:selected { QMenuBar::item:selected {
background:#999999; color: #FFFFFF;
color: #1d5eff border-bottom: 2px solid #4545e5;
} }
QMenu::item:selected { QMenuBar::item:pressed {
background-color: #999999; color: #FFFFFF;
color: #1d5eff border-bottom: 2px solid #4545e5;
}
QToolBar {
background-color: transparent;
border: 1px solid transparent;
}
QToolBar:handle {
background-color: transparent;
border-left: 2px dotted #80CBC4;
color: transparent;
}
QToolBar::separator {
border: 0;
} }
QMenu { QMenu {
color: #ffffff; background-color: #263238;
color: #AFBDC4;
} }
QWidget { QMenu::item:selected {
background-color: #464646
}
QLabel {
color: #ffffff;
}
QPushButton {
color: #FFFFFF; color: #FFFFFF;
background-color: rgb(52,52,52);
border: 1px solid gray;
border-radius: 5px;
} }
QPushButton:!enabled { QMenu::item:pressed {
color:#9f9f9f; color: #FFFFFF;
} }
QPushButton:checked { QMenu::separator {
color: #39eaff; background-color: transparent;
height: 1px;
margin-left: 10px;
margin-right: 10px;
margin-top: 5px;
margin-bottom: 5px;
} }
QTabWidget::pane { /* The tab widget frame */ /*************************************
/* border-left: 1px solid gray;*/ TabBar
border: 0px; **************************************/
QTabBar {
background: transparent;
} }
QTabWidget::pane {
QTabWidget::tab-bar { border: 0px solid transparent;
left: 30px; /* move to the right by 5px */ background: transparent;
} }
/* Style the tab using the tab sub-control. Note that
it reads QTabBar _not_ QTabWidget */
QTabBar::tab { QTabBar::tab {
background: #7a7a7a; background-color: transparent;
border-top-left-radius: 8px; border: 0px solid transparent;
border-top-right-radius: 8px; border-radius: 10px;
min-width: 16ex; color: #AFBDC4;
padding: 2px; padding-left: 10px;
color: #FFFFFF padding-right: 10px;
padding-top: 3px;
padding-bottom: 3px;
}
QTabBar::tab:hover {
background: #4545e5;
color: #FFFFFF;
} }
QTabBar::tab:selected { QTabBar::tab:selected {
background: #999999; background: #4545e5;
color: #1d5eff color: #FFFFFF;
} }
QStackedWidget {
QTabBar::tab:!selected { background: #232629;
margin-top: 3px; /* make non-selected tabs look smaller */
} }
/*************************************
Progressbar
QProgressBar { **************************************/
border: 2px #7a7a7a; QProgressBar
border-radius: 3px; {
background-color: #7a7a7a; border: 2px solid grey;
border-radius: 5px;
text-align: center;
} }
QProgressBar::chunk { QProgressBar::chunk
/*background-color: #1d5eff;*/ {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #1d5eff, stop:0.5 #4177ff, stop:1 #1d5eff); background-color: #88cc00;
border-radius: 3px; width: 2.15px;
margin: 0.5px;
} }
/*************************************
QAbstractScrollArea::corner { Labels and Rich Text boxes
background: none; **************************************/
border: none; QLabel {
background-color: transparent;
color: #CFD8DC;
} }
QScrollBar:vertical, QScrollBar:horizontal{ QDialog {
background-color:#343434; background-color: transparent;
border-radius: 5px; color: #949a9c;
/*background: none;*/ }
QTextBrowser {
background-color: transparent;
color: #949a9c;
}
/*************************************
Search Bar
**************************************/
QLineEdit {
border: 2px solid #4545e5 ;
border-radius: 10px;
background-color: transparent;
color: #CFD8DC;
}
QLineEdit:hover {
border-width: 1px;
border-radius: 10px;
border-style: solid;
border-color: #4545e5 ;
}
QLineEdit:focus {
border-width: 1px;
border-radius: 10px;
border-style: solid;
border-color: #4545e5 ;
}
/*************************************
Scroll bars
**************************************/
QScrollBar:horizontal {
background: transparent;
height: 10px;
margin: 0;
} }
QScrollBar:vertical { QScrollBar:vertical {
margin-top: 0px;
margin-bottom: 0px;
/*width: 10px;*/
}
QScrollBar:horizontal{
margin-left: 0px;
margin-right: 0px;
/*height: 10px;*/
}
QScrollBar::handle:vertical, QScrollBar::handle:horizontal{
border-radius: 5px;
border-color: none;
border-width: 1px;
background-color: #999999;
}
QScrollBar::add-line:vertical, QScrollBar::add-line:horizontal{
width: 0px;
height: 0px;
}
QScrollBar::sub-line:vertical, QScrollBar::sub-line:horizontal{
width: 0px;
height: 0px;
}
QScrollBar::add-page:vertical{
border-left: 1px solid gray;
background: transparent; background: transparent;
width: 10px;
margin: 0;
}
QScrollBar::handle:horizontal {
background: #374146;
min-width: 16px;
border-radius: 5px; border-radius: 5px;
/*
border: 1px#343434;
background-color: #343434;*/
} }
QScrollBar::add-page:horizontal{
border-top: 1px solid gray; QScrollBar::handle:vertical {
background: transparent; background: #374146;
min-height: 16px;
border-radius: 5px; border-radius: 5px;
/*
border: 1px#343434;
background-color: #343434;*/
}
QScrollBar::sub-page:vertical{
border-left: 1px solid gray;
background: transparent;
border-radius: 5px;
/* border: 1px #343434;
background-color: #343434;*/
}
QScrollBar::sub-page:horizontal{
border-top: 1px solid gray;
background: transparent;
border-radius: 5px;
/* border: 1px #343434;
background-color: #343434;*/
} }
QTextEdit{ QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal,
color: #ffffff; QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: none;
} }
QMessageBox { QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal,
color: #ffffff; QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
} border: none;
background: none;
QToolTip {
color: #000000;
}
QTextBrowser {
background-color: #464646;
color: #ffffff;
border: 0px;
}
QRadioButton {
color: #ffffff;
} }
/*************************************
List
**************************************/
QListWidget { QListWidget {
background-color:rgb(52,52,52); background-color: transparent;
color: rgb(255, 255, 255); border: 0px solid transparent;
border: 1px solid gray; border-bottom: 2px solid #80CBC4;
border-radius: 8px; color: #AFBDC4;
} }
QLineEdit { QListView {
background-color: #343434; background-color: transparent;
color: rgb(255, 255, 255); color: #AFBDC4;
border: 1px solid gray; outline: 0;
border-radius: 5px; border: 0px solid transparent;
}
QListView::item:hover {
color: #FFFFFF;
background: transparent;
} }
QListView::item:selected {
color: #4545e5;
background: transparent;
}
QListView::item:disabled {
color: #546E7A;
background: transparent;
}
QListView::item:disabled:selected {
color: #88cc00;
background: transparent;
}
/*************************************
Buttons
**************************************/
QPushButton {
background-color: transparent;
color: #AFBDC4;
border: 1px solid transparent;
padding: 4px 22px;
}
QPushButton:hover {
border: 2px dashed #4545e5;
border-radius: 13px;
color: #FFFFFF;
}
QPushButton:pressed {
color: #FFFFFF;
}
QPushButton:disabled {
color:#546E7A;
}
QPushButton:checked {
color: #4545e5;
}
/*************************************
ComboBox
**************************************/
QComboBox { QComboBox {
background-color: rgb(52,52,52); border: 0px solid transparent;
color: #ffffff; border-radius: 2px;
border: 1px solid gray; padding: 1px 6px 1px 6px;
border-radius: 5px; min-width: 2em;
} }
QComboBox:!enabled { QComboBox:!editable {
color: #9f9f9f; selection-background-color: transparent;
color: #AFBDC4;
selection-color: #FFFFFF;
background-color: transparent;
}
QComboBox:disabled {
color: #546E7A;
}
QComboBox:!editable:on, QComboBox::drop-down:editable:on {
color: #AFBDC4;
background-color: transparent;
selection-background-color: transparent;
}
QComboBox:on {
padding-top: 3px;
padding-left: 4px;
}
QComboBox::drop-down {
background-color: transparent;
subcontrol-origin: padding;
subcontrol-position: top right;
width: 20px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
QComboBox::down-arrow:enabled {
image: url("./themes/2-dark/icons/down-arrow.png");
}
QComboBox::down-arrow:disabled {
image: url("./themes/2-dark/icons/down-arrow_off.png");
}
QComboBox::down-arrow:hover {
image: url("./themes/2-dark/icons/down-arrow_hover.png");
}
QComboBox::down-arrow:on {
top: 1px;
left: 1px;
} }
QComboBox QAbstractItemView { QComboBox QAbstractItemView {
border: 1px solid gray; background-color: #232629;
selection-background-color: #999999;
selection-color: #1d5eff;
color: #ffffff;
} }
/*************************************
RadioButton
**************************************/
QRadioButton{
color: #AFBDC4;
}
QRadioButton:disabled{
color: #546E7A;
}
QRadioButton::indicator{
width: 50px;
height: 50px;
}
QRadioButton::indicator::unchecked {
image: url("./themes/2-dark/icons/off.png");
}
QRadioButton::indicator:unchecked:hover {
image: url("./themes/2-dark/icons/off_press.png");
}
QRadioButton::indicator:unchecked:pressed {
image: url("./themes/2-dark/icons/off_press.png");
}
QRadioButton::indicator::checked {
image: url("./themes/2-dark/icons/on.png");
}
QRadioButton::indicator:checked:hover {
image: url("./themes/2-dark/icons/on_press.png");
}
QRadioButton::indicator:checked:pressed {
image: url("./themes/2-dark/icons/on_press.png");
}
/*************************************
SpinBox
**************************************/
QSpinBox { QSpinBox {
background-color: rgb(52,52,52); background-color: transparent;
color: #ffffff; color: #AFBDC4;
border: 1px solid gray; border-width: 0px;
border-radius: 5px;
} }
QSpinBox:!enabled { QSpinBox:disabled {
color:#9f9f9f; color: #546E7A;
border-width: 0px;
} }
/* SPECIAL WIDGETS */ QSpinBox::up-button {
QPushButton#url_button { subcontrol-origin: border;
color: #9f9f9f; subcontrol-position: top right;
border: 0px; width: 16px;
background-color: #464646; image: url("./themes/2-dark/icons/up-arrow.png");
border-width: 0px;
} }
QPushButton#play, QPushButton#pause, QPushButton#stop { QSpinBox::up-button:hover {
color: #464646; image: url("./themes/2-dark/icons/up-arrow_hover.png");
border: 0px;
background-color: #464646;
} }
QLabel#band_range_lbl { QSpinBox::up-button:pressed {
color: #9f9f9f; image: url("./themes/2-dark/icons/up-arrow.png");
}
QSpinBox::up-button:disabled {
image: url("./themes/2-dark/icons/up-arrow_off.png");
}
QSpinBox::down-button {
subcontrol-origin: border;
subcontrol-position: bottom right;
width: 16px;
image: url("./themes/2-dark/icons/down-arrow.png");
border-width: 0px;
border-top-width: 0;
}
QSpinBox::down-button:hover {
image: url("./themes/2-dark/icons/down-arrow_hover.png");
}
QSpinBox::down-button:pressed {
image: url("./themes/2-dark/icons/down-arrow.png");
}
QSpinBox::down-button:disabled {
image: url("./themes/2-dark/icons/down-arrow_off.png");
}
/*************************************
TreeViewMenu (Mode)
**************************************/
QTreeView {
background-color: transparent;
selection-background-color: transparent;
}
QTreeView::item {
background-color: transparent;
color: #AFBDC4;
}
QTreeView::item:hover {
border-right: 2px solid #4545e5;
color: #FFFFFF;
}
QTreeView::item:selected {
color: #4545e5;
}
QTreeView::item:active{
background: transparent;
}
QTreeView::item:disabled{
color: #546E7A;
}
QTreeView::item:selected:disabled{
color: #4545e5;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
themes/2-dark/icons/off.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
themes/2-dark/icons/on.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,2 @@
active=#88cc00
inactive=#546E7A

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,481 @@
/* Palette
Background: #29353B
Sec. Menu bkg: #263238
Label: #AFBDC4
Label Selected/hover: #FFFFFF
Label Pressed: #FFFFFF
Selection: #88cc00
ScrollBars: #374146
Signal detail Labels: #CFD8DC
Signal detail Dialogs: #949a9c
Disabled: #546E7A
/*************************************
Main Window and Splitters
**************************************/
QWidget:window {
background-color: #29353B;
}
QSplitter::handle {
background-color: transparent;
}
/*************************************
Main menu (Bar)
**************************************/
QMenuBar {
background-color: transparent;
color: #AFBDC4;
}
QMenuBar::item {
background-color: transparent;
}
QMenuBar::item:disabled {
color: gray;
}
QMenuBar::item:selected {
color: #FFFFFF;
border-bottom: 2px solid #88cc00;
}
QMenuBar::item:pressed {
color: #FFFFFF;
border-bottom: 2px solid #88cc00;
}
QToolBar {
background-color: transparent;
border: 1px solid transparent;
}
QToolBar:handle {
background-color: transparent;
border-left: 2px dotted #80CBC4;
color: transparent;
}
QToolBar::separator {
border: 0;
}
QMenu {
background-color: #263238;
color: #AFBDC4;
}
QMenu::item:selected {
color: #FFFFFF;
}
QMenu::item:pressed {
color: #FFFFFF;
}
QMenu::separator {
background-color: transparent;
height: 1px;
margin-left: 10px;
margin-right: 10px;
margin-top: 5px;
margin-bottom: 5px;
}
/*************************************
TabBar
**************************************/
QTabBar {
background: transparent;
}
QTabWidget::pane {
background: transparent;
}
QTabBar::tab {
background: transparent;
border: 0px solid transparent;
border-bottom: 2px solid transparent;
color: #AFBDC4;
padding-left: 10px;
padding-right: 10px;
padding-top: 3px;
padding-bottom: 3px;
}
QTabBar::tab:hover {
background-color: transparent;
border: 0px solid transparent;
border-bottom: 2px solid #88cc00;
color: #FFFFFF;
}
QTabBar::tab:selected {
background-color: transparent;
border: 0px solid transparent;
border-top: none;
border-bottom: 2px solid #88cc00;
color: #FFFFFF;
}
QStackedWidget {
background: #29353B;
}
/*************************************
Progressbar
**************************************/
QProgressBar
{
border: 2px solid grey;
border-radius: 5px;
text-align: center;
}
QProgressBar::chunk
{
background-color: #88cc00;
width: 2.15px;
margin: 0.5px;
}
/*************************************
Labels and Rich Text boxes
**************************************/
QLabel {
background-color: transparent;
color: #CFD8DC;
}
QDialog {
background-color: transparent;
color: #949a9c;
}
QTextBrowser {
background-color: transparent;
color: #949a9c;
}
/*************************************
Search Bar
**************************************/
QLineEdit {
background-color: transparent;
selection-background-color: #669900;
color: #669900;
border-width: 1px;
border-style: solid;
border-color: transparent transparent #669900 transparent;
}
QLineEdit:hover {
border-width: 2px;
border-color: transparent transparent #88cc00 transparent;
}
QLineEdit:focus {
border-width: 2px;
border-color: transparent transparent #88cc00 transparent;
}
/*************************************
Scroll bars
**************************************/
QScrollBar:horizontal {
background: transparent;
height: 10px;
margin: 0;
}
QScrollBar:vertical {
background: transparent;
width: 10px;
margin: 0;
}
QScrollBar::handle:horizontal {
background: #374146;
min-width: 16px;
border-radius: 5px;
}
QScrollBar::handle:vertical {
background: #374146;
min-height: 16px;
border-radius: 5px;
}
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal,
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: none;
}
QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal,
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
border: none;
background: none;
}
/*************************************
List
**************************************/
QListWidget {
background-color: transparent;
border: 0px solid transparent;
border-bottom: 2px solid #80CBC4;
color: #AFBDC4;
}
QListView {
background-color: transparent;
color: #AFBDC4;
outline: 0;
border: 0px solid transparent;
}
QListView::item:hover {
color: #FFFFFF;
background: transparent;
}
QListView::item:selected {
color: #88cc00;
background: transparent;
}
QListView::item:disabled {
color: #546E7A;
background: transparent;
}
QListView::item:disabled:selected {
color: #88cc00;
background: transparent;
}
/*************************************
Buttons
**************************************/
QPushButton {
background-color: transparent;
color: #AFBDC4;
border: 1px solid transparent;
padding: 4px 22px;
}
QPushButton:hover {
border-left: 2px solid #88cc00;
border-right: 2px solid #88cc00;
color: #FFFFFF;
}
QPushButton:pressed {
color: #FFFFFF;
}
QPushButton:disabled {
color:#546E7A;
}
QPushButton:checked {
color: #88cc00;
}
/*************************************
ComboBox
**************************************/
QComboBox {
border: 0px solid transparent;
border-radius: 2px;
padding: 1px 6px 1px 6px;
min-width: 2em;
}
QComboBox:!editable {
selection-background-color: transparent;
color: #AFBDC4;
selection-color: #FFFFFF;
background-color: transparent;
}
QComboBox:disabled {
color: #546E7A;
}
QComboBox:!editable:on, QComboBox::drop-down:editable:on {
color: #AFBDC4;
background-color: transparent;
selection-background-color: transparent;
}
QComboBox:on {
padding-top: 3px;
padding-left: 4px;
}
QComboBox::drop-down {
background-color: transparent;
subcontrol-origin: padding;
subcontrol-position: top right;
width: 20px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
QComboBox::down-arrow:enabled {
image: url("./themes/3-material_design_dark/icons/down-arrow.png");
}
QComboBox::down-arrow:disabled {
image: url("./themes/3-material_design_dark/icons/down-arrow_off.png");
}
QComboBox::down-arrow:hover {
image: url("./themes/3-material_design_dark/icons/down-arrow_hover.png");
}
QComboBox::down-arrow:on {
top: 1px;
left: 1px;
}
QComboBox QAbstractItemView {
background-color: #29353B;
}
/*************************************
RadioButton
**************************************/
QRadioButton{
color: #AFBDC4;
}
QRadioButton:disabled{
color: #546E7A;
}
QRadioButton::indicator{
width: 50px;
height: 50px;
}
QRadioButton::indicator::unchecked {
image: url("./themes/3-material_design_dark/icons/off.png");
}
QRadioButton::indicator:unchecked:hover {
image: url("./themes/3-material_design_dark/icons/off_press.png");
}
QRadioButton::indicator:unchecked:pressed {
image: url("./themes/3-material_design_dark/icons/off_press.png");
}
QRadioButton::indicator::checked {
image: url("./themes/3-material_design_dark/icons/on.png");
}
QRadioButton::indicator:checked:hover {
image: url("./themes/3-material_design_dark/icons/on_press.png");
}
QRadioButton::indicator:checked:pressed {
image: url("./themes/3-material_design_dark/icons/on_press.png");
}
/*************************************
SpinBox
**************************************/
QSpinBox {
background-color: transparent;
color: #AFBDC4;
border-width: 0px;
}
QSpinBox:disabled {
color: #546E7A;
border-width: 0px;
}
QSpinBox::up-button {
subcontrol-origin: border;
subcontrol-position: top right;
width: 16px;
image: url("./themes/3-material_design_dark/icons/up-arrow.png");
border-width: 0px;
}
QSpinBox::up-button:hover {
image: url("./themes/3-material_design_dark/icons/up-arrow_hover.png");
}
QSpinBox::up-button:pressed {
image: url("./themes/3-material_design_dark/icons/up-arrow.png");
}
QSpinBox::up-button:disabled {
image: url("./themes/3-material_design_dark/icons/up-arrow_off.png");
}
QSpinBox::down-button {
subcontrol-origin: border;
subcontrol-position: bottom right;
width: 16px;
image: url("./themes/3-material_design_dark/icons/down-arrow.png");
border-width: 0px;
border-top-width: 0;
}
QSpinBox::down-button:hover {
image: url("./themes/3-material_design_dark/icons/down-arrow_hover.png");
}
QSpinBox::down-button:pressed {
image: url("./themes/3-material_design_dark/icons/down-arrow.png");
}
QSpinBox::down-button:disabled {
image: url("./themes/3-material_design_dark/icons/down-arrow_off.png");
}
/*************************************
TreeViewMenu (Mode)
**************************************/
QTreeView {
background-color: transparent;
selection-background-color: transparent;
}
QTreeView::item {
background-color: transparent;
color: #AFBDC4;
}
QTreeView::item:hover {
border-right: 2px solid #88cc00;
color: #FFFFFF;
}
QTreeView::item:selected {
color: #88cc00;
}
QTreeView::item:active{
background: transparent;
}
QTreeView::item:disabled{
color: #546E7A;
}
QTreeView::item:selected:disabled{
color: #88cc00;
}

View File

@@ -0,0 +1,2 @@
active=#6ECE12
inactive=#b3b3cc

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,481 @@
/* Palette
Background: #F5F5F5
Sec. Menu bkg: #DCDCDC
Label: #29353B
Label Selected/hover: #000000
Label Pressed: #000000
Selection: #6ECE12
ScrollBars: #DCDCDC
Labels: #29353B
Dialogs: #29353B
Disabled: #b3b3cc
/*************************************
Main Window and Splitters
**************************************/
QWidget:window {
background-color: #F5F5F5;
}
QSplitter::handle {
background-color: transparent;
}
/*************************************
Main menu (Bar)
**************************************/
QMenuBar {
background-color: transparent;
color: #29353B;
}
QMenuBar::item {
background-color: transparent;
}
QMenuBar::item:disabled {
color: gray;
}
QMenuBar::item:selected {
color: #000000;
border-bottom: 2px solid #6ECE12;
}
QMenuBar::item:pressed {
color: #000000;
border-bottom: 2px solid #6ECE12;
}
QToolBar {
background-color: transparent;
border: 1px solid transparent;
}
QToolBar:handle {
background-color: transparent;
border-left: 2px dotted #80CBC4;
color: transparent;
}
QToolBar::separator {
border: 0;
}
QMenu {
background-color: #DCDCDC;
color: #29353B;
}
QMenu::item:selected {
color: #000000;
}
QMenu::item:pressed {
color: #000000;
}
QMenu::separator {
background-color: transparent;
height: 1px;
margin-left: 10px;
margin-right: 10px;
margin-top: 5px;
margin-bottom: 5px;
}
/*************************************
TabBar
**************************************/
QTabBar {
background: transparent;
}
QTabWidget::pane {
background: transparent;
}
QTabBar::tab {
background: transparent;
border: 0px solid transparent;
border-bottom: 2px solid transparent;
color: #29353B;
padding-left: 10px;
padding-right: 10px;
padding-top: 3px;
padding-bottom: 3px;
}
QTabBar::tab:hover {
background-color: transparent;
border: 0px solid transparent;
border-bottom: 2px solid #6ECE12;
color: #000000;
}
QTabBar::tab:selected {
background-color: transparent;
border: 0px solid transparent;
border-top: none;
border-bottom: 2px solid #6ECE12;
color: #000000;
}
QStackedWidget {
background: #F5F5F5;
}
/*************************************
Progressbar
**************************************/
QProgressBar
{
border: 2px solid grey;
border-radius: 5px;
text-align: center;
}
QProgressBar::chunk
{
background-color: #6ECE12;
width: 2.15px;
margin: 0.5px;
}
/*************************************
Labels and Rich Text boxes
**************************************/
QLabel {
background-color: transparent;
color: #29353B;
}
QDialog {
background-color: transparent;
color: #29353B;
}
QTextBrowser {
background-color: transparent;
color: #29353B;
}
/*************************************
Search Bar
**************************************/
QLineEdit {
background-color: transparent;
selection-background-color: #669900;
color: #669900;
border-width: 1px;
border-style: solid;
border-color: transparent transparent #669900 transparent;
}
QLineEdit:hover {
border-width: 2px;
border-color: transparent transparent #6ECE12 transparent;
}
QLineEdit:focus {
border-width: 2px;
border-color: transparent transparent #6ECE12 transparent;
}
/*************************************
Scroll bars
**************************************/
QScrollBar:horizontal {
background: transparent;
height: 10px;
margin: 0;
}
QScrollBar:vertical {
background: transparent;
width: 10px;
margin: 0;
}
QScrollBar::handle:horizontal {
background: #DCDCDC;
min-width: 16px;
border-radius: 5px;
}
QScrollBar::handle:vertical {
background: #DCDCDC;
min-height: 16px;
border-radius: 5px;
}
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal,
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: none;
}
QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal,
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
border: none;
background: none;
}
/*************************************
List
**************************************/
QListWidget {
background-color: transparent;
border: 0px solid transparent;
border-bottom: 2px solid #80CBC4;
color: #29353B;
}
QListView {
background-color: transparent;
color: #29353B;
outline: 0;
border: 0px solid transparent;
}
QListView::item:hover {
color: #000000;
background: transparent;
}
QListView::item:selected {
color: #6ECE12;
background: transparent;
}
QListView::item:disabled {
color: #b3b3cc;
background: transparent;
}
QListView::item:disabled:selected {
color: #6ECE12;
background: transparent;
}
/*************************************
Buttons
**************************************/
QPushButton {
background-color: transparent;
color: #29353B;
border: 1px solid transparent;
padding: 4px 22px;
}
QPushButton:hover {
border-left: 2px solid #6ECE12;
border-right: 2px solid #6ECE12;
color: #000000;
}
QPushButton:pressed {
color: #000000;
}
QPushButton:disabled {
color:#b3b3cc;
}
QPushButton:checked {
color: #6ECE12;
}
/*************************************
ComboBox
**************************************/
QComboBox {
border: 0px solid transparent;
border-radius: 2px;
padding: 1px 6px 1px 6px;
min-width: 2em;
}
QComboBox:!editable {
selection-background-color: transparent;
color: #29353B;
selection-color: #000000;
background-color: transparent;
}
QComboBox:disabled {
color: #b3b3cc;
}
QComboBox:!editable:on, QComboBox::drop-down:editable:on {
color: #29353B;
background-color: transparent;
selection-background-color: transparent;
}
QComboBox:on {
padding-top: 3px;
padding-left: 4px;
}
QComboBox::drop-down {
background-color: transparent;
subcontrol-origin: padding;
subcontrol-position: top right;
width: 20px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
QComboBox::down-arrow:enabled {
image: url("./themes/4-material_design_light/icons/down-arrow.png");
}
QComboBox::down-arrow:disabled {
image: url("./themes/4-material_design_light/icons/down-arrow_off.png");
}
QComboBox::down-arrow:hover {
image: url("./themes/4-material_design_light/icons/down-arrow_hover.png");
}
QComboBox::down-arrow:on {
top: 1px;
left: 1px;
}
QComboBox QAbstractItemView {
background-color: #F5F5F5;
}
/*************************************
RadioButton
**************************************/
QRadioButton{
color: #29353B;
}
QRadioButton:disabled{
color: #b3b3cc;
}
QRadioButton::indicator{
width: 50px;
height: 50px;
}
QRadioButton::indicator::unchecked {
image: url("./themes/4-material_design_light/icons/off.png");
}
QRadioButton::indicator:unchecked:hover {
image: url("./themes/4-material_design_light/icons/off_press.png");
}
QRadioButton::indicator:unchecked:pressed {
image: url("./themes/4-material_design_light/icons/off_press.png");
}
QRadioButton::indicator::checked {
image: url("./themes/4-material_design_light/icons/on.png");
}
QRadioButton::indicator:checked:hover {
image: url("./themes/4-material_design_light/icons/on_press.png");
}
QRadioButton::indicator:checked:pressed {
image: url("./themes/4-material_design_light/icons/on_press.png");
}
/*************************************
SpinBox
**************************************/
QSpinBox {
background-color: transparent;
color: #29353B;
border-width: 0px;
}
QSpinBox:disabled {
color: #b3b3cc;
border-width: 0px;
}
QSpinBox::up-button {
subcontrol-origin: border;
subcontrol-position: top right;
width: 16px;
image: url("./themes/4-material_design_light/icons/up-arrow.png");
border-width: 0px;
}
QSpinBox::up-button:hover {
image: url("./themes/4-material_design_light/icons/up-arrow_hover.png");
}
QSpinBox::up-button:pressed {
image: url("./themes/4-material_design_light/icons/up-arrow.png");
}
QSpinBox::up-button:disabled {
image: url("./themes/4-material_design_light/icons/up-arrow_off.png");
}
QSpinBox::down-button {
subcontrol-origin: border;
subcontrol-position: bottom right;
width: 16px;
image: url("./themes/4-material_design_light/icons/down-arrow.png");
border-width: 0px;
border-top-width: 0;
}
QSpinBox::down-button:hover {
image: url("./themes/4-material_design_light/icons/down-arrow_hover.png");
}
QSpinBox::down-button:pressed {
image: url("./themes/4-material_design_light/icons/down-arrow.png");
}
QSpinBox::down-button:disabled {
image: url("./themes/4-material_design_light/icons/down-arrow_off.png");
}
/*************************************
TreeViewMenu (Mode)
**************************************/
QTreeView {
background-color: transparent;
selection-background-color: transparent;
}
QTreeView::item {
background-color: transparent;
color: #29353B;
}
QTreeView::item:hover {
border-right: 2px solid #6ECE12;
color: #000000;
}
QTreeView::item:selected {
color: #6ECE12;
}
QTreeView::item:active{
background: transparent;
}
QTreeView::item:disabled{
color: #b3b3cc;
}
QTreeView::item:selected:disabled{
color: #6ECE12;
}